diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2025-03-29 09:05:51 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2025-03-29 09:05:51 +0000 |
| commit | 43548ca1ba1490c2ac86a77ab7b71007d22de1f6 (patch) | |
| tree | c112ac49d582a0a3f376e53a242cf5783bf0900c /dev-python/pycxx | |
| parent | 5c2e8b0dbdfde27f6def9ee5585c6611860d93da (diff) | |
| download | baldeagleos-repo-43548ca1ba1490c2ac86a77ab7b71007d22de1f6.tar.gz baldeagleos-repo-43548ca1ba1490c2ac86a77ab7b71007d22de1f6.tar.xz baldeagleos-repo-43548ca1ba1490c2ac86a77ab7b71007d22de1f6.zip | |
Adding metadata
Diffstat (limited to 'dev-python/pycxx')
| -rw-r--r-- | dev-python/pycxx/pycxx-7.1.8-r3.ebuild | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/dev-python/pycxx/pycxx-7.1.8-r3.ebuild b/dev-python/pycxx/pycxx-7.1.8-r3.ebuild new file mode 100644 index 000000000000..44620a09c362 --- /dev/null +++ b/dev-python/pycxx/pycxx-7.1.8-r3.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_{9,10,11,12,13} ) +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 +} |
