dev-lang/pypy3-exe: Remove old

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2026-06-07 17:55:36 +02:00
parent 9b2ece73bf
commit d834d7eaaa
2 changed files with 0 additions and 139 deletions

View File

@@ -1,6 +1,4 @@
DIST pypy3.11-gentoo-patches-7.3.20.tar.xz 3108 BLAKE2B 2af9b49714010aa0c0eb7161b6cda2b7a0199b2c6d4abadbc05984b4dce18324b0d22655d1621098376d6a7da01341dbd730c62fa3b6d64967dc5ee16bd90fb9 SHA512 780d69f67d1594ae39ce8c3a4d743b627631466c42b11e9f84909fc6a37e0b0f54eb82569f62c588eb9214b3235c204e3684ddcde8785a0e6d360d7806d35fd2
DIST pypy3.11-gentoo-patches-7.3.22.tar.xz 3096 BLAKE2B cc6203144c2731331688ac68603cfcefb03a29368efc16f190e6187a056269f8d59abe75d629b39cf337a0bf76cca40445df831576acfae039e39f926a7597aa SHA512 d15bda0edd267256fab330663dac7ea1ab329149f7dab76fa6bd1c0c8dfda5bc4144ec72ac24aa24784052a6890b490ba04d48f2c3fb91a34daa872decf683af
DIST pypy3.11-gentoo-patches-7.3.23.tar.xz 3096 BLAKE2B d0852f8c9f715359487e07f5c80c4f3ac48da7eb650fd328535c40d8ec6318cf4c9f4b08838e976e2f88723472a42ccfcaf61d3a1b4af8319a44b476202b8c05 SHA512 81d6bb2e25a387bfe805263e7ecfb927a2292824e03b58ff4942b52bf4057d13ddf5d7944f8ee2e6c1553bde5650ac5d7af8689ab586a33ab5c58e4565da126a
DIST pypy3.11-v7.3.20-src.tar.bz2 24907202 BLAKE2B eef877362365908b665cbd0ea266daebe5fa7a3f224ac0d133664244b712214e2ae93ab655e2f82257beef125c3cef301e50810c97ba4c035efa4930902aed32 SHA512 b957adeca5d5bd33cf1e9769459282488fdd9b1ec9398d20b35681ca88492bc01bdee91bb2c212e75fb946555f9be9869b7944b20207aef5a63c7035702b8cfa
DIST pypy3.11-v7.3.22-src.tar.bz2 25037599 BLAKE2B 8c0f97b0d0b3e29f345d8bd0f30e069a85b8cd1e95f340e45ace79a253664300ad1789d8b72a8bbe3e718e8e81110cea50185f008458fdf38721289f76f149c4 SHA512 578273a92723d6ba105a3014acca68c92ab928c46f8f487e8d179c02daa05f76b08278cf27ed5b302e38ffb3d6aea1ce3c0be9a8acf35ad5d2576b2d577b92c9
DIST pypy3.11-v7.3.23-src.tar.bz2 25005650 BLAKE2B d0976c47fb04d1c96d7b4c1202ba43e586c8585f0c770c313c61407dc9c91245b6d4b07371d004646f43765f997f1deadcd938033bcc3429d848af63dbc75714 SHA512 4351cf30227af06ece5d69fe86a17355eadf2dcdbddf8119c04a720a4f9f388c6ae45a3496feb623950fb4a4a9f70c1910502adb325a12b1b0e34a7ba35563c2

View File

@@ -1,137 +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=$(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://distfiles.gentoo.org/pub/proj/python/patchsets/pypy${PYVER}/${PATCHSET}.tar.xz
"
S="${WORKDIR}/${MY_P}-src"
LICENSE="MIT"
SLOT="${PV%_p*}"
KEYWORDS="amd64 ~arm64 x86"
IUSE="+jit low-memory ncurses cpu_flags_x86_sse2"
RDEPEND="
app-arch/bzip2:0=
dev-libs/expat:0=
dev-libs/libffi:0=
>=virtual/zlib-1.1.3:=
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}"
}