commit:     6f064ca76e278f87f80c33cc3ae31dc4829cbe4d
Author:     Jeroen Roovers <jer <AT> gentoo <DOT> org>
AuthorDate: Thu Oct  1 08:38:15 2020 +0000
Commit:     Jeroen Roovers <jer <AT> gentoo <DOT> org>
CommitDate: Thu Oct  1 08:38:33 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6f064ca7

sci-calculators/units: Install for multiple python implementations

Package-Manager: Portage-3.0.8, Repoman-3.0.1
Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org>

 sci-calculators/units/units-2.20.ebuild | 16 ++++------------
 1 file changed, 4 insertions(+), 12 deletions(-)

diff --git a/sci-calculators/units/units-2.20.ebuild 
b/sci-calculators/units/units-2.20.ebuild
index 2e744c5f60c..5576c8c4c5c 100644
--- a/sci-calculators/units/units-2.20.ebuild
+++ b/sci-calculators/units/units-2.20.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=7
 PYTHON_COMPAT=( python3_{6,7,8} )
-inherit python-single-r1
+inherit python-r1
 
 DESCRIPTION="Unit conversion program"
 HOMEPAGE="https://www.gnu.org/software/units/units.html";
@@ -20,8 +20,8 @@ RDEPEND="
        units--cur? (
                ${PYTHON_DEPS}
                $(python_gen_cond_dep '
-                       dev-python/future[${PYTHON_MULTI_USEDEP}]
-                       dev-python/requests[${PYTHON_MULTI_USEDEP}]
+                       dev-python/future[${PYTHON_USEDEP}]
+                       dev-python/requests[${PYTHON_USEDEP}]
                ')
        )
 "
@@ -37,10 +37,6 @@ DOCS=(
        ChangeLog NEWS README
 )
 
-pkg_setup() {
-       use units--cur && python-single-r1_pkg_setup
-}
-
 src_configure() {
        econf \
                --sharedstatedir="${EROOT}/var/lib" \
@@ -54,15 +50,11 @@ src_compile() {
 src_install() {
        default
 
-       # we're intentionally delaying this since 'make install' would
-       # get confused if we shove 'units_cur' there, and there is no real
-       # need to add more complexity for it
        if use units--cur; then
                sed \
                        -e 
"/^outfile/s|'.*'|'/usr/share/units/currency.units'|g" \
                        -e 's|^#!|&/usr/bin/python|g' \
                        units_cur_inst > units_cur || die
-               python_fix_shebang units_cur
-               python_doscript units_cur
+               python_foreach_impl python_doscript units_cur
        fi
 }

Reply via email to