Skip to content

Commit

Permalink
app-text/libetonyek: Dumb down dev-util/mdds pseudo slot detection
Browse files Browse the repository at this point in the history
The previous solution was not that smart after all.

Signed-off-by: Andreas Sturmlechner <[email protected]>
Package-Manager: Portage-2.3.50, Repoman-2.3.11
  • Loading branch information
a17r committed Oct 4, 2018
1 parent b0bb5fa commit dfddd92
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 16 deletions.
20 changes: 12 additions & 8 deletions app-text/libetonyek/libetonyek-0.1.8-r1.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
20 changes: 12 additions & 8 deletions app-text/libetonyek/libetonyek-9999.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,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() {
Expand Down

0 comments on commit dfddd92

Please sign in to comment.