summaryrefslogtreecommitdiff
path: root/dev-lang
diff options
context:
space:
mode:
authormirror@stealer.net <mirror@stealer.net>2025-07-31 11:30:23 +0000
committermirror@stealer.net <mirror@stealer.net>2025-07-31 11:30:23 +0000
commitbf527a764ab34c29c6a6459d538b4cc06951c450 (patch)
tree530a58393e7056673dc48ee7c4f9083dd96b8f7d /dev-lang
parent58ef1b4b633b6e7ce2e78a2ded77e13b674cc170 (diff)
2025-07-31 11:04:14+00:00
Diffstat (limited to 'dev-lang')
-rw-r--r--dev-lang/Manifest.gzbin22492 -> 22484 bytes
-rw-r--r--dev-lang/pypy/Manifest2
-rw-r--r--dev-lang/pypy/pypy-3.11.7.3.20_p1.ebuild242
3 files changed, 0 insertions, 244 deletions
diff --git a/dev-lang/Manifest.gz b/dev-lang/Manifest.gz
index bc61d0894e527..acf12dd18d9b1 100644
--- a/dev-lang/Manifest.gz
+++ b/dev-lang/Manifest.gz
Binary files differ
diff --git a/dev-lang/pypy/Manifest b/dev-lang/pypy/Manifest
index b76a55cb54055..bf37f7fc6d1f6 100644
--- a/dev-lang/pypy/Manifest
+++ b/dev-lang/pypy/Manifest
@@ -1,9 +1,7 @@
DIST pypy2.7-gentoo-patches-7.3.20.tar.xz 5324 BLAKE2B d2ac71ae4360292d1f4661e10ec817bebdaceb00c6deb92eb8ffaf023d7f0e511c10f10aac6c60d436f9b0f34185e989a87780c99913d011a679df8cdb6f255d SHA512 69839ed3c5cba8983661da8719b06a3054b94fc1a3eca9ccf3546c523745811cd91963afb39ea9551fe98e8f71fab6c9344ccbb0378c2b51f0dca8aef7f04ac4
DIST pypy2.7-v7.3.20-src.tar.bz2 21016441 BLAKE2B 382830a4e2511b77861a96a52038f0f6ca69fd3a938cdc0434285dac217bbeacacb71a5566edad0240e7e7723924ee449b2237b3a84008e80922b19df8880638 SHA512 f23a065efc7f4ab4020de554ff1411b21d05364e19dd49f7026a9a1f90761342bdf5606f1522094991c189df449387ebf0f79240902b6836235cb3a4e89d6d3a
-DIST pypy3.11-gentoo-patches-7.3.20_p1.tar.xz 3552 BLAKE2B 539117cb61e7ab44a957b87099fa1d2eacc995b7dcd1a3a683f84a28e12bf257e7769cad1f7499b30764fb97c9467c148f8f35df0edd627c56704d7a96218607 SHA512 894a8b3a36a26b5aaa8958d7428c5476cc04102db40e83bc0e161a94e952a3f207f4ebbf51af3a2c0113956b9eae46f932d7c7d2a98129c705f974e7a5eb19ce
DIST pypy3.11-gentoo-patches-7.3.20_p2.tar.xz 15064 BLAKE2B ba0db0f4a71210d4c2e1d927c8a383274fcd0b1b6b6c04c34105a5655939981a2ef6820dd1b919cb4ca8ce608acca99c40f70745748679f2564e8fdcb5946933 SHA512 38d313eab9060be5a3d71adf16e2d1f92face2f32d912f29affe96b22943f9ceb3adab81b62ccf1806d67263795f66d6a354351815cb3fce5663230d71cecd87
DIST pypy3.11-v7.3.20-src.tar.bz2 24907202 BLAKE2B eef877362365908b665cbd0ea266daebe5fa7a3f224ac0d133664244b712214e2ae93ab655e2f82257beef125c3cef301e50810c97ba4c035efa4930902aed32 SHA512 b957adeca5d5bd33cf1e9769459282488fdd9b1ec9398d20b35681ca88492bc01bdee91bb2c212e75fb946555f9be9869b7944b20207aef5a63c7035702b8cfa
EBUILD pypy-2.7.7.3.20.ebuild 7390 BLAKE2B 0a2de7fe0cf184c8509edad7866a0642e154582b968987324c6a7deab7b8cc91a61283384b03554b55bbf5142fdfd4c2c32d734c67836f4079e8d23685845fe7 SHA512 a8e9978a6b27e54cf912083c10a6d3652d6e9b012e047434ae24a89a2cf0308df24e7f8b92e4008c1891c274d206201d68f915469a3f8b1ea786e054485e1d73
-EBUILD pypy-3.11.7.3.20_p1.ebuild 7154 BLAKE2B b1279eab3b9ed50a51af0f4bda59c17edbdeeacc34dd0c80e1b3115866479d619a60032146e3644e2a3da51abd0517325eeb0ceaa446edb9ee0e46edde8a6b1d SHA512 d6f991cc7b95a0358a7dab9a48e5f4a29823c61d889586d66bee14d33658a9280580368e8baa28079328919e0676665c584057aa33093344bfdbb56ae32cb6c9
EBUILD pypy-3.11.7.3.20_p2.ebuild 7154 BLAKE2B b1279eab3b9ed50a51af0f4bda59c17edbdeeacc34dd0c80e1b3115866479d619a60032146e3644e2a3da51abd0517325eeb0ceaa446edb9ee0e46edde8a6b1d SHA512 d6f991cc7b95a0358a7dab9a48e5f4a29823c61d889586d66bee14d33658a9280580368e8baa28079328919e0676665c584057aa33093344bfdbb56ae32cb6c9
MISC metadata.xml 1124 BLAKE2B f1d09d26175cf20d1440a9a83352cf6f2f2e514d35d95116caf4a5ee86547f0165a6369e7a6b129ded75d28ba5a0c1c8f4da7d664d7c1e3c1e95153593057b3c SHA512 ae95400c9a1efc75372201c2353b128302355d1d087094953d73c325fa72bc24662d31c7287ae6a2583448ac345bb60744ac19391e07f8da8ef0327627e0e462
diff --git a/dev-lang/pypy/pypy-3.11.7.3.20_p1.ebuild b/dev-lang/pypy/pypy-3.11.7.3.20_p1.ebuild
deleted file mode 100644
index 733050cef0cc2..0000000000000
--- a/dev-lang/pypy/pypy-3.11.7.3.20_p1.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
-}