app-text/libetonyek: Relax dev-util/mdds version requirement
authorAndreas Sturmlechner <asturm@gentoo.org>
Thu, 4 Oct 2018 08:38:29 +0000 (10:38 +0200)
committerAndreas Sturmlechner <asturm@gentoo.org>
Thu, 4 Oct 2018 08:49:00 +0000 (10:49 +0200)
Make the sddm slot op work by querying x.y info from best_version.

Bug: https://bugs.gentoo.org/667690
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Package-Manager: Portage-2.3.50, Repoman-2.3.11

app-text/libetonyek/libetonyek-9999.ebuild

index 39b6f10a69f8c8efa91a07d4688b614d917655dc..682cf934b09fb10b98560b1bbc47d50ec24b16bb 100644 (file)
@@ -1,7 +1,7 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=6
+EAPI=7
 
 EGIT_REPO_URI="https://anongit.freedesktop.org/git/libreoffice/libetonyek.git"
 [[ ${PV} == 9999 ]] && inherit autotools git-r3
@@ -13,7 +13,7 @@ HOMEPAGE="https://wiki.documentfoundation.org/DLP/Libraries/libetonyek"
 LICENSE="|| ( GPL-2+ LGPL-2.1 MPL-1.1 )"
 SLOT="0"
 [[ ${PV} == 9999 ]] || \
-KEYWORDS="~amd64 ~arm ~arm64 ~x86"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
 IUSE="doc static-libs test"
 
 RDEPEND="
@@ -24,7 +24,7 @@ RDEPEND="
 "
 DEPEND="${RDEPEND}
        dev-libs/boost
-       >=dev-util/mdds-1.2.2:1
+       >=dev-util/mdds-1.4.2:1=
        media-libs/glm
        sys-devel/libtool
        virtual/pkgconfig
@@ -39,12 +39,15 @@ 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) \
-               $(use_enable test tests) \
-               --with-mdds=1.2
+               $(use_enable test tests)
 }
 
 src_install() {