diff options
author | Michał Górny <mgorny@gentoo.org> | 2016-05-14 11:05:56 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2016-05-14 11:06:49 +0200 |
commit | 21297d3442c8aaf403584e1f75f0a0232e7ddac6 (patch) | |
tree | a7b3254cf2fd0b55b4fab35b15b25f003d557d38 /dev-python | |
parent | dev-python/pypy3: INSDESTTREE -> custom var, #582982 (diff) | |
download | gentoo-21297d3442c8aaf403584e1f75f0a0232e7ddac6.tar.gz gentoo-21297d3442c8aaf403584e1f75f0a0232e7ddac6.tar.bz2 gentoo-21297d3442c8aaf403584e1f75f0a0232e7ddac6.zip |
dev-python/pypy-bin: INSDESTTREE -> custom var, #582982
Diffstat (limited to 'dev-python')
-rw-r--r-- | dev-python/pypy-bin/pypy-bin-4.0.1-r1.ebuild | 35 | ||||
-rw-r--r-- | dev-python/pypy-bin/pypy-bin-5.0.0.ebuild | 35 |
2 files changed, 36 insertions, 34 deletions
diff --git a/dev-python/pypy-bin/pypy-bin-4.0.1-r1.ebuild b/dev-python/pypy-bin/pypy-bin-4.0.1-r1.ebuild index 9e6ecb799d5c..6863329c26c5 100644 --- a/dev-python/pypy-bin/pypy-bin-4.0.1-r1.ebuild +++ b/dev-python/pypy-bin/pypy-bin-4.0.1-r1.ebuild @@ -131,27 +131,28 @@ src_test() { } src_install() { + local dest=/usr/$(get_libdir)/pypy einfo "Installing PyPy ..." - insinto "/usr/$(get_libdir)/pypy" + insinto "${dest}" doins -r include lib_pypy lib-python pypy-c libpypy-c.so - fperms a+x ${INSDESTTREE}/pypy-c ${INSDESTTREE}/libpypy-c.so - pax-mark m "${ED%/}${INSDESTTREE}/pypy-c" "${ED%/}${INSDESTTREE}/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%/}${INSDESTTREE}"/lib_pypy/gdbm.py \ - "${ED%/}${INSDESTTREE}"/lib-python/*2.7/test/test_gdbm.py || die + 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%/}${INSDESTTREE}"/lib-python/*2.7/sqlite3 \ - "${ED%/}${INSDESTTREE}"/lib_pypy/_sqlite3.py \ - "${ED%/}${INSDESTTREE}"/lib-python/*2.7/test/test_sqlite.py || die + 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%/}${INSDESTTREE}"/lib-python/*2.7/{idlelib,lib-tk} \ - "${ED%/}${INSDESTTREE}"/lib_pypy/_tkinter \ - "${ED%/}${INSDESTTREE}"/lib-python/*2.7/test/test_{tcl,tk,ttk*}.py || die + 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 @@ -159,8 +160,8 @@ src_install() { einfo "Generating caches and byte-compiling ..." - local -x PYTHON=${ED%/}${INSDESTTREE}/pypy-c - local -x LD_LIBRARY_PATH="${ED%/}${INSDESTTREE}" + 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 @@ -191,16 +192,16 @@ src_install() { local t # all modules except tkinter output to . # tkinter outputs to the correct dir ... - cd "${ED%/}${INSDESTTREE}"/lib_pypy || die + 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%/}${INSDESTTREE}" -name "_cffi_*.[co]" -delete || die - find "${ED%/}${INSDESTTREE}" -type d -empty -delete || die + find "${ED%/}${dest}" -name "_cffi_*.[co]" -delete || die + find "${ED%/}${dest}" -type d -empty -delete || die # compile the installed modules - python_optimize "${ED%/}${INSDESTTREE}" + python_optimize "${ED%/}${dest}" } diff --git a/dev-python/pypy-bin/pypy-bin-5.0.0.ebuild b/dev-python/pypy-bin/pypy-bin-5.0.0.ebuild index d2c1fa31fb61..0850563fb49a 100644 --- a/dev-python/pypy-bin/pypy-bin-5.0.0.ebuild +++ b/dev-python/pypy-bin/pypy-bin-5.0.0.ebuild @@ -131,27 +131,28 @@ src_test() { } src_install() { + local dest=/usr/$(get_libdir)/pypy einfo "Installing PyPy ..." - insinto "/usr/$(get_libdir)/pypy" + insinto "${dest}" doins -r include lib_pypy lib-python pypy-c libpypy-c.so - fperms a+x ${INSDESTTREE}/pypy-c ${INSDESTTREE}/libpypy-c.so - pax-mark m "${ED%/}${INSDESTTREE}/pypy-c" "${ED%/}${INSDESTTREE}/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%/}${INSDESTTREE}"/lib_pypy/gdbm.py \ - "${ED%/}${INSDESTTREE}"/lib-python/*2.7/test/test_gdbm.py || die + 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%/}${INSDESTTREE}"/lib-python/*2.7/sqlite3 \ - "${ED%/}${INSDESTTREE}"/lib_pypy/_sqlite3.py \ - "${ED%/}${INSDESTTREE}"/lib-python/*2.7/test/test_sqlite.py || die + 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%/}${INSDESTTREE}"/lib-python/*2.7/{idlelib,lib-tk} \ - "${ED%/}${INSDESTTREE}"/lib_pypy/_tkinter \ - "${ED%/}${INSDESTTREE}"/lib-python/*2.7/test/test_{tcl,tk,ttk*}.py || die + 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 @@ -159,8 +160,8 @@ src_install() { einfo "Generating caches and byte-compiling ..." - local -x PYTHON=${ED%/}${INSDESTTREE}/pypy-c - local -x LD_LIBRARY_PATH="${ED%/}${INSDESTTREE}" + 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 @@ -191,16 +192,16 @@ src_install() { local t # all modules except tkinter output to . # tkinter outputs to the correct dir ... - cd "${ED%/}${INSDESTTREE}"/lib_pypy || die + 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%/}${INSDESTTREE}" -name "_cffi_*.[co]" -delete || die - find "${ED%/}${INSDESTTREE}" -type d -empty -delete || die + find "${ED%/}${dest}" -name "_cffi_*.[co]" -delete || die + find "${ED%/}${dest}" -type d -empty -delete || die # compile the installed modules - python_optimize "${ED%/}${INSDESTTREE}" + python_optimize "${ED%/}${dest}" } |