dev-python/pypy-exe: Remove old

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2026-06-01 12:42:56 +02:00
parent 21515945c2
commit be2c839000
2 changed files with 0 additions and 191 deletions
-2
View File
@@ -1,8 +1,6 @@
DIST pypy2.7-gentoo-patches-7.3.20.tar.xz 5324 BLAKE2B d2ac71ae4360292d1f4661e10ec817bebdaceb00c6deb92eb8ffaf023d7f0e511c10f10aac6c60d436f9b0f34185e989a87780c99913d011a679df8cdb6f255d SHA512 69839ed3c5cba8983661da8719b06a3054b94fc1a3eca9ccf3546c523745811cd91963afb39ea9551fe98e8f71fab6c9344ccbb0378c2b51f0dca8aef7f04ac4
DIST pypy2.7-gentoo-patches-7.3.21.tar.xz 5324 BLAKE2B dcda7ed149b26dcd22700179618a88889435d922d614004f9957a2321a0797773dfa867533c36b6af23dde9e59be55c4cc5bfa94780ce73d72297085f1ddcf11 SHA512 cd21c967fe1805cc7573dcf60038033a8eaed673d33eb67bac4890142b0d82049198d0772abd005d4844c84716c12b0c9f7639a3046c8025342465dceaad7b76
DIST pypy2.7-gentoo-patches-7.3.22.tar.xz 5312 BLAKE2B e407ac29b598a20f930e6ea0c6dbbedcb169b045f9bc2a40cb3e9ef9f32af3be647217ac00434fc2f109280de07c468329515b0ac655346052217e5455c84261 SHA512 3e88b7b5635f43a9ce141bf4ca30654bd4dd15f1f39a41ca219ad855700af1a9dd4a7ec512bab922b64f4f8c3930f36de1a78ed779e769f891592a0fb4c0fcaa
DIST pypy2.7-gentoo-patches-7.3.23.tar.xz 5316 BLAKE2B 923494c49ef09b1929ba1986891a08f23e4343c44eac792a688ac88b48d21770101ca50fcdf3986c686adefb24fbf58aef674ec608feea775984ab8a16385cb6 SHA512 c1d07caef19b77cb4950d56c1de8079900fc21728061f8620210932d2cd85f701407ce7b9947d2ef044211d1ffe8b77ce445da3c5aef69321b45e7ab8550dee3
DIST pypy2.7-v7.3.20-src.tar.bz2 21016441 BLAKE2B 382830a4e2511b77861a96a52038f0f6ca69fd3a938cdc0434285dac217bbeacacb71a5566edad0240e7e7723924ee449b2237b3a84008e80922b19df8880638 SHA512 f23a065efc7f4ab4020de554ff1411b21d05364e19dd49f7026a9a1f90761342bdf5606f1522094991c189df449387ebf0f79240902b6836235cb3a4e89d6d3a
DIST pypy2.7-v7.3.21-src.tar.bz2 21020098 BLAKE2B c5f97f5ff86bdde61a1c1da2a5411dff337a9d151747cc0437b2d704bfef28a00ad91382c3fa1a7191658b08bbd30cb28e9f7dbc4fb1fbea32cb10473a065424 SHA512 9a0875ce1f621a571a91c5372778aa67c0cd48270139896cc7aeec9973ff2ff44779e9aea68c534daa7485edad8707376421ab5785daf6414331c881bf59d16e
DIST pypy2.7-v7.3.22-src.tar.bz2 21025542 BLAKE2B 6bf17c72cc4d8d1ba7db9d726b29f15d1e7b04e767dec5399c0831eb3211256e9e981b430e02071522c4bc23cca0618e5b3fb1cb72f22ec39540a20fd96a8fa7 SHA512 482020a7a40e5642d88d1474979d733b079dc65d75f5d0a431c6ee2a8136cc101be42dabe51063e9f376c606f62559c6ab681dc65cd0abb5fef4e8d69931ad39
DIST pypy2.7-v7.3.23-src.tar.bz2 21023543 BLAKE2B 7638e5aecd30d9c2c9ab22b1ab9a43331685885ee90ebfda8d2a88da34e4b0b998bd967eed30b309110b9d40b14df75f24a7e9219c7383b542602869ee1a12d9 SHA512 3750fc9c5309baa7627d00a77b4b2b1e0d755b75841acd0fcee484bc332f1e9ed9c1f33d2f4800777f20ea8849356f39c84167f96b9ebfdd7e479798d62eac06
-189
View File
@@ -1,189 +0,0 @@
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit check-reqs pax-utils toolchain-funcs
PYVER=2.7
PYPY_PV=${PV%_p*}
MY_P=pypy${PYVER}-v${PYPY_PV/_}
PATCHSET="pypy${PYVER}-gentoo-patches-${PV/_}"
DESCRIPTION="PyPy 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://distfiles.gentoo.org/pub/proj/python/patchsets/pypy${PYVER}/${PATCHSET}.tar.xz
"
S="${WORKDIR}/${MY_P}-src"
LICENSE="MIT"
SLOT="${PYPY_PV}"
KEYWORDS="amd64 ~arm64 x86"
IUSE="bzip2 +jit low-memory ncurses cpu_flags_x86_sse2"
DEPEND="
>=virtual/zlib-1.1.3:=
dev-libs/libffi:0=
virtual/libintl:0=
dev-libs/expat:0=
bzip2? ( app-arch/bzip2:0= )
ncurses? ( sys-libs/ncurses:0= )
"
RDEPEND="
${DEPEND}
!dev-python/pypy-exe-bin:${PYPY_PV}
"
# don't enforce the dep on dev-python/pypy with USE=low-memory
# since it's going to cause circular dep with unhelpful error message
BDEPEND="
!low-memory? (
|| (
dev-lang/pypy:2.7
dev-python/pypy
dev-lang/python:2.7
)
)
"
check_env() {
if ! has_version -b dev-lang/pypy:2.7 &&
! has_version -b dev-python/pypy
then
if use low-memory; then
eerror "USE=low-memory requires (a prior version of) dev-python/pypy"
eerror "installed."
else
ewarn "CPython 2.7 will be used to perform the translation. Upstream"
ewarn "recommends using (a prior version of) dev-python/pypy instead."
fi
elog "You can install a prebuilt version of PyPy first using e.g.:"
elog " $ emerge -1v dev-python/pypy dev-python/pypy-exe-bin"
if use low-memory; then
die "dev-python/pypy needs to be installed for USE=low-memory"
fi
fi
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
)
# Avoid linking against libraries disabled by use flags
local opts=(
bzip2:bz2
ncurses:_minimal_curses
)
local opt
for opt in "${opts[@]}"; do
local flag=${opt%:*}
local mod=${opt#*:}
args+=(
$(usex ${flag} --withmod --withoutmod)-${mod}
)
done
local interp
if use low-memory ||
has_version -b dev-lang/pypy:2.7 ||
has_version -b dev-python/pypy
then
einfo "Using already-installed PyPy to perform the translation."
interp=( pypy )
if use low-memory; then
local -x PYPY_GC_MAX_DELTA=200MB
interp+=( --jit loop_longevity=300 )
fi
else
einfo "Using CPython 2.7 to perform the translation."
interp=( python2.7 )
# reuse bundled pycparser to avoid external dep
mkdir -p "${T}"/pymod/cffi || die
: > "${T}"/pymod/cffi/__init__.py || die
cp -r lib_pypy/cffi/_pycparser "${T}"/pymod/cffi/ || die
local -x PYTHONPATH=${T}/pymod:${PYTHONPATH}
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() {
local dest=/usr/lib/pypy${PYVER}
exeinto "${dest}"
newexe "${T}"/usession*-0/testing_1/pypy-c pypy-c-${PYPY_PV}
insinto "${dest}"/include/${PYPY_PV}
doins include/pypy_*
pax-mark m "${ED}${dest}/pypy-c-${PYPY_PV}"
}