sci-calculators/units: Put arcane command in correct ebuild (bug #635324).
authorJeroen Roovers <jer@gentoo.org>
Fri, 27 Oct 2017 00:14:59 +0000 (02:14 +0200)
committerJeroen Roovers <jer@gentoo.org>
Fri, 27 Oct 2017 00:14:59 +0000 (02:14 +0200)
Package-Manager: Portage-2.3.12, Repoman-2.3.4

sci-calculators/units/units-2.14-r1.ebuild
sci-calculators/units/units-2.15.ebuild

index 2269d863f54e262fcf1293919282dd264eb9bf80..45559228bae3a4eb2166205bc24a7f0e238b3fbe 100644 (file)
@@ -45,7 +45,6 @@ src_install() {
                python_is_python3 && pyver=3 || pyver=2
                sed -e "/^outfile/s|'.*'|'/usr/share/units/currency.units'|g" \
                        "units_cur${pyver}" > units_cur || die
-               python_fix_shebang
                python_doscript units_cur
        fi
 }
index 4d87f5164edd11c7ff34202ff3b78c16844a257e..052a0fabba92f341960d0885c1ff8d69c5124b83 100644 (file)
@@ -51,6 +51,7 @@ src_install() {
                        -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
        fi
 }