diff options
author | mirror@stealer.net <mirror@stealer.net> | 2025-07-22 07:00:22 +0000 |
---|---|---|
committer | mirror@stealer.net <mirror@stealer.net> | 2025-07-22 07:00:22 +0000 |
commit | d19deb5a509d085ed77290a6d268361aa8c3dc05 (patch) | |
tree | f1eee3fc55bbc78ae71d91caba4d5905b80809c7 /dev-lang | |
parent | d400349386c770523abc99301ec865ec8da1767e (diff) |
2025-07-22 06:41:49+00:00
Diffstat (limited to 'dev-lang')
-rw-r--r-- | dev-lang/Manifest.gz | bin | 22480 -> 22476 bytes | |||
-rw-r--r-- | dev-lang/pypy/Manifest | 9 | ||||
-rw-r--r-- | dev-lang/pypy/pypy-2.7.7.3.19.ebuild | 315 | ||||
-rw-r--r-- | dev-lang/pypy/pypy-3.10.7.3.19_p5-r1.ebuild | 227 | ||||
-rw-r--r-- | dev-lang/pypy/pypy-3.11.7.3.19_p11-r1.ebuild | 242 | ||||
-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.19.ebuild | 86 | ||||
-rw-r--r-- | dev-lang/pypy3-exe/Manifest | 3 | ||||
-rw-r--r-- | dev-lang/pypy3-exe/pypy3-exe-3.11.7.3.19.ebuild | 137 |
9 files changed, 0 insertions, 1028 deletions
diff --git a/dev-lang/Manifest.gz b/dev-lang/Manifest.gz Binary files differindex 6198eadb38b44..0b64748e26971 100644 --- a/dev-lang/Manifest.gz +++ b/dev-lang/Manifest.gz diff --git a/dev-lang/pypy/Manifest b/dev-lang/pypy/Manifest index 51ea06e21f818..4df7408735565 100644 --- a/dev-lang/pypy/Manifest +++ b/dev-lang/pypy/Manifest @@ -1,16 +1,7 @@ -DIST pypy2.7-gentoo-patches-7.3.19.tar.xz 5328 BLAKE2B c997c0e7f39a4a6a9ec34811b38fc8f9b90ccae8c958ca420074013d63a4f1b453b6331be79a2df299efe177cc99d91038ae56156d37b5f9b9f8715ccd2cb75d SHA512 7bac5331fa868c60b376e405df212a29d406f117035fbc1ad8bd6d81212ab2ea4ce5b6b40e8dbbb6303fe941152e37aae17608a2eca9efd16767c8844f6f5fdb DIST pypy2.7-gentoo-patches-7.3.20.tar.xz 5324 BLAKE2B d2ac71ae4360292d1f4661e10ec817bebdaceb00c6deb92eb8ffaf023d7f0e511c10f10aac6c60d436f9b0f34185e989a87780c99913d011a679df8cdb6f255d SHA512 69839ed3c5cba8983661da8719b06a3054b94fc1a3eca9ccf3546c523745811cd91963afb39ea9551fe98e8f71fab6c9344ccbb0378c2b51f0dca8aef7f04ac4 -DIST pypy2.7-v7.3.19-src.tar.bz2 21011665 BLAKE2B b8e205927c829753dd3e5aba0868923efff73f62e5338d6200aab2470857fff9cf38763ab8b63a74a39299d4956d4794eedf5d474d083875bbb9cee9ea757e64 SHA512 8ab8d9c0fa94ec96ebfae30b7f97eb8dff6ad4ee17fa688df123927c45f3ffea2c7f5dbb98bd2f8a49f7db6baf0ba3e98fd230df0bdc8602e407fb2bc33144e3 DIST pypy2.7-v7.3.20-src.tar.bz2 21016441 BLAKE2B 382830a4e2511b77861a96a52038f0f6ca69fd3a938cdc0434285dac217bbeacacb71a5566edad0240e7e7723924ee449b2237b3a84008e80922b19df8880638 SHA512 f23a065efc7f4ab4020de554ff1411b21d05364e19dd49f7026a9a1f90761342bdf5606f1522094991c189df449387ebf0f79240902b6836235cb3a4e89d6d3a -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_p1.tar.xz 3552 BLAKE2B 539117cb61e7ab44a957b87099fa1d2eacc995b7dcd1a3a683f84a28e12bf257e7769cad1f7499b30764fb97c9467c148f8f35df0edd627c56704d7a96218607 SHA512 894a8b3a36a26b5aaa8958d7428c5476cc04102db40e83bc0e161a94e952a3f207f4ebbf51af3a2c0113956b9eae46f932d7c7d2a98129c705f974e7a5eb19ce -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 7390 BLAKE2B 0a2de7fe0cf184c8509edad7866a0642e154582b968987324c6a7deab7b8cc91a61283384b03554b55bbf5142fdfd4c2c32d734c67836f4079e8d23685845fe7 SHA512 a8e9978a6b27e54cf912083c10a6d3652d6e9b012e047434ae24a89a2cf0308df24e7f8b92e4008c1891c274d206201d68f915469a3f8b1ea786e054485e1d73 -EBUILD pypy-3.10.7.3.19_p5-r1.ebuild 6778 BLAKE2B fba0776b0b60e37127cc28b11f95bfcd7bf6efd21fcf5176c9ebec7c4d20f8596b9e533548b7ed4b23a1761fc6cf85f6e7fbaef252bd252882cda9820ff4b4d4 SHA512 b492b5b446212dac02a266ba4798ac0e807f7485846655ecd052c68520376ecef59eaeff28b3567bda18bdf264232511b8e89fa8ad13f9108260bab2c2972486 -EBUILD pypy-3.11.7.3.19_p11-r1.ebuild 7154 BLAKE2B b1279eab3b9ed50a51af0f4bda59c17edbdeeacc34dd0c80e1b3115866479d619a60032146e3644e2a3da51abd0517325eeb0ceaa446edb9ee0e46edde8a6b1d SHA512 d6f991cc7b95a0358a7dab9a48e5f4a29823c61d889586d66bee14d33658a9280580368e8baa28079328919e0676665c584057aa33093344bfdbb56ae32cb6c9 EBUILD pypy-3.11.7.3.20_p1.ebuild 7154 BLAKE2B b1279eab3b9ed50a51af0f4bda59c17edbdeeacc34dd0c80e1b3115866479d619a60032146e3644e2a3da51abd0517325eeb0ceaa446edb9ee0e46edde8a6b1d SHA512 d6f991cc7b95a0358a7dab9a48e5f4a29823c61d889586d66bee14d33658a9280580368e8baa28079328919e0676665c584057aa33093344bfdbb56ae32cb6c9 MISC metadata.xml 1124 BLAKE2B f1d09d26175cf20d1440a9a83352cf6f2f2e514d35d95116caf4a5ee86547f0165a6369e7a6b129ded75d28ba5a0c1c8f4da7d664d7c1e3c1e95153593057b3c SHA512 ae95400c9a1efc75372201c2353b128302355d1d087094953d73c325fa72bc24662d31c7287ae6a2583448ac345bb60744ac19391e07f8da8ef0327627e0e462 diff --git a/dev-lang/pypy/pypy-2.7.7.3.19.ebuild b/dev-lang/pypy/pypy-2.7.7.3.19.ebuild deleted file mode 100644 index ae0295f37ce5c..0000000000000 --- a/dev-lang/pypy/pypy-2.7.7.3.19.ebuild +++ /dev/null @@ -1,315 +0,0 @@ -# Copyright 1999-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit 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="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" -# pypy -c 'import sysconfig; print sysconfig.get_config_var("SOABI")' -SLOT="${PYVER}/73" -KEYWORDS="amd64 ~arm64 ~ppc64 x86 ~amd64-linux ~x86-linux" -IUSE="bzip2 full-stdlib gdbm +jit ncurses sqlite tk" -RESTRICT="test" - -RDEPEND=" - || ( - >=dev-python/pypy-exe-bin-${PYPY_PV}:${PYPY_PV} - >=dev-python/pypy-exe-${PYPY_PV}:${PYPY_PV}[bzip2?,ncurses?] - ) - dev-libs/openssl:0= - gdbm? ( sys-libs/gdbm:0= ) - sqlite? ( dev-db/sqlite:3= ) - tk? ( - dev-lang/tk:0= - dev-tcltk/tix:0= - ) - !dev-python/pypy -" -DEPEND=" - ${RDEPEND} -" - -src_prepare() { - local PATCHES=( - "${WORKDIR}/${PATCHSET}" - ) - - default -} - -src_configure() { - tc-export CC -} - -src_compile() { - # copy over to make sys.prefix happy - cp -p "${BROOT}/usr/lib/pypy${PYVER}/pypy-c-${PYPY_PV}" pypy-c || die - cp -p "${BROOT}/usr/lib/pypy${PYVER}/include/${PYPY_PV}"/* include/ || die - # (not installed by pypy) - rm pypy/module/cpyext/include/_numpypy/numpy/README || die - mv pypy/module/cpyext/include/* include/ || die - mv pypy/module/cpyext/parse/*.h include/ || die - pax-mark m pypy-c - - # verify the subslot - local soabi=$( - ./pypy-c - <<-EOF - import sysconfig - print sysconfig.get_config_var("SOABI") - EOF - ) - [[ ${soabi#pypy-} == ${SLOT#*/} ]] || die "update subslot to ${soabi}" - - einfo "Generating caches and CFFI modules ..." - - if use full-stdlib; then - # Generate Grammar and PatternGrammar pickles. - ./pypy-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 pypy/tool/build_cffi_imports.py! - cffi_targets=( pypy_util ssl audioop syslog pwdgrp resource ) - 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-c "_${t}_build.py" || die "Failed to build CFFI bindings for ${t}" - done - - # Verify that CFFI module list is up-to-date - local expected_cksum=-7df4eab0 - local local_cksum=$( - ../pypy-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)),)) - 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_*.[co]" -delete || die - find -type d -empty -delete || die - fi -} - -src_test() { - # (unset) - local -x PYTHONDONTWRITEBYTECODE= - local -x COLUMNS=80 - - local ignored_tests=( - # network - --ignore=lib-python/${PYVER}/test/test_urllibnet.py - --ignore=lib-python/${PYVER}/test/test_urllib2net.py - # lots of free space - --ignore=lib-python/${PYVER}/test/test_zipfile64.py - - # broken by expat-2.4.5 - --ignore=lib-python/${PYVER}/test/test_minidom.py - --ignore=lib-python/${PYVER}/test/test_xml_etree.py - --ignore=lib-python/${PYVER}/test/test_xml_etree_c.py - ) - - ./pypy-c ./pypy/test_all.py --pypy=./pypy-c -vv \ - "${ignored_tests[@]}" lib-python || die -} - -src_install() { - local dest="/usr/lib/pypy${PYVER}" - einfo "Installing PyPy ..." - dosym "pypy-c-${PYPY_PV}" "${dest}/pypy-c" - insinto "${dest}" - # preserve mtimes to avoid obsoleting caches - insopts -p - if use full-stdlib; then - doins -r include lib_pypy lib-python - - # replace copied headers with symlinks - for x in "${BROOT}/usr/lib/pypy${PYVER}/include/${PYPY_PV}"/*; do - dosym "${PYPY_PV}/${x##*/}" "${dest}/include/${x##*/}" - done - - if ! use gdbm; then - rm -r "${ED}${dest}"/lib_pypy/gdbm.py \ - "${ED}${dest}"/lib-python/*${PYVER}/test/test_gdbm.py || die - fi - if ! use sqlite; then - rm -r "${ED}${dest}"/lib-python/*${PYVER}/sqlite3 \ - "${ED}${dest}"/lib_pypy/_sqlite3.py \ - "${ED}${dest}"/lib-python/*${PYVER}/test/test_sqlite.py || die - fi - if ! use tk; then - rm -r "${ED}${dest}"/lib-python/*${PYVER}/{idlelib,lib-tk} \ - "${ED}${dest}"/lib_pypy/_tkinter \ - "${ED}${dest}"/lib-python/*${PYVER}/test/test_{tcl,tk,ttk*}.py || die - fi - else - # install only the absolutely minimal subset of modules needed - # for pypy3 build - local lib_py_modules=( - # base modules needed to even start pypy (and import site) - codecs.py - copy_reg.py - encodings - genericpath.py - linecache.py - os.py - pkgutil.py - posixpath.py - re.py - runpy.py - site.py - sre_compile.py - sre_constants.py - sre_parse.py - stat.py - string.py - sysconfig.py - traceback.py - warnings.py - UserDict.py - - # needed for python_optimize - compileall.py - getopt.py - py_compile.py - struct.py - - # needed for rpython - argparse.py - atexit.py - base64.py - bdb.py - bisect.py - cmd.py - code.py - codeop.py - collections.py - colorsys.py - contextlib.py - copy.py - ctypes - dis.py - fnmatch.py - functools.py - gettext.py - hashlib.py - heapq.py - inspect.py - io.py - json - keyword.py - locale.py - logging - new.py - opcode.py - optparse.py - pdb.py - pickle.py - platform.py - pprint.py - random.py - repr.py - shlex.py - shutil.py - StringIO.py - subprocess.py - tempfile.py - textwrap.py - threading.py - tokenize.py - weakref.py - zipfile.py - ) - - local distutils_modules=( - # needed by site - __init__.py - errors.py - sysconfig.py - sysconfig_cpython.py - sysconfig_pypy.py - ) - - local lib_pypy_modules=( - # needed by site - _sysconfigdata.py - - # needed by rpython - cffi - _ctypes - _ffi.py - _functools.py - _sha.py - _sha256.py - _sha512.py - - # NB: we're deliberately skipping _hashlib to avoid some deps - ) - - cd "lib-python/${PYVER}" || die - insinto "${dest}/lib-python/${PYVER}" - doins -r "${lib_py_modules[@]}" - cd - >/dev/null || die - - cd "lib-python/${PYVER}/distutils" || die - insinto "${dest}/lib-python/${PYVER}/distutils" - doins -r "${distutils_modules[@]}" - cd - >/dev/null || die - - cd lib_pypy || die - insinto "${dest}/lib_pypy" - doins -r "${lib_pypy_modules[@]}" - cd - >/dev/null || die - fi - - dosym "../lib/pypy${PYVER}/pypy-c" /usr/bin/pypy - dodoc README.rst - - local -x PYTHON="${ED}${dest}/pypy-c-${PYPY_PV}" - # temporarily copy to build tree to facilitate module builds - cp -p "${BROOT}${dest}/pypy-c-${PYPY_PV}" "${PYTHON}" || die - - einfo "Byte-compiling Python standard library..." - "${PYTHON}" -m compileall \ - -x 'bad_coding|badsyntax|make_ssl_data|lib2to3/tests/data' \ - -q -f -d "${dest}" "${ED}/${dest}" || die - - # remove to avoid collisions - rm "${PYTHON}" || die -} diff --git a/dev-lang/pypy/pypy-3.10.7.3.19_p5-r1.ebuild b/dev-lang/pypy/pypy-3.10.7.3.19_p5-r1.ebuild deleted file mode 100644 index de73d27be28c1..0000000000000 --- a/dev-lang/pypy/pypy-3.10.7.3.19_p5-r1.ebuild +++ /dev/null @@ -1,227 +0,0 @@ -# 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}/pypy310-pp73-384" -KEYWORDS="amd64 ~arm64 ~ppc64 x86 ~amd64-linux ~x86-linux" -IUSE="+ensurepip gdbm +jit ncurses sqlite +test-install tk" -# many tests are failing upstream -# see https://buildbot.pypy.org/summary?branch=py${PYVER} -RESTRICT="test" - -RDEPEND=" - || ( - >=dev-python/pypy3_10-exe-${PYPY_PV}:${PYPY_PV}[bzip2(+),ncurses?] - >=dev-python/pypy3_10-exe-bin-${PYPY_PV}:${PYPY_PV} - ) - dev-libs/openssl:0= - dev-python/gentoo-common - ensurepip? ( - dev-python/ensurepip-pip - dev-python/ensurepip-setuptools - ) - gdbm? ( sys-libs/gdbm:0= ) - sqlite? ( dev-db/sqlite:3= ) - tk? ( - dev-lang/tk:0= - dev-tcltk/tix:0= - ) - !dev-python/pypy3_10 -" -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="pypy3"' > 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,sqlite3,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_sqlite.py || 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 -} diff --git a/dev-lang/pypy/pypy-3.11.7.3.19_p11-r1.ebuild b/dev-lang/pypy/pypy-3.11.7.3.19_p11-r1.ebuild deleted file mode 100644 index 733050cef0cc2..0000000000000 --- a/dev-lang/pypy/pypy-3.11.7.3.19_p11-r1.ebuild +++ /dev/null @@ -1,242 +0,0 @@ -# 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-pip - dev-python/ensurepip-setuptools - ) - 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 2da7e8a64a7d9..f47a8e04cadd4 100644 --- a/dev-lang/pypy3-exe-bin/Manifest +++ b/dev-lang/pypy3-exe-bin/Manifest @@ -1,11 +1,3 @@ -DIST pypy3-exe-3.11.7.3.19-1.amd64-musl.gpkg.tar 12380160 BLAKE2B ed2fdb9f589fb52da2cf42a03310f7b81225ca0ef9e9391c505716cfebe6333817d076a70a376a17fa59f707e94a00d8261342da1c789f7547009bd95815570f SHA512 756fc1b4ddb8eab8e7aecd0c0d812657f07f4fd10e25b651d4e1e741dfa66858be2b76325aefb7544cfe689c716b7d5eec1187446254a91c09edb0aac6105224 -DIST pypy3-exe-3.11.7.3.19-1.amd64.gpkg.tar 12400640 BLAKE2B 8661306ec8d88e6ef15685de0da0f9f681352f3956750e239b9101a63b05342a903de2b8ec505b7d2d59e1d82dacdf5fe068475d8e8273e7fd9744f2b5d0d25f SHA512 40c1764e64a8cd30918bdec6d40d410e73c239ec264be822b1a5c15ebac51358399c29ebe5e98e7bf291a541c6018eaf64b2462098548118b0d331a2938f4abf -DIST pypy3-exe-3.11.7.3.19-1.arm64-musl.gpkg.tar 10485760 BLAKE2B 2f0ecb331332f8864496aeb2bfa8e8eaec822c1263eb3331266344fbbf406ca7f479a7f5107e7351969ee6aead059fbf8e28b2ba9ac8ec4eb45145da877cfcfd SHA512 a68da2fb2dbbf77c16f2b2ab5d2926c506164a817261d786b8cab16ed2ff43090b051b1fdfb2ac0067af3db86790a5f8db6009e671a0e0a667b24055edee6ce6 -DIST pypy3-exe-3.11.7.3.19-1.arm64.gpkg.tar 10485760 BLAKE2B bdaaf2cf134aedf481d0b49bc340914ecf5c839b9ad62ba879f6e6ac98c4168537247cba963834a8105bc14b372fd5fc06ac57091918980417f33bb662d8d76d SHA512 7074e3b9f491edfe0122841fb63d405c7ec14ce4d344b7996e9977a4c36f6b1a2d874b08ff7b2d07ea567757aa26aa08a15bb3ae16a52cd93625c478d971dd7e -DIST pypy3-exe-3.11.7.3.19-1.ppc64le-musl.gpkg.tar 6973440 BLAKE2B 9f36dccbcd8154e75a87694dab65985fe9b596bc63748eb58dfefb4297d3de48768d9344fe38e95cb4b572eda09844e9fcd3e02e5c9a915f1ad0682edbf4bb80 SHA512 ba9929ddd9e6924758d277897e1c8c4700baba8a673a9b34162333d80c3961146bd37d7424d6e1d06e1364b63f3be1a37b2f1239455fa3470ef7cd037c9740f1 -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 @@ -14,6 +6,5 @@ DIST pypy3-exe-3.11.7.3.20-1.ppc64le-musl.gpkg.tar 6973440 BLAKE2B f72a41b9c5e25 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 2061 BLAKE2B 0ffd08d80783d11c456296ae1a1a7dbbc88a9b247fb049a3298bb4d840db72bdf842b46b4c9f9a8d682030d77825bed569b051e57377bbdc8ca45f9478f524a2 SHA512 6a0cd25fc2fed3d8cd40ce8a29e3a9bd02e123ea65865da2997c0994de73a419f8be8140e4728dd23d1d75ea9e3f2d24fcbc6c6a5e2c122d4a83a42ed4f5c05b MISC metadata.xml 315 BLAKE2B da5ed341c55250028587ffb479a27b7ec31eb0f8bd0e11b8a98a374e23d989f7d5bcce647ca9c78cd12f64b6b83dd0568c4f3a992a6c8c5089c52cef9de87441 SHA512 ebe1c4d655c49fd20127dd240b603f1b99d67c0a6d21c7eb37bee48f4ec6bba50648816ea2b1b746af58fcf8de576d24fe355ecfa2de07ebaa0265ade2ea38ba diff --git a/dev-lang/pypy3-exe-bin/pypy3-exe-bin-3.11.7.3.19.ebuild b/dev-lang/pypy3-exe-bin/pypy3-exe-bin-3.11.7.3.19.ebuild deleted file mode 100644 index 9dc0edf86dd2a..0000000000000 --- a/dev-lang/pypy3-exe-bin/pypy3-exe-bin-3.11.7.3.19.ebuild +++ /dev/null @@ -1,86 +0,0 @@ -# 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 92946235d37f7..84d200d67fdd8 100644 --- a/dev-lang/pypy3-exe/Manifest +++ b/dev-lang/pypy3-exe/Manifest @@ -1,7 +1,4 @@ -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 2834 BLAKE2B 8ea19638103b1ec0c0e8228c62a1907b3175171fc051f0fbc167dcda8b4e386a68c750fb526a3f0954a40457e4ec6908b8e8074fe2f9e9f155416cab34886f0b SHA512 b63a2c6fe8e2e85f1115ebd7047f843e22a4ee3a809f31ad9d3a3e77b4a36dba44283533835fb2fe72b069cadbb531fae406e65eab201a74dca919d9d5615497 MISC metadata.xml 572 BLAKE2B cfcd1422ec312338fd876bc4747a962ac3c4bd06e28a3891489b065fba4c7be2daa6955f51e8136d9b8cf7b68bb7eb887b6f419ee9fd626ebd6db204acb7995d SHA512 c79250d47e3d5c99c2c903bfc185449cc41f88e2b923b8eae1401e83c0f23fa1a12ad85f50b6e25844e805e543ae897ccf43185a1bdf9f992dff765249e55bc1 diff --git a/dev-lang/pypy3-exe/pypy3-exe-3.11.7.3.19.ebuild b/dev-lang/pypy3-exe/pypy3-exe-3.11.7.3.19.ebuild deleted file mode 100644 index ce614b348e91d..0000000000000 --- a/dev-lang/pypy3-exe/pypy3-exe-3.11.7.3.19.ebuild +++ /dev/null @@ -1,137 +0,0 @@ -# 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}" -} |