summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Pipping <sping@gentoo.org>2022-11-29 00:12:10 +0100
committerSebastian Pipping <sping@gentoo.org>2022-11-29 01:42:37 +0100
commit4a46118edd3a0616443a3ed026125c6b0462c572 (patch)
tree347f2876262be2960050c122b489ea68488cfc5d /dev-python/pycxx/pycxx-7.1.7.ebuild
parentdev-vcs/svneverever: Drop old (diff)
downloadgentoo-4a46118edd3a0616443a3ed026125c6b0462c572.tar.gz
gentoo-4a46118edd3a0616443a3ed026125c6b0462c572.tar.bz2
gentoo-4a46118edd3a0616443a3ed026125c6b0462c572.zip
dev-python/pycxx: 7.1.7 + Python 3.11 + fix false remote ID
Signed-off-by: Sebastian Pipping <sping@gentoo.org>
Diffstat (limited to 'dev-python/pycxx/pycxx-7.1.7.ebuild')
-rw-r--r--dev-python/pycxx/pycxx-7.1.7.ebuild37
1 files changed, 37 insertions, 0 deletions
diff --git a/dev-python/pycxx/pycxx-7.1.7.ebuild b/dev-python/pycxx/pycxx-7.1.7.ebuild
new file mode 100644
index 000000000000..49ffda406c9a
--- /dev/null
+++ b/dev-python/pycxx/pycxx-7.1.7.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="8"
+
+PYTHON_COMPAT=( python3_{8..11} )
+# DISTUTILS_USE_PEP517=setuptools broken, installs files to /usr/CXX
+DISTUTILS_USE_SETUPTOOLS=no
+
+inherit 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
+ docinto examples
+ dodoc -r Demo/Python{2,3}/.
+ docompress -x /usr/share/doc/${PF}/examples
+ fi
+ distutils-r1_python_install_all
+}