1 |
commit: 6f064ca76e278f87f80c33cc3ae31dc4829cbe4d |
2 |
Author: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Oct 1 08:38:15 2020 +0000 |
4 |
Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Oct 1 08:38:33 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6f064ca7 |
7 |
|
8 |
sci-calculators/units: Install for multiple python implementations |
9 |
|
10 |
Package-Manager: Portage-3.0.8, Repoman-3.0.1 |
11 |
Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org> |
12 |
|
13 |
sci-calculators/units/units-2.20.ebuild | 16 ++++------------ |
14 |
1 file changed, 4 insertions(+), 12 deletions(-) |
15 |
|
16 |
diff --git a/sci-calculators/units/units-2.20.ebuild b/sci-calculators/units/units-2.20.ebuild |
17 |
index 2e744c5f60c..5576c8c4c5c 100644 |
18 |
--- a/sci-calculators/units/units-2.20.ebuild |
19 |
+++ b/sci-calculators/units/units-2.20.ebuild |
20 |
@@ -3,7 +3,7 @@ |
21 |
|
22 |
EAPI=7 |
23 |
PYTHON_COMPAT=( python3_{6,7,8} ) |
24 |
-inherit python-single-r1 |
25 |
+inherit python-r1 |
26 |
|
27 |
DESCRIPTION="Unit conversion program" |
28 |
HOMEPAGE="https://www.gnu.org/software/units/units.html" |
29 |
@@ -20,8 +20,8 @@ RDEPEND=" |
30 |
units--cur? ( |
31 |
${PYTHON_DEPS} |
32 |
$(python_gen_cond_dep ' |
33 |
- dev-python/future[${PYTHON_MULTI_USEDEP}] |
34 |
- dev-python/requests[${PYTHON_MULTI_USEDEP}] |
35 |
+ dev-python/future[${PYTHON_USEDEP}] |
36 |
+ dev-python/requests[${PYTHON_USEDEP}] |
37 |
') |
38 |
) |
39 |
" |
40 |
@@ -37,10 +37,6 @@ DOCS=( |
41 |
ChangeLog NEWS README |
42 |
) |
43 |
|
44 |
-pkg_setup() { |
45 |
- use units--cur && python-single-r1_pkg_setup |
46 |
-} |
47 |
- |
48 |
src_configure() { |
49 |
econf \ |
50 |
--sharedstatedir="${EROOT}/var/lib" \ |
51 |
@@ -54,15 +50,11 @@ src_compile() { |
52 |
src_install() { |
53 |
default |
54 |
|
55 |
- # we're intentionally delaying this since 'make install' would |
56 |
- # get confused if we shove 'units_cur' there, and there is no real |
57 |
- # need to add more complexity for it |
58 |
if use units--cur; then |
59 |
sed \ |
60 |
-e "/^outfile/s|'.*'|'/usr/share/units/currency.units'|g" \ |
61 |
-e 's|^#!|&/usr/bin/python|g' \ |
62 |
units_cur_inst > units_cur || die |
63 |
- python_fix_shebang units_cur |
64 |
- python_doscript units_cur |
65 |
+ python_foreach_impl python_doscript units_cur |
66 |
fi |
67 |
} |