diff options
author | mirror@stealer.net <mirror@stealer.net> | 2025-07-04 19:30:25 +0000 |
---|---|---|
committer | mirror@stealer.net <mirror@stealer.net> | 2025-07-04 19:30:25 +0000 |
commit | 3622203a83eb9f11bcbbe0ce9b31d2d1baab6fc8 (patch) | |
tree | 10ea114fbcee036ce0cb6f9003c3a351e5ac542c /dev-lang | |
parent | 9844d4cf27a87a0e540da50031997b7056374001 (diff) |
2025-07-04 19:11:08+00:00
Diffstat (limited to 'dev-lang')
-rw-r--r-- | dev-lang/Manifest.gz | bin | 22493 -> 22498 bytes | |||
-rw-r--r-- | dev-lang/pypy/Manifest | 3 | ||||
-rw-r--r-- | dev-lang/pypy/pypy-3.11.7.3.20.ebuild | 239 | ||||
-rw-r--r-- | dev-lang/pypy3-exe-bin/Manifest | 9 | ||||
-rw-r--r-- | dev-lang/pypy3-exe-bin/pypy3-exe-bin-3.11.7.3.20.ebuild | 86 | ||||
-rw-r--r-- | dev-lang/pypy3-exe/Manifest | 3 | ||||
-rw-r--r-- | dev-lang/pypy3-exe/pypy3-exe-3.11.7.3.20.ebuild | 137 | ||||
-rw-r--r-- | dev-lang/python/Manifest | 2 | ||||
-rw-r--r-- | dev-lang/python/python-3.11.13.ebuild | 2 |
9 files changed, 479 insertions, 2 deletions
diff --git a/dev-lang/Manifest.gz b/dev-lang/Manifest.gz Binary files differindex d3733d57932c1..f74ab6e7cb7e0 100644 --- a/dev-lang/Manifest.gz +++ b/dev-lang/Manifest.gz diff --git a/dev-lang/pypy/Manifest b/dev-lang/pypy/Manifest index d5b615d799a7f..208fdf81418c3 100644 --- a/dev-lang/pypy/Manifest +++ b/dev-lang/pypy/Manifest @@ -5,9 +5,12 @@ DIST pypy2.7-v7.3.20-src.tar.bz2 21016441 BLAKE2B 382830a4e2511b77861a96a52038f0 DIST pypy3.10-gentoo-patches-7.3.19_p5.tar.xz 26284 BLAKE2B 726121c69c24ef8d5c812842cc5b76d517cb6495530ea82f5379f6ed376f9e9afd613dff90af03cb72a01aa590e7ab7c3ed0de3f9fa45988b17ed49e0a34b12f SHA512 646fe0610b2ec32ea895c968b388febc8634f7ff92b772dcd7732ef1bf7e7ffad23c2df47a695298284122780fb8f0ea4160901b3be16211428080e67af25a09 DIST pypy3.10-v7.3.19-src.tar.bz2 24547353 BLAKE2B 975de34c7e01117c74e184693b6659ba0e3d8d488d724c03737dbd64533452c954e045e45058e1e77b9bee68e01060e74e30d7898d29f1adce417ce4b46579b8 SHA512 8fa24d3556bcf9cd0e2facd697827a5001fcfae9bf7874957843e4751b259f85a8b36166921282d71f39bb468d1706bb669373aebbc52486b683fcc824fb30ad DIST pypy3.11-gentoo-patches-7.3.19_p11.tar.xz 29804 BLAKE2B 23a6a82f0ab21540d24bf23771161616f2e10022ecb3d6948ca837705410e930c1ea9b83f233145a55fe2091149dbc4d5d63a8970e5f9e32d1486f28f41f533a SHA512 cde1fb6df55f5c24ec41e7a02204fa5e520f14f52cf1224557b22b1fe6448e7eca22568424ed23da9bffb81c1dae85cefc1aecdf2c8c33b4c38c32342ff03666 +DIST pypy3.11-gentoo-patches-7.3.20.tar.xz 3108 BLAKE2B 2af9b49714010aa0c0eb7161b6cda2b7a0199b2c6d4abadbc05984b4dce18324b0d22655d1621098376d6a7da01341dbd730c62fa3b6d64967dc5ee16bd90fb9 SHA512 780d69f67d1594ae39ce8c3a4d743b627631466c42b11e9f84909fc6a37e0b0f54eb82569f62c588eb9214b3235c204e3684ddcde8785a0e6d360d7806d35fd2 DIST pypy3.11-v7.3.19-src.tar.bz2 24916380 BLAKE2B febc61b3a1c5055b5ab92e7f3af2c307605c8510131437b12df27b58a13b29f6fd0a4bf82d101f7f8f441ca93b20cf70dbd540af11578be297ea871d59304ea3 SHA512 ab078e81e5eefe16823350bdc9adcc444e0ef6835ff2234197f9e5cb0903c5208deb6df60722e99aa529ffff703c5dcbc08eaa7f753c2e5c1185afea6358395a +DIST pypy3.11-v7.3.20-src.tar.bz2 24907202 BLAKE2B eef877362365908b665cbd0ea266daebe5fa7a3f224ac0d133664244b712214e2ae93ab655e2f82257beef125c3cef301e50810c97ba4c035efa4930902aed32 SHA512 b957adeca5d5bd33cf1e9769459282488fdd9b1ec9398d20b35681ca88492bc01bdee91bb2c212e75fb946555f9be9869b7944b20207aef5a63c7035702b8cfa EBUILD pypy-2.7.7.3.19.ebuild 7390 BLAKE2B 0a2de7fe0cf184c8509edad7866a0642e154582b968987324c6a7deab7b8cc91a61283384b03554b55bbf5142fdfd4c2c32d734c67836f4079e8d23685845fe7 SHA512 a8e9978a6b27e54cf912083c10a6d3652d6e9b012e047434ae24a89a2cf0308df24e7f8b92e4008c1891c274d206201d68f915469a3f8b1ea786e054485e1d73 EBUILD pypy-2.7.7.3.20.ebuild 7392 BLAKE2B 4b35786d65011016b75f0e173c047582b025d4f7f89f9f86e2c7fd7dcfb388b77a31f6f515393a47101756999ee495b7620de43c4275732d221ba964b066c412 SHA512 45baadb55e445268f792ff4bf75d40e611482e5c68635e411266d10c899de08d784e4ec6137a951b7e43ad9e2c2aae2f5c1818d686cfeba684bf07acbfba8c34 EBUILD pypy-3.10.7.3.19_p5.ebuild 6744 BLAKE2B 4385dd16c6608e2a5a244aa81d51ea9237a21d029c14acd3907be298b8124b96214e5aa5d858a10caba858306830c166c2ed9b8989746f65535b98e3cd04dca8 SHA512 0a0e979c8905a12e3a11e18ff30705db9e3e32debe428ec052ba76531e9cc04860a6dee78d96ed6ed7fff9e05778395ad08fd2026b33a6e7dd3a40ec367ddc4c EBUILD pypy-3.11.7.3.19_p11.ebuild 7120 BLAKE2B 9f6ea51a40143bf5c61012bd87dd8e3f2a94279885b18d23eabb4402ce0a9db2031fc8c700a18f182c170c08f6cacf0acb907067ddc91f84a1736473657f1b44 SHA512 a83f78050ff8a3d061e8a140ee2f9a8d2fff6f5b9630e959e1acc14b2382a0f7bd7ba5851464874199352771f9e8fed6a9d8a3c92e1823a207ab1d049841b2c0 +EBUILD pypy-3.11.7.3.20.ebuild 7122 BLAKE2B cbfa3783ea049f2e477beb259af57f79df299e1be3c4c7b5bc24805f2137711c1576c5432946ab7d5ac663973d779c62133fc08a89a5a81936e209f7255bee9b SHA512 9a36291821d5da978119cc7fcaf4034073eb0c66608866544642e6c74ad36a35b1f5beae7850b7b6bb782f6e36ddb24c05ea2ec4d230404642bbac4baa4fb229 MISC metadata.xml 1124 BLAKE2B f1d09d26175cf20d1440a9a83352cf6f2f2e514d35d95116caf4a5ee86547f0165a6369e7a6b129ded75d28ba5a0c1c8f4da7d664d7c1e3c1e95153593057b3c SHA512 ae95400c9a1efc75372201c2353b128302355d1d087094953d73c325fa72bc24662d31c7287ae6a2583448ac345bb60744ac19391e07f8da8ef0327627e0e462 diff --git a/dev-lang/pypy/pypy-3.11.7.3.20.ebuild b/dev-lang/pypy/pypy-3.11.7.3.20.ebuild new file mode 100644 index 0000000000000..3601b5226f4d4 --- /dev/null +++ b/dev-lang/pypy/pypy-3.11.7.3.20.ebuild @@ -0,0 +1,239 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit multiprocessing pax-utils python-utils-r1 toolchain-funcs + +PYVER=$(ver_cut 1-2) +PATCHSET_PV=$(ver_cut 3-) +PYPY_PV=${PATCHSET_PV%_p*} + +MY_P="pypy${PYVER}-v${PYPY_PV/_}" +PATCHSET="pypy${PYVER}-gentoo-patches-${PATCHSET_PV/_rc/rc}" + +DESCRIPTION="A fast, compliant alternative implementation of the Python (${PYVER}) language" +HOMEPAGE=" + https://pypy.org/ + https://github.com/pypy/pypy/ +" +SRC_URI=" + https://downloads.python.org/pypy/${MY_P}-src.tar.bz2 + https://buildbot.pypy.org/pypy/${MY_P}-src.tar.bz2 + https://dev.gentoo.org/~mgorny/dist/python/${PATCHSET}.tar.xz +" +S="${WORKDIR}/${MY_P}-src" + +LICENSE="MIT" +# pypy3 -c 'import sysconfig; print(sysconfig.get_config_var("SOABI"))' +# also check pypy/interpreter/pycode.py -> pypy_incremental_magic +SLOT="${PYVER}/pypy311-pp73-416" +KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86" +IUSE="+ensurepip gdbm +jit ncurses sqlite symlink +test-install tk" +# many tests are failing upstream +# see https://buildbot.pypy.org/summary?branch=py${PYVER} +RESTRICT="test" + +RDEPEND=" + || ( + dev-lang/pypy3-exe:${PV%_p*}[bzip2(+),ncurses?] + dev-lang/pypy3-exe-bin:${PV%_p*} + ) + dev-lang/python-exec[python_targets_pypy${PYVER/./_}(-)] + dev-libs/openssl:0= + dev-python/gentoo-common + ensurepip? ( dev-python/ensurepip-wheels ) + gdbm? ( sys-libs/gdbm:0= ) + sqlite? ( dev-db/sqlite:3= ) + tk? ( + dev-lang/tk:0= + dev-tcltk/tix:0= + ) + symlink? ( + !dev-lang/pypy:3.10[symlink(-)] + !<dev-python/pypy3-7.3.17-r100 + ) +" +DEPEND=" + ${RDEPEND} +" + +src_prepare() { + local PATCHES=( + "${WORKDIR}/${PATCHSET}" + ) + + default +} + +src_configure() { + tc-export CC +} + +src_compile() { + mkdir bin || die + # switch to the layout expected for cffi module builds + mkdir "include/pypy${PYVER}" || die + # copy over to make sys.prefix happy + cp -p "${BROOT}/usr/bin/pypy${PYVER}-c-${PYPY_PV}" pypy${PYVER}-c || die + cp -p "${BROOT}/usr/include/pypy${PYVER}/${PYPY_PV}"/* include/pypy${PYVER}/ || die + # (not installed by pypy-exe) + rm pypy/module/cpyext/include/_numpypy/numpy/README || die + mv pypy/module/cpyext/include/* "include/pypy${PYVER}/" || die + mv pypy/module/cpyext/parse/*.h "include/pypy${PYVER}/" || die + pax-mark m "pypy${PYVER}-c" + + # verify the subslot + local soabi=$( + "./pypy${PYVER}-c" - <<-EOF + import importlib.util + import sysconfig + soabi = sysconfig.get_config_var("SOABI") + magic = importlib.util._RAW_MAGIC_NUMBER & 0xffff + print(f"{soabi}-{magic}") + EOF + ) + [[ ${soabi} == ${SLOT#*/} ]] || die "update subslot to ${soabi}" + + # Add epython.py to the distribution + echo "EPYTHON=\"pypy${PYVER}\"" > lib-python/3/epython.py || die + + einfo "Generating caches and CFFI modules ..." + + # Generate Grammar and PatternGrammar pickles. + "./pypy${PYVER}-c" - <<-EOF || die "Generation of Grammar and PatternGrammar pickles failed" + import lib2to3.pygram + import lib2to3.patcomp + lib2to3.patcomp.PatternCompiler() + EOF + + # Generate cffi modules + # Please keep in sync with lib_pypy/pypy_tools/build_cffi_imports.py! + # (NB: we build CFFI modules first to avoid error log when importing + # build_cffi_imports). + cffi_targets=( + pypy_util blake2/_blake2 sha3/_sha3 ssl + audioop syslog pwdgrp resource lzma posixshmem + ctypes_test testmultiphase + ) + use gdbm && cffi_targets+=( gdbm ) + use ncurses && cffi_targets+=( curses ) + use sqlite && cffi_targets+=( sqlite3 ) + use tk && cffi_targets+=( tkinter/tklib ) + + local t + # all modules except tkinter output to . + # tkinter outputs to the correct dir ... + cd lib_pypy || die + for t in "${cffi_targets[@]}"; do + # tkinter doesn't work via -m + "../pypy${PYVER}-c" "_${t}_build.py" || die "Failed to build CFFI bindings for ${t}" + done + # testcapi does not have a "build" script + "../pypy${PYVER}-c" -c "import _testcapi" || die + + # Verify that CFFI module list is up-to-date + local expected_cksum=a4138e48 + local local_cksum=$( + "../pypy${PYVER}-c" - <<-EOF + import binascii + import json + from pypy_tools.build_cffi_imports import cffi_build_scripts as x + print("%08x" % (binascii.crc32(json.dumps(x).encode()),)) + EOF + ) + if [[ ${local_cksum} != ${expected_cksum} ]]; then + die "Please verify cffi_targets and update checksum to ${local_cksum}" + fi + + # Cleanup temporary objects + find \( -name "*_cffi.c" -o -name '*.o' \) -delete || die + find -type d -empty -delete || die + cd .. || die + + # Generate sysconfig data + local host_gnu_type=$(sh pypy/tool/release/config.guess) + local overrides=( + HOST_GNU_TYPE "${host_gnu_type:-unknown}" + INCLUDEPY "${EPREFIX}/usr/include/pypy${PYVER}" + LIBDIR "${EPREFIX}/usr/$(get_libdir)" + TZPATH "${EPREFIX}/usr/share/zoneinfo" + WHEEL_PKG_DIR "${EPREFIX}/usr/lib/python/ensurepip" + ) + "./pypy${PYVER}-c" -m sysconfig --generate-posix-vars "${overrides[@]}" || die + local outdir + outdir=$(<pybuilddir.txt) || die + cp "${outdir}"/_sysconfigdata__*.py lib-python/3/ || die +} + +src_install() { + local dest="/usr/lib/pypy${PYVER}" + einfo "Installing PyPy ..." + dodir /usr/bin + dosym "pypy${PYVER}-c-${PYPY_PV}" "/usr/bin/pypy${PYVER}" + insinto "${dest}" + # preserve mtimes to avoid obsoleting caches + insopts -p + doins -r lib-python/3/. lib_pypy/. + insinto /usr/include + doins -r "include/pypy${PYVER}" + + # replace copied headers with symlinks + for x in "${BROOT}/usr/include/pypy${PYVER}/${PYPY_PV}"/*; do + dosym "${PYPY_PV}/${x##*/}" "/usr/include/pypy${PYVER}/${x##*/}" + done + + dodoc README.rst + + rm -r "${ED}${dest}"/ensurepip/_bundled || die + if ! use ensurepip; then + rm -r "${ED}${dest}"/ensurepip || die + fi + if ! use gdbm; then + rm -r "${ED}${dest}"/_gdbm* || die + fi + if ! use test-install; then + rm -r "${ED}${dest}"/{ctypes,tkinter,unittest}/test \ + "${ED}${dest}"/{distutils,lib2to3}/tests \ + "${ED}${dest}"/idlelib/idle_test || die + fi + if ! use sqlite; then + rm -r "${ED}${dest}"/sqlite3 \ + "${ED}${dest}"/_sqlite3* \ + "${ED}${dest}"/test/test_sqlite3 || die + fi + if ! use tk; then + rm -r "${ED}${dest}"/{idlelib,tkinter} \ + "${ED}${dest}"/_tkinter \ + "${ED}${dest}"/test/test_{tcl,tk,ttk*}.py || die + fi + # remove test last since we have some file removals above + if ! use test-install; then + rm -r "${ED}${dest}"/test || die + fi + dosym ../python/EXTERNALLY-MANAGED "${dest}/EXTERNALLY-MANAGED" + + local -x PYTHON="${ED}/usr/bin/pypy${PYVER}-c-${PYPY_PV}" + # temporarily copy to build tree to facilitate module builds + cp -p "${BROOT}/usr/bin/pypy${PYVER}-c-${PYPY_PV}" "${PYTHON}" || die + + einfo "Byte-compiling Python standard library..." + # exclude list from CPython Makefile.pre.in + "${PYTHON}" -m compileall -j "$(makeopts_jobs)" -o 0 -o 1 -o 2 \ + -x 'bad_coding|badsyntax|site-packages|lib2to3/tests/data' \ + --hardlink-dupes -q -f -d "${dest}" "${ED}${dest}" || die + + # remove to avoid collisions + rm "${PYTHON}" || die + + if use symlink; then + dosym pypy${PYVER} /usr/bin/pypy3 + + # install symlinks for python-exec + local EPYTHON=pypy${PYVER} + local scriptdir=${D}$(python_get_scriptdir) + mkdir -p "${scriptdir}" || die + ln -s "../../../bin/pypy3" "${scriptdir}/python3" || die + ln -s python3 "${scriptdir}/python" || die + fi +} diff --git a/dev-lang/pypy3-exe-bin/Manifest b/dev-lang/pypy3-exe-bin/Manifest index b8496f5d8a286..d24ebd062e892 100644 --- a/dev-lang/pypy3-exe-bin/Manifest +++ b/dev-lang/pypy3-exe-bin/Manifest @@ -6,5 +6,14 @@ DIST pypy3-exe-3.11.7.3.19-1.ppc64le-musl.gpkg.tar 6973440 BLAKE2B 9f36dccbcd815 DIST pypy3-exe-3.11.7.3.19-1.ppc64le.gpkg.tar 10741760 BLAKE2B 09a4888bc305ba8fa56de480abeaeb56ff05e479a72fdb1ab62cb89ab9ec7aac95511314c58e04b7fc670248f9f12e362e7733f757fadc32952f0b74ad6377f4 SHA512 021d5c45d414da4013b7e4469ee6b9eb87c8902ce63fef515de036d2c512ddfcba24a7c4405d681d025f820670001a21ddb94dcd25cd8d583bd091757a0e0f07 DIST pypy3-exe-3.11.7.3.19-1.x86-musl.gpkg.tar 9359360 BLAKE2B 33cae43f868c09edf06c7c40da9fe81edeb1d14a50686ec7cdce38a16ed7d6473b88a4995d6b720330e311680b975e834ab4fddb18af140fb8289a4669a98af6 SHA512 9e66de09268dd3627c87b789d1667ebf2469c27183ec9ea1263e699a3e0aae49ccc300ab2148394f73db415674c45d50a149e506e7a155f72f65806e45485633 DIST pypy3-exe-3.11.7.3.19-1.x86.gpkg.tar 9328640 BLAKE2B 5612778adf93329e6c691f0e6c5a311e3c401cef08e05ad978aa92d32f5b5cbc127efafefc76b16eaac1878a1c895094d8b53b853e4d90416751dbb7a3fa7d4c SHA512 fa6483c229c174fb9aa57cfe1b3839fd4b68d987ae50da492e8768a4635e99d1dd471dcba518a74b6264e3c5b58bde59614daf01a72f44a21a9038f0943f175d +DIST pypy3-exe-3.11.7.3.20-1.amd64-musl.gpkg.tar 12359680 BLAKE2B 679c9eb3db60fa44d93fa8f01a391a9e8436735d85b45891734d0758a857e4c3be0a9215530ab989708443c5eea8393a641093ea329d2085986333fe692e42b5 SHA512 c0790e834cf1ba6f75bad48cb1c6d565cb5b0479fb2a67c647a14b91d21113dbb7b27dc4faa638d377c01f67daf83a681c3737add614cf6c97b00b248ff9b1c1 +DIST pypy3-exe-3.11.7.3.20-1.amd64.gpkg.tar 12462080 BLAKE2B 8369df911b9e24a18f981ecff7334c00231ce66472caa515b402929cbb4faa225b24c565c78c7fac0bc5689f3b576d349825d0d5fa0dabe26b9778755dc576a7 SHA512 952aa7016be46d7703cbf6fddd87a53a9a71dc09c137209289fc75d4b5b4144d06658cd726c8660ec2f4b366020251aeb8df9fb315601f79e0d2bede5e07b09d +DIST pypy3-exe-3.11.7.3.20-1.arm64-musl.gpkg.tar 10516480 BLAKE2B b076c8fbfc3cd5dc76eb1c2d0c7ab4c5fdb3ddcf7162691dbc8c6dd411c52caf60cd721b159fac37a53c83f2ccafd37237dcb621c1a649570281743b916459ac SHA512 ebf57726b122b497d1dd209b0c33b0f0ed8cd68ae909ac53c27ac8d376e74c7830ef2017ccc1025a18426feb313f436bc27a4db5d6ac69595eb2e0c3072364ab +DIST pypy3-exe-3.11.7.3.20-1.arm64.gpkg.tar 10475520 BLAKE2B 842498c8bf28b0c40d858f6a1c7161e6e58d1a2477b0e655e537f9793b8abf61b5c7b873513dfb454ef78a5e32691fb6991d0edc309f85c51ce57bfd0ba4dbd2 SHA512 5190a2f77b6eabf005e7b355b74beee735484e74fb57d9f680efa462d5ac17ef445795a2640e29608e8f724ff815dac16b75d1144486d92634724cf76b6c3646 +DIST pypy3-exe-3.11.7.3.20-1.ppc64le-musl.gpkg.tar 6973440 BLAKE2B f72a41b9c5e25f4400f3530daf283816ff57489cad814fcc103531c917ce1158a397cd2cd4a899272805f63092f4218fca95b9497f26b73183458719c8345d76 SHA512 57b93fde58e573845114122457ac3ad887703afbb852ff8718d4b1c93d2cdaefa0acdc9fbd309d42708d64d634e254012b678676aaf371a3524992ac313eb5f3 +DIST pypy3-exe-3.11.7.3.20-1.ppc64le.gpkg.tar 10680320 BLAKE2B 83fc7d4faad3686ea65f6d069e414c3ca51770c453b062c1562d09f7773c9cb1d4349f2ba0122aa8c77d008e3153ac256147412f22d65c298e5c64bf29f7c3c0 SHA512 38fbc0a102549ea41d5e249d8259cecc448c2883c778ad9f14f71eec4d812ab40245665e9de898f26974a100767b1e42a1873454a5d2503309e75e0ac4810292 +DIST pypy3-exe-3.11.7.3.20-1.x86-musl.gpkg.tar 9308160 BLAKE2B a9017b6eca3369229bb121e1360f297f63034b790eb5361135c9782c701b29a47b55bace80b88e4b7ff15196765dc2bd319daae0371576000bb7a35878ec8af0 SHA512 45f6cbb7bbb2993c26ca3fbcc82676ddfd98deed1317f09249957a09a7d515b9411d5a0207aa638b395cb337fb5dc6f895884388127392a660b4a0c86b5eef91 +DIST pypy3-exe-3.11.7.3.20-1.x86.gpkg.tar 9308160 BLAKE2B eab59008574be69845f6c0fec51ac1054b5ce626e60f37d36149bc4cf03547b30b52e2a04e4e316253b4949b9d6312ca24f04405fbed808e348267a85d66cfae SHA512 3ce9d43046d772a6eecb39ab90924b263ad9cc40e64fd7639120d0faea96dbe3903de8fd424b8697c5a2ca9f058b0697f8dd9db758d8f216f050f9709a640aca EBUILD pypy3-exe-bin-3.11.7.3.19.ebuild 2061 BLAKE2B 0ffd08d80783d11c456296ae1a1a7dbbc88a9b247fb049a3298bb4d840db72bdf842b46b4c9f9a8d682030d77825bed569b051e57377bbdc8ca45f9478f524a2 SHA512 6a0cd25fc2fed3d8cd40ce8a29e3a9bd02e123ea65865da2997c0994de73a419f8be8140e4728dd23d1d75ea9e3f2d24fcbc6c6a5e2c122d4a83a42ed4f5c05b +EBUILD pypy3-exe-bin-3.11.7.3.20.ebuild 2063 BLAKE2B 12be4a25869091c47f1534594659d53e34dafb76d73c491f8db0d53a9fa4858d5350172e124ef93c278d26fa0abeacca052aa1519892c5249c8b86a452d40e5d SHA512 cf1079da48a6b08ca0806373cd10e57b6fb2e974b7c51920c70e555881e6d16b84e66c021052ede7be01b8206f14d0faef70cc1860fba57d1b2014eb57f8dbde MISC metadata.xml 315 BLAKE2B da5ed341c55250028587ffb479a27b7ec31eb0f8bd0e11b8a98a374e23d989f7d5bcce647ca9c78cd12f64b6b83dd0568c4f3a992a6c8c5089c52cef9de87441 SHA512 ebe1c4d655c49fd20127dd240b603f1b99d67c0a6d21c7eb37bee48f4ec6bba50648816ea2b1b746af58fcf8de576d24fe355ecfa2de07ebaa0265ade2ea38ba diff --git a/dev-lang/pypy3-exe-bin/pypy3-exe-bin-3.11.7.3.20.ebuild b/dev-lang/pypy3-exe-bin/pypy3-exe-bin-3.11.7.3.20.ebuild new file mode 100644 index 0000000000000..15481f9c5c4ec --- /dev/null +++ b/dev-lang/pypy3-exe-bin/pypy3-exe-bin-3.11.7.3.20.ebuild @@ -0,0 +1,86 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit pax-utils unpacker + +PYVER=$(ver_cut 1-2) +PATCHSET_PV=$(ver_cut 3-) +PYPY_PV=${PATCHSET_PV%_p*} +MY_P=pypy3-exe-${PV}-1 + +DESCRIPTION="PyPy3.11 executable (pre-built version)" +HOMEPAGE=" + https://pypy.org/ + https://github.com/pypy/pypy/ +" +SRC_URI=" + elibc_glibc? ( + amd64? ( + https://dev.gentoo.org/~mgorny/binpkg/amd64/pypy/dev-lang/pypy3-exe/${MY_P}.gpkg.tar + -> ${MY_P}.amd64.gpkg.tar + ) + arm64? ( + https://dev.gentoo.org/~mgorny/binpkg/arm64/pypy/dev-lang/pypy3-exe/${MY_P}.gpkg.tar + -> ${MY_P}.arm64.gpkg.tar + ) + ppc64? ( + https://dev.gentoo.org/~mgorny/binpkg/ppc64le/pypy/dev-lang/pypy3-exe/${MY_P}.gpkg.tar + -> ${MY_P}.ppc64le.gpkg.tar + ) + x86? ( + https://dev.gentoo.org/~mgorny/binpkg/x86/pypy/dev-lang/pypy3-exe/${MY_P}.gpkg.tar + -> ${MY_P}.x86.gpkg.tar + ) + ) + elibc_musl? ( + amd64? ( + https://dev.gentoo.org/~mgorny/binpkg/amd64-musl/pypy/dev-lang/pypy3-exe/${MY_P}.gpkg.tar + -> ${MY_P}.amd64-musl.gpkg.tar + ) + arm64? ( + https://dev.gentoo.org/~mgorny/binpkg/arm64-musl/pypy/dev-lang/pypy3-exe/${MY_P}.gpkg.tar + -> ${MY_P}.arm64-musl.gpkg.tar + ) + ppc64? ( + https://dev.gentoo.org/~mgorny/binpkg/ppc64le-musl/pypy/dev-lang/pypy3-exe/${MY_P}.gpkg.tar + -> ${MY_P}.ppc64le-musl.gpkg.tar + ) + x86? ( + https://dev.gentoo.org/~mgorny/binpkg/x86-musl/pypy/dev-lang/pypy3-exe/${MY_P}.gpkg.tar + -> ${MY_P}.x86-musl.gpkg.tar + ) + ) +" +S=${WORKDIR}/${MY_P} + +LICENSE="MIT" +SLOT="${PV%_p*}" +KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86" + +# sys-devel/gcc for libgcc_s.so +RDEPEND=" + app-arch/bzip2:0/1 + dev-libs/expat:0/0 + dev-libs/libffi:0/8 + sys-libs/ncurses:0/6 + >=sys-libs/zlib-1.1.3:0/1 + virtual/libintl:0/0 + elibc_glibc? ( + sys-devel/gcc + >=sys-libs/glibc-2.35 + ) + !dev-lang/pypy3-exe:${SLOT} +" + +QA_PREBUILT=" + usr/bin/pypy${PYVER}-c-${PYPY_PV} +" + +src_install() { + insinto / + doins -r image/usr + fperms +x "/usr/bin/pypy${PYVER}-c-${PYPY_PV}" + pax-mark m "${ED}/usr/bin/pypy${PYVER}-c-${PYPY_PV}" +} diff --git a/dev-lang/pypy3-exe/Manifest b/dev-lang/pypy3-exe/Manifest index 57afb9ca19b4e..3025440e9f337 100644 --- a/dev-lang/pypy3-exe/Manifest +++ b/dev-lang/pypy3-exe/Manifest @@ -1,4 +1,7 @@ DIST pypy3.11-gentoo-patches-7.3.19.tar.xz 2216 BLAKE2B d0ee04576659c7dbc49fcb75e4442a91a1d3084689a756ac77de1c38090c2f9fbf8cc1cd8ebab28ce0e0d674506746439b356b1240c492a6f7ea036f3d25e2c3 SHA512 99d37e45ce20307e188398de517e415437e3ba7a6b8f1dbf1f74caed481bc96bd961298e4537086a7056e36624e477daaefc53229525875ba433b60bdcf63c5f +DIST pypy3.11-gentoo-patches-7.3.20.tar.xz 3108 BLAKE2B 2af9b49714010aa0c0eb7161b6cda2b7a0199b2c6d4abadbc05984b4dce18324b0d22655d1621098376d6a7da01341dbd730c62fa3b6d64967dc5ee16bd90fb9 SHA512 780d69f67d1594ae39ce8c3a4d743b627631466c42b11e9f84909fc6a37e0b0f54eb82569f62c588eb9214b3235c204e3684ddcde8785a0e6d360d7806d35fd2 DIST pypy3.11-v7.3.19-src.tar.bz2 24916380 BLAKE2B febc61b3a1c5055b5ab92e7f3af2c307605c8510131437b12df27b58a13b29f6fd0a4bf82d101f7f8f441ca93b20cf70dbd540af11578be297ea871d59304ea3 SHA512 ab078e81e5eefe16823350bdc9adcc444e0ef6835ff2234197f9e5cb0903c5208deb6df60722e99aa529ffff703c5dcbc08eaa7f753c2e5c1185afea6358395a +DIST pypy3.11-v7.3.20-src.tar.bz2 24907202 BLAKE2B eef877362365908b665cbd0ea266daebe5fa7a3f224ac0d133664244b712214e2ae93ab655e2f82257beef125c3cef301e50810c97ba4c035efa4930902aed32 SHA512 b957adeca5d5bd33cf1e9769459282488fdd9b1ec9398d20b35681ca88492bc01bdee91bb2c212e75fb946555f9be9869b7944b20207aef5a63c7035702b8cfa EBUILD pypy3-exe-3.11.7.3.19.ebuild 2834 BLAKE2B 8ea19638103b1ec0c0e8228c62a1907b3175171fc051f0fbc167dcda8b4e386a68c750fb526a3f0954a40457e4ec6908b8e8074fe2f9e9f155416cab34886f0b SHA512 b63a2c6fe8e2e85f1115ebd7047f843e22a4ee3a809f31ad9d3a3e77b4a36dba44283533835fb2fe72b069cadbb531fae406e65eab201a74dca919d9d5615497 +EBUILD pypy3-exe-3.11.7.3.20.ebuild 2836 BLAKE2B 1deebc86c30a6737c1970f47d1ec7d3c584f07c14a14bd44662cf7d26a1d69b1da01a2e9de3d1ce37d06f5e0a4219080518fe43c71825c93a28e40e390524b3d SHA512 b3cbecfa4d2a1011c533610f9628f13e5f017c9d90f66f5c00fb30234d28f7d47a0ce69866838abbe2f638f7f36f82a52fe6b47252473765134935b5c20f90a4 MISC metadata.xml 572 BLAKE2B cfcd1422ec312338fd876bc4747a962ac3c4bd06e28a3891489b065fba4c7be2daa6955f51e8136d9b8cf7b68bb7eb887b6f419ee9fd626ebd6db204acb7995d SHA512 c79250d47e3d5c99c2c903bfc185449cc41f88e2b923b8eae1401e83c0f23fa1a12ad85f50b6e25844e805e543ae897ccf43185a1bdf9f992dff765249e55bc1 diff --git a/dev-lang/pypy3-exe/pypy3-exe-3.11.7.3.20.ebuild b/dev-lang/pypy3-exe/pypy3-exe-3.11.7.3.20.ebuild new file mode 100644 index 0000000000000..76bfdf01614c0 --- /dev/null +++ b/dev-lang/pypy3-exe/pypy3-exe-3.11.7.3.20.ebuild @@ -0,0 +1,137 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit check-reqs pax-utils toolchain-funcs + +PYVER=$(ver_cut 1-2) +PATCHSET_PV=$(ver_cut 3-) +PYPY_PV=${PATCHSET_PV%_p*} + +MY_P="pypy${PYVER}-v${PYPY_PV/_}" +PATCHSET="pypy${PYVER}-gentoo-patches-${PATCHSET_PV/_rc/rc}" + +DESCRIPTION="PyPy3.11 executable (build from source)" +HOMEPAGE=" + https://pypy.org/ + https://github.com/pypy/pypy/ +" +SRC_URI=" + https://downloads.python.org/pypy/${MY_P}-src.tar.bz2 + https://buildbot.pypy.org/pypy/${MY_P}-src.tar.bz2 + https://dev.gentoo.org/~mgorny/dist/python/${PATCHSET}.tar.xz +" +S="${WORKDIR}/${MY_P}-src" + +LICENSE="MIT" +SLOT="${PV%_p*}" +KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86 ~amd64-linux ~x86-linux" +IUSE="+jit low-memory ncurses cpu_flags_x86_sse2" + +RDEPEND=" + app-arch/bzip2:0= + dev-libs/expat:0= + dev-libs/libffi:0= + >=sys-libs/zlib-1.1.3:0= + virtual/libintl:0= + ncurses? ( sys-libs/ncurses:0= ) + !dev-lang/pypy3-exe-bin:${SLOT} +" +DEPEND=" + ${RDEPEND} +" +BDEPEND=" + || ( + dev-lang/pypy:2.7 + dev-python/pypy + ) + virtual/pkgconfig +" + +check_env() { + if use low-memory; then + CHECKREQS_MEMORY="1750M" + use amd64 && CHECKREQS_MEMORY="3500M" + else + CHECKREQS_MEMORY="3G" + use amd64 && CHECKREQS_MEMORY="6G" + fi + + check-reqs_pkg_pretend +} + +pkg_pretend() { + [[ ${MERGE_TYPE} != binary ]] && check_env +} + +pkg_setup() { + [[ ${MERGE_TYPE} != binary ]] && check_env +} + +src_prepare() { + local PATCHES=( + "${WORKDIR}/${PATCHSET}" + ) + default +} + +src_configure() { + tc-export CC + + local jit_backend + if use jit; then + jit_backend='--jit-backend=' + + # We only need the explicit sse2 switch for x86. + # On other arches we can rely on autodetection which uses + # compiler macros. Plus, --jit-backend= doesn't accept all + # the modern values... + + if use x86; then + if use cpu_flags_x86_sse2; then + jit_backend+=x86 + else + jit_backend+=x86-without-sse2 + fi + else + jit_backend+=auto + fi + fi + + local args=( + --no-shared + $(usex jit -Ojit -O2) + + ${jit_backend} + + pypy/goal/targetpypystandalone + --withmod-bz2 + $(usex ncurses --with{,out}mod-_minimal_curses) + ) + + local interp=( pypy ) + if use low-memory; then + local -x PYPY_GC_MAX_DELTA=200MB + interp+=( --jit loop_longevity=300 ) + fi + + # translate into the C sources + # we're going to build them ourselves since otherwise pypy does not + # free up the unneeded memory before spawning the compiler + set -- "${interp[@]}" rpython/bin/rpython --batch --source "${args[@]}" + echo -e "\033[1m${@}\033[0m" + "${@}" || die "translation failed" +} + +src_compile() { + emake -C "${T}"/usession*-0/testing_1 +} + +src_install() { + cd "${T}"/usession*-0 || die + newbin "testing_1/pypy${PYVER}-c" "pypy${PYVER}-c-${PYPY_PV}" + insinto "/usr/include/pypy${PYVER}/${PYPY_PV}" + doins *.h + pax-mark m "${ED}/usr/bin/pypy${PYVER}-c-${PYPY_PV}" +} diff --git a/dev-lang/python/Manifest b/dev-lang/python/Manifest index ebd40f9053533..ff972cd04847e 100644 --- a/dev-lang/python/Manifest +++ b/dev-lang/python/Manifest @@ -58,7 +58,7 @@ EBUILD python-3.10.17_p2.ebuild 14401 BLAKE2B 988e4e54b8d62b4bc8f5f1308483987ea3 EBUILD python-3.10.18.ebuild 14405 BLAKE2B c8f7ca01fa6188020708710b439558953377111cf6674eac91d73acdf3b872646fffae9b0d12709da01185aa608c7e5ea0f6385ae2cb1a60189e4ab885939a7a SHA512 6760f3bb8fb765cb9a69f8ed92be1c55d329110ae3b6b863be64d8805e644a840ef785649a024245c0904795650979aa2c75ae834242b7e595c71534b2b01f0f EBUILD python-3.10.9999.ebuild 13975 BLAKE2B ebce9991873547d026272b61a1ad09eddba94760fd9e3286481b0302bb66dd27dd3e5582b72d4ec27d96bd871019e7f747ceb2176464bd4f3b8de8a18bb853de SHA512 6aec5abfb7a4be0d1ecdda90deb40d01a58729f50f8837c87e60a473b0b78acec876d0dfe5dfa5688b28b9bb602de1b9e06e0ac7f544f5da5b8fedd816b67563 EBUILD python-3.11.12_p2.ebuild 16144 BLAKE2B edac2e7cb5705e57ba23ba7166a6df25ff679cc1c221c19e6f6bc849679c753a57372745b85170545c2e272cb9b0d8304e42d8f19d570473f699bcc1e180265b SHA512 f71cd33de090c3d562944dda7ef8d58bfa2967f75d085ecaf50bef06d7353a0dac8a33e569c805d4b1f6d25c2198130ca45956b1f2da41d93b7bc4697e9d05f9 -EBUILD python-3.11.13.ebuild 16149 BLAKE2B e74c029c36193a151a76c9d66f047de5169109b2fa1a473266f27684fbd1a9ef5e9f8c5e90da78ccd24c9b40ccd1ab7cbde1050a915fdd9327bddd1569b0d046 SHA512 e8795f1ae2c709b70ab33f6df17b8434c8892cd807210ffdcc89afe52a7ba6f9c8ddab9b8ae7b16de8b3be78426cf1c9a8582a5812e342a151f87da22a018e79 +EBUILD python-3.11.13.ebuild 16148 BLAKE2B f48f0f27c83ed7c54d2277ff5f6753a859b44e6b6664aff6c8b003a8c620d8f3a2c5ef10be98f5e262dfd13cea97c82ac316841f1d038ce110b8a928a81fe2f1 SHA512 01105522f83e2d9897bf17b52288a3353515182f7eb54d11dce012e0b8c4449d36a9d6a1dc15d3e9d73860ceca37748637c4f8b7ed5c8786d219864427543183 EBUILD python-3.11.9999.ebuild 15718 BLAKE2B 49e14d7ca684428f6cecc775c0ce13fe83a0328c86acd3fe107f96e7a25db00c94afe662485947c9555f3c41035df21ea29a96adc6cb3dfaba3b9c4235cf3bbe SHA512 fea18409d8eadb1e58a7b9b47971e51ca617dac25d312aa9afe186054590c169beb8905022c46a7715f04ad291935bfd109d7c25e66f1a7f8072c913cb4f19d8 EBUILD python-3.12.10_p2.ebuild 15599 BLAKE2B e0c35babbbd2a26f4b5a8049a1d149e1328c80f98ca44dfd6c98bcd046d4c31e954c1a459c82f3437d0638a0aef1d8f37390ef3f84b2ca7600b5991d9770074c SHA512 a6f34b27c86aa9a1d9c23084c1df79d1de798dc795712796cad6bdf03207266d5881294cdf71a3dfaf0c25dd523f375754fecfed8b6fd808734f68ce5ed0d29f EBUILD python-3.12.11.ebuild 15603 BLAKE2B 832fc30887abf335e88ac095217375fa11a109e7c5abe368016e7317ff64c03e9b196a734735e8400fccbb258f646d363ea3103c5c82d26068c545ac5cf5627b SHA512 b6d54086457176c655b64d77f06a382900bf49233d187528b09cfa90531372b435d0dfec5eeb5fe213bffe014ba02a4ff0f789084ca2c62fe4d8abcf235ba8af diff --git a/dev-lang/python/python-3.11.13.ebuild b/dev-lang/python/python-3.11.13.ebuild index ade900c86cf38..c5ec372681602 100644 --- a/dev-lang/python/python-3.11.13.ebuild +++ b/dev-lang/python/python-3.11.13.ebuild @@ -28,7 +28,7 @@ S="${WORKDIR}/${MY_P}" LICENSE="PSF-2" SLOT="${PYVER}" -KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc x86" +KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc x86" IUSE=" bluetooth build debug +ensurepip examples gdbm libedit +ncurses pgo +readline +sqlite +ssl test tk valgrind |