diff options
| author | root <root@alpha.trunkmasters.com> | 2026-06-12 19:09:37 -0500 |
|---|---|---|
| committer | root <root@alpha.trunkmasters.com> | 2026-06-12 19:09:37 -0500 |
| commit | b590c8d7572b727d565cc0b8ff660d43569845de (patch) | |
| tree | 06f7a4102ea4e845df8b66660f252920d52952f9 /dev-python/pycxx | |
| parent | 24f9cbfc4c34fdb6a6e03311674414e881ceab47 (diff) | |
| download | baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.tar.gz baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.tar.xz baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.zip | |
Adding metadata
Diffstat (limited to 'dev-python/pycxx')
| -rw-r--r-- | dev-python/pycxx/Manifest | 2 | ||||
| -rw-r--r-- | dev-python/pycxx/metadata.xml | 16 | ||||
| -rw-r--r-- | dev-python/pycxx/pycxx-7.1.8-r3.ebuild | 53 | ||||
| -rw-r--r-- | dev-python/pycxx/pycxx-7.2.1.ebuild | 113 |
4 files changed, 184 insertions, 0 deletions
diff --git a/dev-python/pycxx/Manifest b/dev-python/pycxx/Manifest new file mode 100644 index 000000000000..ec5556289e77 --- /dev/null +++ b/dev-python/pycxx/Manifest @@ -0,0 +1,2 @@ +DIST pycxx-7.1.8.tar.gz 154789 BLAKE2B e4b635d4b53ae3fd0790d6eddcd465acfc5272213e9752e7c2a1840edddb66f09bc9617373246964859125a27dc82110de6b4f4ffa44c41c94c338c846490e47 SHA512 3c9c3a23dfa9777c6a48b8600e7336cbadb60080a1051071583d534ead6c691dd9d304613073d6fb0c632eb1703b043b4214826c0ae7bd4b2ca72203ec03c0a2 +DIST pycxx-7.2.1.zip 243166 BLAKE2B 66be3ce7e799c5261f2cdfd03882a857774067d45ee9f999f07c794828f119a329b0e61f0bb358e96ac26f7ec8ab4582193a604e47e9aa2dd9df674f04b79fbe SHA512 8d47b35cf3105bd42e4197fc9519153501b8e5513c262454284faec292eec8a15498eebdb2e5b51c32c9a9d18cecb1d86a01fb856ed4f18ff3738d089117b38d diff --git a/dev-python/pycxx/metadata.xml b/dev-python/pycxx/metadata.xml new file mode 100644 index 000000000000..bb0c70e9890b --- /dev/null +++ b/dev-python/pycxx/metadata.xml @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>gienah@gentoo.org</email> + <name>Mark Wright</name> + </maintainer> + <longdescription lang="en"> + PyCXX is a set of C++ facilities to make it easier to write Python + extensions. The chief way in which PyCXX makes it easier to write + Python extensions is that it increases the probability that + your program will not make a reference-counting error and will not + have to continually check error returns from the Python C API. + </longdescription> + <origin>baldeagleos-repo</origin> +</pkgmetadata> 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..9175d02fd462 --- /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_{13..14} ) +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 ~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 +} diff --git a/dev-python/pycxx/pycxx-7.2.1.ebuild b/dev-python/pycxx/pycxx-7.2.1.ebuild new file mode 100644 index 000000000000..9d40307cf13f --- /dev/null +++ b/dev-python/pycxx/pycxx-7.2.1.ebuild @@ -0,0 +1,113 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="8" + +PYTHON_COMPAT=( python3_{13..14} ) +DISTUTILS_USE_PEP517=setuptools + +inherit distutils-r1 toolchain-funcs + +DESCRIPTION="Set of facilities to extend Python with C++" +HOMEPAGE="https://cxx.sourceforge.net" +SRC_URI="https://dev.gentoo.org/~gienah/snapshots/${P}.zip" + +S="${WORKDIR}"/cxx-code-r474-trunk/CXX + +LICENSE="BSD" +SLOT="0" +KEYWORDS="amd64 ~arm ~ppc ppc64 ~x86 ~x64-macos" +IUSE="doc examples test" +RESTRICT="!test? ( test )" + +BDEPEND=" + dev-python/setuptools[${PYTHON_USEDEP}] + app-arch/unzip +" + +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_compile() { + distutils-r1_python_compile + if use test; then + pushd Src || die + local S_SRCS="cxx_exceptions.cxx cxxextensions.c cxx_extensions.cxx cxxsupport.cxx IndirectPythonInterface.cxx" + local S_OBJS="" + for i in ${S_SRCS}; do + local S_O="${BUILD_DIR}/${i%%.c*}.o" + local c_cmd=( + $(tc-getCXX) \ + ${CPPFLAGS} ${CFLAGS} ${ASFLAGS} \ + -I"${S}" -I"${EPREFIX}/usr/include/${EPYTHON}" \ + -fPIC -c ${i} -o "${S_O}" + ) + printf '%s\n' "${c_cmd[*]}" + "${c_cmd[@]}" || die "compile test ${i} failed" + S_OBJS+="${S_O} " + done + popd || die + pushd Demo/Python3 || die + cp -p test_example.py "${BUILD_DIR}" || die + local D_SRCS="example.cxx range.cxx rangetest.cxx" + local D_OBJS="" + for i in ${D_SRCS}; do + local D_O="${BUILD_DIR}/${i%%.c*}.o" + local c_cmd=( + $(tc-getCXX) \ + ${CPPFLAGS} ${CFLAGS} ${ASFLAGS} \ + -I"${S}" -I"${S}"/Demo/Python3 -I"${EPREFIX}/usr/include/${EPYTHON}" \ + -fPIC -c ${i} -o "${D_O}" + ) + printf '%s\n' "${c_cmd[*]}" + "${c_cmd[@]}" || die "compile test ${i} failed" + S_OBJS+="${D_O} " + done + local l_example_cmd=( + $(tc-getCXX) \ + ${CPPFLAGS} ${CFLAGS} ${ASFLAGS} \ + -I$"{S}" -I"${S}"/Demo/Python3 -I$"{EPREFIX}/usr/include/${EPYTHON}" \ + -shared -fPIC -o "${BUILD_DIR}"/example.so ${S_OBJS} ${D_OBJS} -l${EPYTHON} -ldl + ) + printf '%s\n' "${l_example_cmd[*]}" + "${l_example_cmd[@]}" || die "link test example.so failed" + popd || die + fi +} + +python_test() { + pushd "${BUILD_DIR}" || die + export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${BUILD_DIR}" + local cmd=( + "${EPYTHON}" test_example.py + ) + printf '%s\n' "${cmd[*]}" + "${cmd[@]}" || die "test_example failed" + popd || die +} + +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 +} |
