diff options
| author | Ulrich Müller <ulm@gentoo.org> | 2025-03-26 09:12:51 +0100 |
|---|---|---|
| committer | Ulrich Müller <ulm@gentoo.org> | 2025-03-26 09:34:40 +0100 |
| commit | e5293c7ede1e5b7fea020cc2078a5ce31904f347 (patch) | |
| tree | 6ee1c0ec9d392e8e046554945daf92768d3c7cb2 /dev-python | |
| parent | 6e9527a0adc1d581e931e35ab0b0ad356ee6cefa (diff) | |
| download | gentoo-e5293c7ede1e5b7fea020cc2078a5ce31904f347.tar.gz gentoo-e5293c7ede1e5b7fea020cc2078a5ce31904f347.tar.bz2 gentoo-e5293c7ede1e5b7fea020cc2078a5ce31904f347.zip | |
dev-python/pycxx: Fix install location in /usr/include
Closes: https://bugs.gentoo.org/950381
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
Diffstat (limited to 'dev-python')
| -rw-r--r-- | dev-python/pycxx/pycxx-7.1.8-r2.ebuild | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/dev-python/pycxx/pycxx-7.1.8-r2.ebuild b/dev-python/pycxx/pycxx-7.1.8-r2.ebuild new file mode 100644 index 000000000000..a480ed5ca839 --- /dev/null +++ b/dev-python/pycxx/pycxx-7.1.8-r2.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="8" + +PYTHON_COMPAT=( python3_{10..12} ) +DISTUTILS_USE_PEP517=setuptools + +inherit distutils-r1 + +DESCRIPTION="Set of facilities to extend Python with C++" +HOMEPAGE="https://cxx.sourceforge.net" +SRC_URI="https://downloads.sourceforge.net/cxx/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos" +IUSE="doc examples" + +BDEPEND=" + $(python_gen_cond_dep ' + dev-python/setuptools[${PYTHON_USEDEP}] + ' 3.12) +" + +python_prepare_all() { + rm -R Src/Python2/ || die + + # 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() { + distutils-r1_python_install + + # Move misplaced files into place + dodir "/usr/share/${EPYTHON}" + mv "${D}/usr/CXX" "${D}/usr/share/${EPYTHON}/CXX" || die + mv "${D}/usr/include/${EPYTHON}"/{cxx,CXX} || die +} + +python_install_all() { + use doc && local HTML_DOCS=( Doc/. ) + if use examples ; then + docinto examples + dodoc -r Demo/Python3/. + docompress -x /usr/share/doc/${PF}/examples + fi + distutils-r1_python_install_all +} |
