From b34b1e3fe14641c4b20ccabbe39150beba39753c Mon Sep 17 00:00:00 2001 From: Mark Wright Date: Sun, 15 Feb 2026 14:49:50 +1100 Subject: dev-python/pycxx: Bump to 7.2.1 Signed-off-by: Mark Wright --- dev-python/pycxx/Manifest | 2 +- dev-python/pycxx/pycxx-7.2.0.ebuild | 115 ------------------------------------ dev-python/pycxx/pycxx-7.2.1.ebuild | 113 +++++++++++++++++++++++++++++++++++ 3 files changed, 114 insertions(+), 116 deletions(-) delete mode 100644 dev-python/pycxx/pycxx-7.2.0.ebuild create mode 100644 dev-python/pycxx/pycxx-7.2.1.ebuild (limited to 'dev-python') diff --git a/dev-python/pycxx/Manifest b/dev-python/pycxx/Manifest index faab25e21e92..ec5556289e77 100644 --- a/dev-python/pycxx/Manifest +++ b/dev-python/pycxx/Manifest @@ -1,2 +1,2 @@ DIST pycxx-7.1.8.tar.gz 154789 BLAKE2B e4b635d4b53ae3fd0790d6eddcd465acfc5272213e9752e7c2a1840edddb66f09bc9617373246964859125a27dc82110de6b4f4ffa44c41c94c338c846490e47 SHA512 3c9c3a23dfa9777c6a48b8600e7336cbadb60080a1051071583d534ead6c691dd9d304613073d6fb0c632eb1703b043b4214826c0ae7bd4b2ca72203ec03c0a2 -DIST pycxx-7.2.0.zip 242771 BLAKE2B d163c827a9eea79bd835a27464bb7ae49693826b9951f1c1ce912cac22b83d2a328824b493c78a98f7147310bb1c1bb665de8a7dd63ec82e4c9445d7ab75acc1 SHA512 53cb021b7e2907e7b949e7412cb5b3b7fbde60b4e325fca3b046c5d122c55951449d4f8d39858d3fff0388a3df5307499f81a443aae441c7cabebcd6c4e62603 +DIST pycxx-7.2.1.zip 243166 BLAKE2B 66be3ce7e799c5261f2cdfd03882a857774067d45ee9f999f07c794828f119a329b0e61f0bb358e96ac26f7ec8ab4582193a604e47e9aa2dd9df674f04b79fbe SHA512 8d47b35cf3105bd42e4197fc9519153501b8e5513c262454284faec292eec8a15498eebdb2e5b51c32c9a9d18cecb1d86a01fb856ed4f18ff3738d089117b38d diff --git a/dev-python/pycxx/pycxx-7.2.0.ebuild b/dev-python/pycxx/pycxx-7.2.0.ebuild deleted file mode 100644 index 5e379e666746..000000000000 --- a/dev-python/pycxx/pycxx-7.2.0.ebuild +++ /dev/null @@ -1,115 +0,0 @@ -# Copyright 1999-2026 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI="8" - -PYTHON_COMPAT=( python3_{11..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-r465-trunk/CXX - -LICENSE="BSD" -SLOT="0" -KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~x64-macos" -IUSE="doc examples test" -RESTRICT="!test? ( test )" - -BDEPEND=" - $(python_gen_cond_dep ' - dev-python/setuptools[${PYTHON_USEDEP}] - ' 3.12) - 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 -} 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..50a75066e038 --- /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_{11..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 +} -- cgit v1.2.3