1 |
commit: dfddd92e53aabb73bfb757f9d464277ab08f774e |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Oct 4 10:30:41 2018 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Oct 4 10:31:11 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dfddd92e |
7 |
|
8 |
app-text/libetonyek: Dumb down dev-util/mdds pseudo slot detection |
9 |
|
10 |
The previous solution was not that smart after all. |
11 |
|
12 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
13 |
Package-Manager: Portage-2.3.50, Repoman-2.3.11 |
14 |
|
15 |
app-text/libetonyek/libetonyek-0.1.8-r1.ebuild | 20 ++++++++++++-------- |
16 |
app-text/libetonyek/libetonyek-9999.ebuild | 20 ++++++++++++-------- |
17 |
2 files changed, 24 insertions(+), 16 deletions(-) |
18 |
|
19 |
diff --git a/app-text/libetonyek/libetonyek-0.1.8-r1.ebuild b/app-text/libetonyek/libetonyek-0.1.8-r1.ebuild |
20 |
index 2d13eaf89aa..e58d47644ac 100644 |
21 |
--- a/app-text/libetonyek/libetonyek-0.1.8-r1.ebuild |
22 |
+++ b/app-text/libetonyek/libetonyek-0.1.8-r1.ebuild |
23 |
@@ -46,15 +46,19 @@ src_prepare() { |
24 |
} |
25 |
|
26 |
src_configure() { |
27 |
- # mdds installs versioned pkgconfig files |
28 |
- local p=$(best_version dev-util/mdds) |
29 |
- local pv=$(echo ${p/%-r[0-9]*/} | rev | cut -d - -f 1 | rev) |
30 |
- econf \ |
31 |
- --disable-werror \ |
32 |
- --with-mdds=$(ver_cut 1-2 ${pv}) \ |
33 |
- $(use_with doc docs) \ |
34 |
- $(use_enable static-libs static) \ |
35 |
+ local myeconfargs=( |
36 |
+ --disable-werror |
37 |
+ $(use_with doc docs) |
38 |
+ $(use_enable static-libs static) |
39 |
$(use_enable test tests) |
40 |
+ ) |
41 |
+ if has_version ">=dev-util/mdds-1.4"; then |
42 |
+ myeconfargs+=( --with-mdds=1.4 ) |
43 |
+ else |
44 |
+ myeconfargs+=( --with-mdds=1.2 ) |
45 |
+ fi |
46 |
+ |
47 |
+ econf "${myeconfargs[@]}" |
48 |
} |
49 |
|
50 |
src_install() { |
51 |
|
52 |
diff --git a/app-text/libetonyek/libetonyek-9999.ebuild b/app-text/libetonyek/libetonyek-9999.ebuild |
53 |
index 682cf934b09..434fddd7f1a 100644 |
54 |
--- a/app-text/libetonyek/libetonyek-9999.ebuild |
55 |
+++ b/app-text/libetonyek/libetonyek-9999.ebuild |
56 |
@@ -39,15 +39,19 @@ src_prepare() { |
57 |
} |
58 |
|
59 |
src_configure() { |
60 |
- # mdds installs versioned pkgconfig files |
61 |
- local p=$(best_version dev-util/mdds) |
62 |
- local pv=$(echo ${p/%-r[0-9]*/} | rev | cut -d - -f 1 | rev) |
63 |
- econf \ |
64 |
- --disable-werror \ |
65 |
- --with-mdds=$(ver_cut 1-2 ${pv}) \ |
66 |
- $(use_with doc docs) \ |
67 |
- $(use_enable static-libs static) \ |
68 |
+ local myeconfargs=( |
69 |
+ --disable-werror |
70 |
+ $(use_with doc docs) |
71 |
+ $(use_enable static-libs static) |
72 |
$(use_enable test tests) |
73 |
+ ) |
74 |
+ if has_version ">=dev-util/mdds-1.4"; then |
75 |
+ myeconfargs+=( --with-mdds=1.4 ) |
76 |
+ else |
77 |
+ myeconfargs+=( --with-mdds=1.2 ) |
78 |
+ fi |
79 |
+ |
80 |
+ econf "${myeconfargs[@]}" |
81 |
} |
82 |
|
83 |
src_install() { |