summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-text/libetonyek/libetonyek-0.1.8-r1.ebuild')
-rw-r--r--app-text/libetonyek/libetonyek-0.1.8-r1.ebuild20
1 files changed, 12 insertions, 8 deletions
diff --git a/app-text/libetonyek/libetonyek-0.1.8-r1.ebuild b/app-text/libetonyek/libetonyek-0.1.8-r1.ebuild
index 2d13eaf89aa8..e58d47644acf 100644
--- a/app-text/libetonyek/libetonyek-0.1.8-r1.ebuild
+++ b/app-text/libetonyek/libetonyek-0.1.8-r1.ebuild
@@ -46,15 +46,19 @@ src_prepare() {
}
src_configure() {
- # mdds installs versioned pkgconfig files
- local p=$(best_version dev-util/mdds)
- local pv=$(echo ${p/%-r[0-9]*/} | rev | cut -d - -f 1 | rev)
- econf \
- --disable-werror \
- --with-mdds=$(ver_cut 1-2 ${pv}) \
- $(use_with doc docs) \
- $(use_enable static-libs static) \
+ local myeconfargs=(
+ --disable-werror
+ $(use_with doc docs)
+ $(use_enable static-libs static)
$(use_enable test tests)
+ )
+ if has_version ">=dev-util/mdds-1.4"; then
+ myeconfargs+=( --with-mdds=1.4 )
+ else
+ myeconfargs+=( --with-mdds=1.2 )
+ fi
+
+ econf "${myeconfargs[@]}"
}
src_install() {