summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakov Smolic <jakov.smolic@sartura.hr>2020-05-20 19:05:20 +0200
committerJoonas Niilola <juippis@gentoo.org>2020-07-05 11:24:15 +0300
commit890e5a5b16a05ab916b03de876383b488cba6de9 (patch)
treecc56be50c3f087c3c59d05228aaa02c42629d01d /dev-libs/json-c
parentmedia-gfx/qimgv: remove old 0.8.8 (diff)
downloadgentoo-890e5a5b16a05ab916b03de876383b488cba6de9.tar.gz
gentoo-890e5a5b16a05ab916b03de876383b488cba6de9.tar.bz2
gentoo-890e5a5b16a05ab916b03de876383b488cba6de9.zip
dev-libs/json-c: add USE flag to enable rdrand support
Closes: https://bugs.gentoo.org/724354 Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Jakov Smolic <jakov.smolic@sartura.hr> Closes: https://github.com/gentoo/gentoo/pull/15895 Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'dev-libs/json-c')
-rw-r--r--dev-libs/json-c/json-c-0.14-r3.ebuild3
-rw-r--r--dev-libs/json-c/json-c-9999.ebuild3
-rw-r--r--dev-libs/json-c/metadata.xml3
3 files changed, 7 insertions, 2 deletions
diff --git a/dev-libs/json-c/json-c-0.14-r3.ebuild b/dev-libs/json-c/json-c-0.14-r3.ebuild
index 2b34de77a7fe..0d4ff648a369 100644
--- a/dev-libs/json-c/json-c-0.14-r3.ebuild
+++ b/dev-libs/json-c/json-c-0.14-r3.ebuild
@@ -13,7 +13,7 @@ SRC_URI="https://s3.amazonaws.com/json-c_releases/releases/${P}.tar.gz"
LICENSE="MIT"
SLOT="0/5"
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos"
-IUSE="doc static-libs threads"
+IUSE="cpu-flags-x86-rdrand doc static-libs threads"
PATCHES=(
"${FILESDIR}/${PN}-0.14-cmake-static-libs.patch"
@@ -34,6 +34,7 @@ multilib_src_configure() {
-DBUILD_DOCUMENTATION=$(multilib_native_usex doc)
-DBUILD_STATIC_LIBS=$(usex static-libs)
-DDISABLE_WERROR=ON
+ -DENABLE_RDRAND=$(usex cpu-flags-x86-rdrand)
-DENABLE_THREADING=$(usex threads)
)
diff --git a/dev-libs/json-c/json-c-9999.ebuild b/dev-libs/json-c/json-c-9999.ebuild
index eac441be4e78..51583e0b0ad4 100644
--- a/dev-libs/json-c/json-c-9999.ebuild
+++ b/dev-libs/json-c/json-c-9999.ebuild
@@ -12,7 +12,7 @@ EGIT_REPO_URI="https://github.com/json-c/json-c.git"
LICENSE="MIT"
SLOT="0/5"
-IUSE="doc static-libs threads"
+IUSE="cpu-flags-x86-rdrand doc static-libs threads"
MULTILIB_WRAPPED_HEADERS=(
/usr/include/json-c/config.h
@@ -27,6 +27,7 @@ multilib_src_configure() {
-DBUILD_DOCUMENTATION=$(multilib_native_usex doc)
-DDISABLE_WERROR=ON
-DENABLE_THREADING=$(usex threads)
+ -DENABLE_RDRAND=$(usex cpu-flags-x86-rdrand)
-DBUILD_STATIC_LIBS=$(usex static-libs)
)
diff --git a/dev-libs/json-c/metadata.xml b/dev-libs/json-c/metadata.xml
index ca10c6aa7ae5..4165aa7d278a 100644
--- a/dev-libs/json-c/metadata.xml
+++ b/dev-libs/json-c/metadata.xml
@@ -13,6 +13,9 @@
<email>proxy-maint@gentoo.org</email>
<name>Proxy Maintainers</name>
</maintainer>
+ <use>
+ <flag name="cpu-flags-x86-rdrand">Enable RDRAND Hardware RNG Hash Seed</flag>
+ </use>
<longdescription lang="en">
"A JSON implementation in C" is probably the better description, and then
"JSON-C implements a reference counting object model that allows you to