summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2016-06-09 20:35:02 +0200
committerMichał Górny <mgorny@gentoo.org>2016-06-09 20:36:20 +0200
commitfe5b317ef27de6bebef08a76c35deff6d52828b2 (patch)
treebf9e6fbd8afa5bb5983506dae9f7db8f2b4c8e6e /dev-python/pypy-bin
parentmedia-libs/opencv: eapi=6 bump (diff)
downloadgentoo-fe5b317ef27de6bebef08a76c35deff6d52828b2.tar.gz
gentoo-fe5b317ef27de6bebef08a76c35deff6d52828b2.tar.bz2
gentoo-fe5b317ef27de6bebef08a76c35deff6d52828b2.zip
dev-python/pypy-bin: Add 5.3.0
Diffstat (limited to 'dev-python/pypy-bin')
-rw-r--r--dev-python/pypy-bin/Manifest8
-rw-r--r--dev-python/pypy-bin/pypy-bin-5.3.0.ebuild205
2 files changed, 213 insertions, 0 deletions
diff --git a/dev-python/pypy-bin/Manifest b/dev-python/pypy-bin/Manifest
index 9429660f940c..be2c5891c09a 100644
--- a/dev-python/pypy-bin/Manifest
+++ b/dev-python/pypy-bin/Manifest
@@ -22,5 +22,13 @@ DIST pypy-bin-5.1.1-x86+bzip2+jit+ncurses+shadowstack+sse2.tar.lz 10613022 SHA25
DIST pypy-bin-5.1.1-x86+bzip2+jit+ncurses+sse2.tar.lz 11767275 SHA256 5665cd4575747e079cb733d05f9b4756788105eb0234231b4257976148977be6 SHA512 51e726735e42584f64fd697a671636f6dfa0557fdc42cd0af9eb00f729d64a2b4fd6d67e1671ad17d74b46d5d08b7e140dd57f95849e72ce545bc8b27a40ba71 WHIRLPOOL ae8fca67661e0cea84166ec5f5fba30ed093e5a20a926e13f54007443627da6564172755a48d03d3a8f841457106ee7b5356b44965433c501ec4393c9dbd5921
DIST pypy-bin-5.1.1-x86+bzip2+ncurses+sse2.tar.lz 6149022 SHA256 cf60d9da2c6b754bcfacecfb53ffa5c3829e0152c091e27bfba55d36eaa03fec SHA512 20c3b9b8256bdb5dbe891d12dbaaf1121df8e11f165b4f0a00f7098f476d9020482a920935742b40acf562205c307732b613ea3266ef454b169f711a0f4a9f0e WHIRLPOOL 894b2438dacb9b746df1e73eed4f0951e1333f0bd240fae189356e156a2de929f365332cb285c7abf840107b3f1e0d7e1dc494bf805beabe2569355a0e3c7493
DIST pypy-bin-5.1.1-x86+bzip2+ncurses.tar.lz 6114358 SHA256 d1425ab926a6948ed089564ad137474ae9d75fa1aba11a7e8991ed81e581b804 SHA512 e5bf777bc23706d44798cd577b871e2be7c3f040ad399f8cc2650eea65d180ee9403d8976d5ea11bee2e417c4dc3a571cbcd31aa98de112fc252ab9c9bacbd75 WHIRLPOOL 9571abe31daa81b2f06366067c7676db6347de3a3e52e3480abd082fd02528bd5b5041859d7379e16160370c5c5dec084ca231dddda12d0108533a7a0c479e4d
+DIST pypy-bin-5.3.0-amd64+bzip2+jit+ncurses+shadowstack.tar.lz 12781905 SHA256 c914b5d78f63ec8c0a594289d67fbf5f69072f5d9d23df3a2dfb9a30d7831006 SHA512 8c8cf97cc3ebc5afb054dada559b74a24637425ce0851f3f57f538779fc6d505af9c59635d70336758a4136bed03a4af80672e5cb7c0fb78987e8a228fd2bb42 WHIRLPOOL 56de5fa4bbda97211264658ee853f9fc883c72792d94dcd9d9b8d4d8e62c2f268d1e28abf16bd0a812f2e07d07391d2940a8c6e9baa78e143ea7000d82fa3063
+DIST pypy-bin-5.3.0-amd64+bzip2+jit+ncurses.tar.lz 13755217 SHA256 7074d19a92f84d70ee8feb31147229a116b64220e859c53547df4b641c8a9690 SHA512 167b5d092661a4fb33e13aef05d0023dfa0add04a4e1c9ae2aa648810bd1c3e2cbe617fca69b2ba0e798ef4e8555ea865be53a943a809c60573778c1414462b1 WHIRLPOOL 00f5e4849895b7e53a8495079bbe92d81ca22648dfd464dc45b9883679240eb7039543b6352efcfdaabeac218f648d4ccd31db34a56428a6900987110732d161
+DIST pypy-bin-5.3.0-amd64+bzip2+ncurses.tar.lz 7213692 SHA256 1a066732066f6396bd67e1ee25205731bc9063a59be36b0b7f48da94afb65f3d SHA512 4dd0c1be00a2a2c74e9d6bdc33e3d019401bfd07af2f92927732b4493b70502b77d1e85010dc0934fd8d1407076fa47ae04ce1042dd641792826aeef9d62f666 WHIRLPOOL ce7c880d872c8ed69738da8f2fa40f884a4f7fad75d86c1e01172a5d608bda5e6d5bfd01b88beed783320d90048f9f3294358755ce67eb8af9cad9517f97ee3f
+DIST pypy-bin-5.3.0-x86+bzip2+jit+ncurses+shadowstack+sse2.tar.lz 10236641 SHA256 f1a8b72e31c140159d3f6a2bfe09f93aae59928fd3b1ee7bfe805f6fff4d2a62 SHA512 3c699898a42dd3368ed54804a579f27a8b7009211a5742c6c4193560e703dce8495552d9283af16ac5ff26a2dc9a5f7f22f0ce15fe21405b8fdc8b3462d1c93c WHIRLPOOL 2f9e9819934d7472bef18f2e1fefc2d3dfaefc4cd702d025d57440e9b841172f57839f8f3f0f4a70b07f49e0a5d1cce11f894626998c01b3735669e3975d3238
+DIST pypy-bin-5.3.0-x86+bzip2+jit+ncurses+sse2.tar.lz 11388844 SHA256 a1ed4a65a4e04ecd3a3ee6a94bdd313511e9c78a82e70b491a835d9d6b00ecba SHA512 24dd548147a1e045d646be633058f1b40e35f3c069fe44b93a60262a134163a7811664a279e70b54ad149a4659b5bafb0fffa0e213d0dc5fb62eb14e41c46bf6 WHIRLPOOL 5b8a17fd56baae8b039e723ec32728b5d89b58bd3606372b9b09cf0353a77070ca63fd5107fdfe964184072f466c6de6b10a9dea30a185baf08e8fb300427b25
+DIST pypy-bin-5.3.0-x86+bzip2+ncurses+sse2.tar.lz 5955669 SHA256 24f76d7c4803c69ae66bcdc38fee60a41b843cc81ca83d76e0ece4464efd22a5 SHA512 692f5601291d7ed3789d38cc6fdf4e4c0c56318953f9109113cb7cb11659f6d649287425b60cf5a2cab2a005d174e6c44be05b4c49ce148bfbdbf117892c888f WHIRLPOOL 03c6a14f5c09e25e3a16b23c96b4754063e29d1847f549295ab81891de1cf35a473d84143897d0be36b2f2a683da8d45bc6506b7fef6985fdcd84f127d522fa2
+DIST pypy-bin-5.3.0-x86+bzip2+ncurses.tar.lz 5955780 SHA256 f3e5affc786235ec61491cc0c6941303df486314b7707f98e342a5d9f39eea67 SHA512 d55dc85a2c968289320658da80507e2b1a8993a923aac09963adcc2482689b5094b0734cee481dd4490d83261744a720bc0606ec9a578c4e6deba3e41ba7e92e WHIRLPOOL b76bb53064e8a4d00012fee500d06f0f94a8548fe7ce89efa26b2f5482f169cf93f2b835e841b0c094ee6b58e7df67433520ccb5df3463678604e790cfa54689
+DIST pypy2-v5.3.0-src.tar.bz2 17361429 SHA256 4142eb8f403810bc88a4911792bb5a502e152df95806e33e69050c828cd160d5 SHA512 6387987b93bebf8ca6d820bde6c42c1a7427a778ff01cf93766df34be792cb1a8d927b3e402f90159df75f68aa1c913a28e9d453e3b13b28489cb68670ef121d WHIRLPOOL 57b9718b1ed72f13005a6d5a60b24d0fdab522ff63b3f91264433cf17f0bb4c5f36e3121d8d92744386fa5d31fbce14711689c85f87a53b68bfdbddaa19a3edd
DIST python-gentoo-patches-2.7.10-0.tar.xz 12892 SHA256 c9a838bd62ae50cc385da23a837acfd05f2b74e4f086c9c76eb4d3aa5366ef6d SHA512 5f100944635e360691dc0a2b340a906646c4ae9ee558246ddffc56e8b15d389f25f1fbdc1db4cc08e7d29560d04d66b058b3904902899d58ecae8c408ebdf056 WHIRLPOOL f69e9a518bb7ee50c1b262a21e70e1e2443f859ee6d2f4fa84421120dbd054a06ce8dd6cfea8512cbc64bce806322b879c25c561d5eb05e1ba6cc15035b373a9
DIST python-gentoo-patches-2.7.11-0.tar.xz 12916 SHA256 e14b47bb1fd64d366d7dfb8339cc2cbf4a53fc288b11dd83f575eb36a8a6408d SHA512 f0447bb699a163afc08df39b111394377539935546ae23732d7239e78d2bff0c04bc94949f86aef0c1be83736127dbd25c2c531e49befed2d638c3cd4940ac52 WHIRLPOOL 305992849d9d244da1e308e739c9bf62a3ef5c74eb65c765bdc666fb5767eb16c7a609f7c442c17da17f76c3ab81e4b09fa8c21e43f89366539a6a9d656bea77
diff --git a/dev-python/pypy-bin/pypy-bin-5.3.0.ebuild b/dev-python/pypy-bin/pypy-bin-5.3.0.ebuild
new file mode 100644
index 000000000000..c0d6f135a0a6
--- /dev/null
+++ b/dev-python/pypy-bin/pypy-bin-5.3.0.ebuild
@@ -0,0 +1,205 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 pypy )
+inherit eutils multilib pax-utils python-any-r1 unpacker versionator
+
+BINHOST="https://dev.gentoo.org/~mgorny/dist/pypy-bin/${PV}"
+CPY_PATCHSET_VERSION="2.7.11-0"
+MY_P=pypy2-v${PV}
+
+DESCRIPTION="Pre-built version of PyPy"
+HOMEPAGE="http://pypy.org/"
+SRC_URI="https://bitbucket.org/pypy/pypy/downloads/${MY_P}-src.tar.bz2
+ https://dev.gentoo.org/~djc/python-gentoo-patches-${CPY_PATCHSET_VERSION}.tar.xz
+ amd64? (
+ jit? ( shadowstack? (
+ ${BINHOST}/${P}-amd64+bzip2+jit+ncurses+shadowstack.tar.lz
+ ) )
+ jit? ( !shadowstack? (
+ ${BINHOST}/${P}-amd64+bzip2+jit+ncurses.tar.lz
+ ) )
+ !jit? ( !shadowstack? (
+ ${BINHOST}/${P}-amd64+bzip2+ncurses.tar.lz
+ ) )
+ )
+ x86? (
+ cpu_flags_x86_sse2? (
+ jit? ( shadowstack? (
+ ${BINHOST}/${P}-x86+bzip2+jit+ncurses+shadowstack+sse2.tar.lz
+ ) )
+ jit? ( !shadowstack? (
+ ${BINHOST}/${P}-x86+bzip2+jit+ncurses+sse2.tar.lz
+ ) )
+ !jit? ( !shadowstack? (
+ ${BINHOST}/${P}-x86+bzip2+ncurses+sse2.tar.lz
+ ) )
+ )
+ !cpu_flags_x86_sse2? (
+ !jit? ( !shadowstack? (
+ ${BINHOST}/${P}-x86+bzip2+ncurses.tar.lz
+ ) )
+ )
+ )"
+
+# Supported variants
+REQUIRED_USE="!jit? ( !shadowstack )
+ x86? ( !cpu_flags_x86_sse2? ( !jit !shadowstack ) )"
+
+LICENSE="MIT"
+SLOT="0/$(get_version_component_range 1-2 ${PV})"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc gdbm +jit +shadowstack sqlite cpu_flags_x86_sse2 test tk"
+
+# yep, world would be easier if people started filling subslots...
+RDEPEND="
+ app-arch/bzip2:0=
+ dev-libs/expat:0=
+ dev-libs/libffi:0=
+ dev-libs/openssl:0=[-bindist]
+ sys-libs/glibc:2.2=
+ sys-libs/ncurses:0/6
+ sys-libs/zlib:0=
+ gdbm? ( sys-libs/gdbm:0= )
+ sqlite? ( dev-db/sqlite:3= )
+ tk? (
+ dev-lang/tk:0=
+ dev-tcltk/tix:0=
+ )
+ !dev-python/pypy:0"
+DEPEND="${RDEPEND}
+ app-arch/lzip
+ app-arch/xz-utils
+ doc? ( ${PYTHON_DEPS}
+ dev-python/sphinx )"
+PDEPEND="app-admin/python-updater"
+
+S=${WORKDIR}/${MY_P}-src
+
+QA_PREBUILT="
+ usr/lib*/pypy/pypy-c
+ usr/lib*/pypy/libpypy-c.so"
+
+pkg_setup() {
+ if [[ ${MERGE_TYPE} != binary ]]; then
+ use doc && python-any-r1_pkg_setup
+ fi
+}
+
+src_prepare() {
+ epatch "${FILESDIR}/4.0.0-gentoo-path.patch" \
+ "${FILESDIR}/1.9-distutils.unixccompiler.UnixCCompiler.runtime_library_dir_option.patch"
+
+ sed -e "s^@EPREFIX@^${EPREFIX}^" \
+ -e "s^@libdir@^$(get_libdir)^" \
+ -i lib-python/2.7/distutils/command/install.py || die
+
+ # apply CPython stdlib patches
+ pushd lib-python/2.7 > /dev/null || die
+ epatch "${FILESDIR}"/2.5.0_all_distutils_cxx.patch \
+ "${WORKDIR}"/patches/22_all_turkish_locale.patch \
+ "${WORKDIR}"/patches/62_all_xml.use_pyxml.patch
+ popd > /dev/null || die
+
+ epatch_user
+}
+
+src_compile() {
+ # Tadaam! PyPy compiled!
+ mv "${WORKDIR}"/${P}*/{libpypy-c.so,pypy-c} . || die
+ mv "${WORKDIR}"/${P}*/include/*.h include/ || die
+ # (not installed by pypy)
+ rm pypy/module/cpyext/include/_numpypy/numpy/README || die
+ mv pypy/module/cpyext/include/* include/ || die
+
+ use doc && emake -C pypy/doc/ html
+ #needed even without jit :( also needed in both compile and install phases
+ pax-mark m pypy-c libpypy-c.so
+}
+
+src_test() {
+ # (unset)
+ local -x PYTHONDONTWRITEBYTECODE
+
+ ./pypy-c ./pypy/test_all.py --pypy=./pypy-c lib-python || die
+}
+
+src_install() {
+ local dest=/usr/$(get_libdir)/pypy
+ einfo "Installing PyPy ..."
+ insinto "${dest}"
+ doins -r include lib_pypy lib-python pypy-c libpypy-c.so
+ fperms a+x ${dest}/pypy-c ${dest}/libpypy-c.so
+ pax-mark m "${ED%/}${dest}/pypy-c" "${ED%/}${dest}/libpypy-c.so"
+ dosym ../$(get_libdir)/pypy/pypy-c /usr/bin/pypy
+ dodoc README.rst
+
+ if ! use gdbm; then
+ rm -r "${ED%/}${dest}"/lib_pypy/gdbm.py \
+ "${ED%/}${dest}"/lib-python/*2.7/test/test_gdbm.py || die
+ fi
+ if ! use sqlite; then
+ rm -r "${ED%/}${dest}"/lib-python/*2.7/sqlite3 \
+ "${ED%/}${dest}"/lib_pypy/_sqlite3.py \
+ "${ED%/}${dest}"/lib-python/*2.7/test/test_sqlite.py || die
+ fi
+ if ! use tk; then
+ rm -r "${ED%/}${dest}"/lib-python/*2.7/{idlelib,lib-tk} \
+ "${ED%/}${dest}"/lib_pypy/_tkinter \
+ "${ED%/}${dest}"/lib-python/*2.7/test/test_{tcl,tk,ttk*}.py || die
+ fi
+
+ # Install docs
+ use doc && dohtml -r pypy/doc/_build/html/
+
+ einfo "Generating caches and byte-compiling ..."
+
+ local -x PYTHON=${ED%/}${dest}/pypy-c
+ local -x LD_LIBRARY_PATH="${ED%/}${dest}"
+ # we can't use eclass function since PyPy is dumb and always gives
+ # paths relative to the interpreter
+ local PYTHON_SITEDIR=${EPREFIX}/usr/$(get_libdir)/pypy/site-packages
+ python_export pypy EPYTHON
+
+ echo "EPYTHON='${EPYTHON}'" > epython.py || die
+ python_domodule epython.py
+
+ # Generate Grammar and PatternGrammar pickles.
+ "${PYTHON}" -c "import lib2to3.pygram, lib2to3.patcomp; lib2to3.patcomp.PatternCompiler()" \
+ || die "Generation of Grammar and PatternGrammar pickles failed"
+
+ # Generate cffi modules
+ # Please keep in sync with pypy/tool/build_cffi_imports.py!
+#cffi_build_scripts = {
+# "sqlite3": "_sqlite3_build.py",
+# "audioop": "_audioop_build.py",
+# "tk": "_tkinter/tklib_build.py",
+# "curses": "_curses_build.py" if sys.platform != "win32" else None,
+# "syslog": "_syslog_build.py" if sys.platform != "win32" else None,
+# "gdbm": "_gdbm_build.py" if sys.platform != "win32" else None,
+# "pwdgrp": "_pwdgrp_build.py" if sys.platform != "win32" else None,
+# "resource": "_resource_build.py" if sys.platform != "win32" else None,
+ cffi_targets=( audioop curses syslog pwdgrp resource )
+ use gdbm && cffi_targets+=( gdbm )
+ use sqlite && cffi_targets+=( sqlite3 )
+ use tk && cffi_targets+=( tkinter/tklib )
+
+ local t
+ # all modules except tkinter output to .
+ # tkinter outputs to the correct dir ...
+ cd "${ED%/}${dest}"/lib_pypy || die
+ for t in "${cffi_targets[@]}"; do
+ # tkinter doesn't work via -m
+ "${PYTHON}" "_${t}_build.py" || die "Failed to build CFFI bindings for ${t}"
+ done
+
+ # Cleanup temporary objects
+ find "${ED%/}${dest}" -name "_cffi_*.[co]" -delete || die
+ find "${ED%/}${dest}" -type d -empty -delete || die
+
+ # compile the installed modules
+ python_optimize "${ED%/}${dest}"
+}