app-portage/portage-utils: adapt 9999 ebuild for latest code
authorFabian Groffen <grobian@gentoo.org>
Sat, 25 May 2019 17:13:19 +0000 (19:13 +0200)
committerFabian Groffen <grobian@gentoo.org>
Sat, 25 May 2019 17:13:39 +0000 (19:13 +0200)
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
Package-Manager: Portage-2.3.62, Repoman-2.3.11

app-portage/portage-utils/metadata.xml
app-portage/portage-utils/portage-utils-9999.ebuild

index a53ffbea77d3e9fd7ff13341340603b7b2013ea2..dac8feca7f1d93c667f960d8a18aa3eab777efed 100644 (file)
@@ -5,4 +5,7 @@
                <email>grobian@gentoo.org</email>
                <name>Fabian Groffen</name>
        </maintainer>
+       <use>
+               <flag name="qmanifest">Build qmanifest applet, this adds additional dependencies for GPG, OpenSSL and BLAKE2B hashing</flag>
+       </use>
 </pkgmetadata>
index 224433e36f2b42281a41103f8345150e93d82908..25967bcab798616006e4ff413743672e86faf8ab 100644 (file)
@@ -10,7 +10,7 @@ HOMEPAGE="https://wiki.gentoo.org/wiki/Portage-utils"
 
 LICENSE="GPL-2"
 SLOT="0"
-IUSE="nls static"
+IUSE="nls static openmp +qmanifest"
 
 if [[ ${PV} == *9999 ]]; then
        inherit git-r3 autotools
@@ -24,12 +24,29 @@ fi
 RDEPEND="dev-libs/iniparser:0"
 DEPEND="${RDEPEND}
        app-arch/xz-utils
-       static? ( dev-libs/iniparser:0[static-libs] )"
+       static? ( dev-libs/iniparser:0[static-libs] )
+       qmanifest? (
+               openmp? (
+                       || (
+                               >=sys-devel/gcc-4.2:*[openmp]
+                               sys-devel/clang-runtime:*[openmp]
+                       )
+               )
+               app-crypt/libb2
+               dev-libs/openssl:0=
+               sys-libs/zlib
+               app-crypt/gpgme
+       )
+       "
 
 src_prepare() {
        default
 }
 
 src_configure() {
-       econf --disable-maintainer-mode --with-eprefix="${EPREFIX}"
+       econf \
+               --disable-maintainer-mode \
+               --with-eprefix="${EPREFIX}" \
+               $(use_enable qmanifest) \
+               $(use_enable openmp)
 }