# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 PYTHON_COMPAT=( python2_7 ) inherit pax-utils python-any-r1 toolchain-funcs PYPY_PV=${PV%_p*} MY_P=pypy3.9-v${PYPY_PV/_rc/rc} PATCHSET="pypy3.9-gentoo-patches-${PV/_rc/rc}" DESCRIPTION="A fast, compliant alternative implementation of the Python (3.9) language" HOMEPAGE="https://www.pypy.org/" SRC_URI="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="0/pypy39-pp73" KEYWORDS="" IUSE="bzip2 gdbm +jit ncurses sqlite test tk" # many tests are failing upstream # see https://buildbot.pypy.org/summary?branch=py3.9 RESTRICT="test" RDEPEND=" || ( >=dev-python/pypy3-exe-${PYPY_PV}:3.9-${PYPY_PV}[bzip2?,ncurses?] >=dev-python/pypy3-exe-bin-${PYPY_PV}:3.9-${PYPY_PV} ) dev-lang/python-exec[python_targets_pypy3(-)] dev-libs/openssl:0= gdbm? ( sys-libs/gdbm:0= ) sqlite? ( dev-db/sqlite:3= ) tk? ( dev-lang/tk:0= dev-tcltk/tix:0= ) ! epython.py || die python_moduleinto "${dest}"/site-packages python_domodule epython.py einfo "Byte-compiling Python standard library..." python_optimize "${ED}${dest}" # remove to avoid collisions rm "${PYTHON}" || die }