# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 inherit pax-utils python-utils-r1 PYPY_PV=${PV%_p*} MY_P=pypy2.7-v${PYPY_PV} PATCHSET="pypy2.7-gentoo-patches-${PV}" DESCRIPTION="A fast, compliant alternative implementation of the Python 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" # pypy -c 'import sysconfig; print sysconfig.get_config_var("SOABI")' SLOT="0/73" KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86 ~amd64-linux ~x86-linux" IUSE="bzip2 gdbm +jit libressl ncurses sqlite tk" RDEPEND=" || ( >=dev-python/pypy-exe-7.3.3_p2:${PYPY_PV}[bzip2?,ncurses?] >=dev-python/pypy-exe-bin-7.3.3_p2:${PYPY_PV} ) !libressl? ( dev-libs/openssl:0= ) libressl? ( dev-libs/libressl: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 /usr/lib/pypy2.7/site-packages python_domodule epython.py einfo "Byte-compiling Python standard library..." python_optimize "${ED}${dest}" # remove to avoid collisions rm "${PYTHON}" || die }