summaryrefslogtreecommitdiff
path: root/dev-python
diff options
context:
space:
mode:
authorSebastian Pipping <sping@gentoo.org>2020-03-02 23:22:27 +0100
committerSebastian Pipping <sping@gentoo.org>2020-03-02 23:22:27 +0100
commitbdb74d7d63c8dedda629a1576ad839bde0bd77b2 (patch)
tree7b4890480b134fe609fc472c307d8ff778e7a6a0 /dev-python
parentac1dabc6a17244730984128e261c28018445baff (diff)
downloadgentoo-bdb74d7d63c8dedda629a1576ad839bde0bd77b2.tar.gz
gentoo-bdb74d7d63c8dedda629a1576ad839bde0bd77b2.tar.bz2
gentoo-bdb74d7d63c8dedda629a1576ad839bde0bd77b2.zip
dev-python/pycxx: Fixes use of banned EXAMPLES
Closes: https://bugs.gentoo.org/711314 Signed-off-by: Sebastian Pipping <sping@gentoo.org> Package-Manager: Portage-2.3.84, Repoman-2.3.20
Diffstat (limited to 'dev-python')
-rw-r--r--dev-python/pycxx/pycxx-7.1.2-r1.ebuild34
1 files changed, 34 insertions, 0 deletions
diff --git a/dev-python/pycxx/pycxx-7.1.2-r1.ebuild b/dev-python/pycxx/pycxx-7.1.2-r1.ebuild
new file mode 100644
index 000000000000..7ebe1b3a1b34
--- /dev/null
+++ b/dev-python/pycxx/pycxx-7.1.2-r1.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="7"
+PYTHON_COMPAT=( python3_{6,7,8} )
+
+inherit eutils distutils-r1
+
+DESCRIPTION="Set of facilities to extend Python with C++"
+HOMEPAGE="http://cxx.sourceforge.net"
+SRC_URI="mirror://sourceforge/cxx/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-solaris"
+IUSE="doc examples"
+
+python_prepare_all() {
+ # Without this, pysvn fails.
+ # Src/Python3/cxxextensions.c: No such file or directory
+ sed -e "/^#include/s:Src/::" -i Src/*.{c,cxx} || die "sed failed"
+
+ distutils-r1_python_prepare_all
+}
+
+python_install_all() {
+ use doc && local HTML_DOCS=( Doc/. )
+ if use examples ; then
+ insinto /usr/share/doc/${PF}/examples
+ doins -r Demo/Python{2,3}/.
+ docompress -x /usr/share/doc/${PF}/examples
+ fi
+ distutils-r1_python_install_all
+}