summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Rasmus Thomsen <cogitri@exherbo.org> 2018-07-25 14:07:26 +0200
committerAvatar Rasmus Thomsen <cogitri@exherbo.org> 2018-07-25 14:13:29 +0200
commit9ebe9dd5cbf38055e76eb31e1aba258d12bc27a3 (patch)
tree22db1c95edeb08239c95866127920e0b01918285
parent45dc7515bd8ac37438f7c658c824ec88a33c59ba (diff)
downloadcogitri-9ebe9dd5cbf38055e76eb31e1aba258d12bc27a3.tar.gz
cogitri-9ebe9dd5cbf38055e76eb31e1aba258d12bc27a3.tar.xz
pypy3: bury
-rw-r--r--exlibs/pypy-build.exlib128
-rw-r--r--packages/dev-lang/pypy3/pypy3-5.9.0.exheres-09
2 files changed, 0 insertions, 137 deletions
diff --git a/exlibs/pypy-build.exlib b/exlibs/pypy-build.exlib
deleted file mode 100644
index b3a44a2..0000000
--- a/exlibs/pypy-build.exlib
+++ /dev/null
@@ -1,128 +0,0 @@
-# Copyright 2017 Rasmus Thomsen <Rasmus.thomsen@protonmail.com>
-# Based in part upon 'pypy-5.3.1.exheres-0', which is:
-# Copyright 2011 NAKAMURA Yoshitaka
-# Distributed under the terms of the GNU General Public License v2
-
-export_exlib_phases src_prepare src_configure src_compile src_test_expensive src_install
-
-require python [ blacklist=3 has_bin=true multibuild=false ]
-
-myexparam pypy_version=""
-
-PYPY_VERSION="$(exparam pypy_version)"
-
-if [[ ${PYPY_VERSION} == 3 ]]; then
- MY_PNV="${PN}-v${PV}"
-else
- MY_PNV="${PN}2-v${PV}"
-fi
-
-HOMEPAGE="http://pypy.org/"
-DOWNLOADS="https://bitbucket.org/pypy/pypy/downloads/${MY_PNV}-src.tar.bz2"
-
-LICENCES="MIT"
-SLOT="0"
-MYOPTIONS="
- gdbm ncurses sqlite tk
- ( providers: libressl openssl ) [[ number-selected = exactly-one ]]
-"
-
-DEPENDENCIES="
- build:
- virtual/pkg-config
- sys-devel/gettext
- build+run:
- app-arch/bzip2
- dev-libs/expat
- dev-libs/libffi
- sys-libs/zlib
- gdbm? ( sys-libs/gdbm )
- ncurses? ( sys-libs/ncurses )
- sqlite? ( dev-db/sqlite:3 )
- tk? ( dev-lang/tk )
- providers:libressl? ( dev-libs/libressl:= )
- providers:openssl? ( dev-libs/openssl )
-"
-
-WORK="${WORKBASE}"/${MY_PNV}-src
-
-# Tests take approx. 1 hour, so they're always expensive
-RESTRICT="test"
-
-pypy-build_src_prepare() {
- default
-
- # Work around pypy trying to directly access pkg-config & cc
- edo mkdir "${WORKBASE}"/bin
- edo ln -s /usr/$(exhost --target)/bin/$(exhost --target)-cc "${WORKBASE}"/bin/cc
- edo ln -s /usr/$(exhost --target)/bin/$(exhost --target)-pkg-config "${WORKBASE}"/bin/pkg-config
- export PATH="${WORKBASE}/bin:${PATH}"
-}
-
-pypy-build_src_configure() {
- if ! option gdbm; then
- edo rm lib_pypy/_gdbm_build.py
- fi
- if ! option ncurses; then
- edo rm lib_pypy/_curses_build.py
- fi
- if ! option sqlite; then
- edo rm lib_pypy/_sqlite3_build.py
- fi
- if ! option tk; then
- edo rm lib_pypy/_tkinter/tklib_build.py
- fi
-}
-
-pypy-build_src_compile() {
- local myopts=( --withmod-bz2 --withmod-zlib --withmod-pyexpat )
-
- option ncurses && myopts+=( --withmod-_minimal_curses )
-
- # Don't use pypy's makefile because it's not as customiseable
- edo ${PYTHON} rpython/bin/rpython -Ojit --batch --cc=${CC} \
- --make-jobs=${EXJOBS:-1} --shared --thread pypy/goal/targetpypystandalone "${myopts[@]}"
-
- emake -C "${TEMP%/}"/usession*-0/testing_1
- edo cp "${TEMP%/}"/usession*-0/testing_1/{pypy${PYPY_VERSION}-c,libpypy${PYPY_VERSION}-c.so} "${WORK}"
-}
-
-pypy-build_src_test_expensive() {
- # The tests are started with python2 and spawn pypy themselves.
- edo ${PYTHON} ./pypy/test_all.py --pypy=./pypy${PYPY_VERSION}-c lib-python
-}
-
-pypy-build_src_install() {
- prefix=/usr/$(exhost --target)/lib/pypy${PYPY_VERSION}
- exeinto "${prefix}"/bin
- dodir /usr/$(exhost --target)/bin
- doexe "${WORK}"/pypy${PYPY_VERSION}-c
- doexe "${WORK}"/libpypy${PYPY_VERSION}-c.so
- dosym "${prefix}"/bin/pypy${PYPY_VERSION}-c /usr/$(exhost --target)/bin/pypy${PYPY_VERSION}
-
- insinto "${prefix}"
-
- doins -r lib-python/ lib_pypy include
-
- dodir /usr/$(exhost --target)/include
- dosym "${prefix}"/include /usr/$(exhost --target)/include/pypy${PYPY_VERSION}
-
- keepdir "${prefix}"/site-packages
-
- edo "${IMAGE}/${prefix}/bin/pypy${PYPY_VERSION}-c" \
- -mcompileall -f -q -d "${prefix}/lib-python" -x "/tests?/" \
- "${IMAGE}/${prefix}/lib-python/3"
-
- # This has to be done with python2, since pypy3 fails to build this otherwise
- # Because it's python2 and not 3 code
- edo ${PYTHON} \
- -mcompileall -f -q -d "${prefix}/lib-python" -x "/tests?/" \
- "${IMAGE}/${prefix}/lib-python/2.7"
-
- edo "${IMAGE}/${prefix}/bin/pypy${PYPY_VERSION}-c" -O \
- mcompileall -f -q -d "${prefix}/lib_pypy" -x "/tests?/" \
- "${IMAGE}/${prefix}/lib_pypy"
-
- emagicdocs
-}
-
diff --git a/packages/dev-lang/pypy3/pypy3-5.9.0.exheres-0 b/packages/dev-lang/pypy3/pypy3-5.9.0.exheres-0
deleted file mode 100644
index fdae106..0000000
--- a/packages/dev-lang/pypy3/pypy3-5.9.0.exheres-0
+++ /dev/null
@@ -1,9 +0,0 @@
-# Copyright 2017 Rasmus Thomsen <Rasmus.thomsen@protonmail.com>
-# Distributed under the terms of the GNU General Public License v2
-
-require pypy-build [ pypy_version=3 ]
-
-SUMMARY="A fast, compliant alternative implementation of the Python language ( Python 3 version )"
-
-PLATFORMS="~amd64"
-