summaryrefslogtreecommitdiff
path: root/dev-libs/crypto++/crypto++-8.9.0.ebuild
diff options
context:
space:
mode:
authorAlfred Wingate <parona@protonmail.com>2025-01-16 14:06:33 +0200
committerSam James <sam@gentoo.org>2025-01-24 04:07:29 +0000
commit5b6aa89fa6ca47a57a2d04253d91d6f648e0cf20 (patch)
tree92ba4d514f93100870fab6c7a9c23075f18b8750 /dev-libs/crypto++/crypto++-8.9.0.ebuild
parentbafff5f118b918924547e4c7a1394e05b57041b3 (diff)
downloadgentoo-5b6aa89fa6ca47a57a2d04253d91d6f648e0cf20.tar.gz
gentoo-5b6aa89fa6ca47a57a2d04253d91d6f648e0cf20.tar.bz2
gentoo-5b6aa89fa6ca47a57a2d04253d91d6f648e0cf20.zip
dev-libs/crypto++: add openmp support
Signed-off-by: Alfred Wingate <parona@protonmail.com> Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-libs/crypto++/crypto++-8.9.0.ebuild')
-rw-r--r--dev-libs/crypto++/crypto++-8.9.0.ebuild15
1 files changed, 13 insertions, 2 deletions
diff --git a/dev-libs/crypto++/crypto++-8.9.0.ebuild b/dev-libs/crypto++/crypto++-8.9.0.ebuild
index ff53d102d69b..17b26d94ceab 100644
--- a/dev-libs/crypto++/crypto++-8.9.0.ebuild
+++ b/dev-libs/crypto++/crypto++-8.9.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -30,7 +30,7 @@ LICENSE="Boost-1.0"
# verify with abidiff!
SLOT="0/${PV}"
KEYWORDS="~alpha amd64 ~arm arm64 ~hppa ~loong ~mips ppc ppc64 ~riscv sparc x86 ~x64-macos"
-IUSE="+asm static-libs"
+IUSE="+asm openmp static-libs"
BDEPEND="
app-arch/unzip
@@ -41,6 +41,14 @@ config_uncomment() {
sed -i -e "s://\s*\(#define\s*$1\):\1:" config.h || die
}
+pkg_pretend() {
+ [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
+}
+
+pkg_setup() {
+ [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
+}
+
src_prepare() {
default
@@ -56,6 +64,9 @@ src_configure() {
export PREFIX="${EPREFIX}/usr"
tc-export AR RANLIB
+ # https://github.com/cryfs/cryfs/issues/369#issuecomment-1030678487
+ use openmp && append-flags -fopenmp
+
# Long history of correctness bugs:
# https://github.com/weidai11/cryptopp/issues/1134
# https://github.com/weidai11/cryptopp/issues/1141