mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
dev-lang/pypy3-exe: Remove old
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
@@ -1,4 +1,2 @@
|
||||
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.22-src.tar.bz2 25037599 BLAKE2B 8c0f97b0d0b3e29f345d8bd0f30e069a85b8cd1e95f340e45ace79a253664300ad1789d8b72a8bbe3e718e8e81110cea50185f008458fdf38721289f76f149c4 SHA512 578273a92723d6ba105a3014acca68c92ab928c46f8f487e8d179c02daa05f76b08278cf27ed5b302e38ffb3d6aea1ce3c0be9a8acf35ad5d2576b2d577b92c9
|
||||
DIST pypy3.11-v7.3.23-src.tar.bz2 25005650 BLAKE2B d0976c47fb04d1c96d7b4c1202ba43e586c8585f0c770c313c61407dc9c91245b6d4b07371d004646f43765f997f1deadcd938033bcc3429d848af63dbc75714 SHA512 4351cf30227af06ece5d69fe86a17355eadf2dcdbddf8119c04a720a4f9f388c6ae45a3496feb623950fb4a4a9f70c1910502adb325a12b1b0e34a7ba35563c2
|
||||
|
||||
@@ -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 ~ppc64 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}"
|
||||
}
|
||||
Reference in New Issue
Block a user