1 |
commit: f717474a782311cf1c0632cf1692989e44bdd8e4 |
2 |
Author: Alon Bar-Lev <alonbl <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Oct 23 05:12:18 2018 +0000 |
4 |
Commit: Alon Bar-Lev <alonbl <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Oct 23 05:15:20 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f717474a |
7 |
|
8 |
dev-libs/crypto++: config using config.h modification |
9 |
|
10 |
Thanks: Alexander Tsoy |
11 |
Closes: https://bugs.gentoo.org/show_bug.cgi?id=669288 |
12 |
Signed-off-by: Alon Bar-Lev <alonbl <AT> gentoo.org> |
13 |
Package-Manager: Portage-2.3.49, Repoman-2.3.11 |
14 |
RepoMan-Options: --force |
15 |
|
16 |
.../{crypto++-7.0.0-r2.ebuild => crypto++-7.0.0-r3.ebuild} | 13 ++++++++++--- |
17 |
1 file changed, 10 insertions(+), 3 deletions(-) |
18 |
|
19 |
diff --git a/dev-libs/crypto++/crypto++-7.0.0-r2.ebuild b/dev-libs/crypto++/crypto++-7.0.0-r3.ebuild |
20 |
similarity index 78% |
21 |
rename from dev-libs/crypto++/crypto++-7.0.0-r2.ebuild |
22 |
rename to dev-libs/crypto++/crypto++-7.0.0-r3.ebuild |
23 |
index 20edcd1e66f..00541d4446d 100644 |
24 |
--- a/dev-libs/crypto++/crypto++-7.0.0-r2.ebuild |
25 |
+++ b/dev-libs/crypto++/crypto++-7.0.0-r3.ebuild |
26 |
@@ -18,19 +18,26 @@ BDEPEND="app-arch/unzip" |
27 |
|
28 |
S="${WORKDIR}" |
29 |
|
30 |
+config_uncomment() { |
31 |
+ sed -i -e "s://\s*\(#define\s*$1\):\1:" config.h || die |
32 |
+} |
33 |
+ |
34 |
pkg_setup() { |
35 |
export CXX="$(tc-getCXX)" |
36 |
export LIBDIR="${EPREFIX}/usr/$(get_libdir)" |
37 |
export PREFIX="${EPREFIX}/usr" |
38 |
} |
39 |
|
40 |
-src_compile() { |
41 |
+src_prepare() { |
42 |
+ default |
43 |
|
44 |
- use asm || append-cxxflags -DCRYPTOPP_DISABLE_ASM |
45 |
+ use asm || config_uncomment CRYPTOPP_DISABLE_ASM |
46 |
|
47 |
# ASM isn't Darwin/Mach-O ready, #479554, buildsys doesn't grok CPPFLAGS |
48 |
- [[ ${CHOST} == *-darwin* ]] && append-cxxflags -DCRYPTOPP_DISABLE_ASM |
49 |
+ [[ ${CHOST} == *-darwin* ]] && config_uncomment CRYPTOPP_DISABLE_ASM |
50 |
+} |
51 |
|
52 |
+src_compile() { |
53 |
emake -f GNUmakefile all shared libcryptopp.pc |
54 |
} |