dev-libs/json-c: Change USE to cpu_flags_x86_rdrand

Closes: https://bugs.gentoo.org/724354
Package-Manager: Portage-2.3.99, Repoman-2.3.23
Signed-off-by: Francisco Blas Izquierdo Riera (klondike) <klondike@gentoo.org>
Closes: https://github.com/gentoo/gentoo/pull/16686
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
This commit is contained in:
Francisco Blas (klondike) Izquierdo Riera
2020-07-13 19:22:39 +02:00
committed by Joonas Niilola
parent fb58997e80
commit 7faeb8c0bc
3 changed files with 4 additions and 7 deletions

View File

@@ -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="cpu-flags-x86-rdrand doc static-libs threads"
IUSE="cpu_flags_x86_rdrand doc static-libs threads"
PATCHES=(
"${FILESDIR}/${PN}-0.14-cmake-static-libs.patch"
@@ -34,7 +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_RDRAND=$(usex cpu_flags_x86_rdrand)
-DENABLE_THREADING=$(usex threads)
)

View File

@@ -12,7 +12,7 @@ EGIT_REPO_URI="https://github.com/json-c/json-c.git"
LICENSE="MIT"
SLOT="0/5"
IUSE="cpu-flags-x86-rdrand doc static-libs threads"
IUSE="cpu_flags_x86_rdrand doc static-libs threads"
MULTILIB_WRAPPED_HEADERS=(
/usr/include/json-c/config.h
@@ -27,7 +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)
-DENABLE_RDRAND=$(usex cpu_flags_x86_rdrand)
-DBUILD_STATIC_LIBS=$(usex static-libs)
)

View File

@@ -13,9 +13,6 @@
<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">
JSON-C is a JSON implementation written in C. It implements a
reference counting object model that allows you to easily