Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 677398 | Differences between
and this patch

Collapse All | Expand All

(-)pypy-6.0.0.ebuild (-11 / +6 lines)
Lines 1-14 Link Here
1
# Copyright 1999-2018 Gentoo Foundation
1
# Copyright 1999-2018 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
3
4
EAPI=6
4
EAPI=7
5
5
6
PYTHON_COMPAT=( python2_7 pypy )
6
PYTHON_COMPAT=( python2_7 pypy )
7
inherit check-reqs pax-utils python-any-r1 toolchain-funcs versionator
7
inherit check-reqs pax-utils python-any-r1 toolchain-funcs
8
8
9
# note: remember to update this to newest dev-lang/python:2.7 on bump
9
# note: remember to update this to newest dev-lang/python:2.7 on bump
10
CPY_PATCHSET_VERSION="2.7.14-0"
10
CPY_PATCHSET_VERSION="2.7.14-0"
11
MY_P=pypy2-v${PV}
11
MY_P=pypy2.7-v${PV}
12
12
13
DESCRIPTION="A fast, compliant alternative implementation of the Python language"
13
DESCRIPTION="A fast, compliant alternative implementation of the Python language"
14
HOMEPAGE="http://pypy.org/"
14
HOMEPAGE="http://pypy.org/"
Lines 98-111 Link Here
98
}
98
}
99
99
100
src_prepare() {
100
src_prepare() {
101
	eapply "${FILESDIR}/4.0.0-gentoo-path.patch"
102
	eapply "${FILESDIR}/1.9-distutils.unixccompiler.UnixCCompiler.runtime_library_dir_option.patch"
101
	eapply "${FILESDIR}/1.9-distutils.unixccompiler.UnixCCompiler.runtime_library_dir_option.patch"
103
	eapply "${FILESDIR}"/5.9.0-shared-lib.patch	# 517002
102
	eapply "${FILESDIR}"/5.9.0-shared-lib.patch	# 517002
104
103
105
	sed -e "s^@EPREFIX@^${EPREFIX}^" \
106
		-e "s^@libdir@^$(get_libdir)^" \
107
		-i lib-python/2.7/distutils/command/install.py || die
108
109
	# apply CPython stdlib patches
104
	# apply CPython stdlib patches
110
	pushd lib-python/2.7 > /dev/null || die
105
	pushd lib-python/2.7 > /dev/null || die
111
	# TODO: cpy turkish locale patch now fixes C code
106
	# TODO: cpy turkish locale patch now fixes C code
Lines 243-249 Link Here
243
}
238
}
244
239
245
src_install() {
240
src_install() {
246
	local dest=/usr/$(get_libdir)/pypy
241
	local dest=/usr/$(get_libdir)/pypy2.7
247
	einfo "Installing PyPy ..."
242
	einfo "Installing PyPy ..."
248
	exeinto "${dest}"
243
	exeinto "${dest}"
249
	doexe pypy-c libpypy-c.so
244
	doexe pypy-c libpypy-c.so
Lines 252-258 Link Here
252
	# preserve mtimes to avoid obsoleting caches
247
	# preserve mtimes to avoid obsoleting caches
253
	insopts -p
248
	insopts -p
254
	doins -r include lib_pypy lib-python
249
	doins -r include lib_pypy lib-python
255
	dosym ../$(get_libdir)/pypy/pypy-c /usr/bin/pypy
250
	dosym ../$(get_libdir)/pypy2.7/pypy-c /usr/bin/pypy
256
	dodoc README.rst
251
	dodoc README.rst
257
252
258
	if ! use gdbm; then
253
	if ! use gdbm; then
Lines 273-279 Link Here
273
	local -x PYTHON=${ED%/}${dest}/pypy-c
268
	local -x PYTHON=${ED%/}${dest}/pypy-c
274
	# we can't use eclass function since PyPy is dumb and always gives
269
	# we can't use eclass function since PyPy is dumb and always gives
275
	# paths relative to the interpreter
270
	# paths relative to the interpreter
276
	local PYTHON_SITEDIR=${EPREFIX}/usr/$(get_libdir)/pypy/site-packages
271
	local PYTHON_SITEDIR=${EPREFIX}/usr/$(get_libdir)/pypy2.7/site-packages
277
	python_export pypy EPYTHON
272
	python_export pypy EPYTHON
278
273
279
	echo "EPYTHON='${EPYTHON}'" > epython.py || die
274
	echo "EPYTHON='${EPYTHON}'" > epython.py || die

Return to bug 677398