# 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/_rc/rc}" 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="" IUSE="bzip2 gdbm +jit ncurses sqlite tk" RDEPEND=" || ( >=dev-python/pypy-exe-${PYPY_PV}:${PYPY_PV}[bzip2?,ncurses?] >=dev-python/pypy-exe-bin-${PYPY_PV}:${PYPY_PV} ) 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 /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 }