summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Bar-Lev <alonbl@gentoo.org>2016-10-08 04:29:59 +0300
committerAlon Bar-Lev <alonbl@gentoo.org>2016-10-08 04:29:59 +0300
commit5321db4aed716bfe5e638808c874469392e2c524 (patch)
tree6750efb0c255335f51be24654d8c42f2e27ce7c2 /dev-libs/crypto++
parentdev-lang/maude: Add USE="cxx" dep for dev-lang/maude-2.7 (diff)
downloadgentoo-5321db4aed716bfe5e638808c874469392e2c524.tar.gz
gentoo-5321db4aed716bfe5e638808c874469392e2c524.tar.bz2
gentoo-5321db4aed716bfe5e638808c874469392e2c524.zip
dev-libs/crypto++: set CXX also for install
Bug: 596500 Package-Manager: portage-2.3.0
Diffstat (limited to 'dev-libs/crypto++')
-rw-r--r--dev-libs/crypto++/crypto++-5.6.4-r1.ebuild22
1 files changed, 10 insertions, 12 deletions
diff --git a/dev-libs/crypto++/crypto++-5.6.4-r1.ebuild b/dev-libs/crypto++/crypto++-5.6.4-r1.ebuild
index 6444560ef5b7..ef464877de44 100644
--- a/dev-libs/crypto++/crypto++-5.6.4-r1.ebuild
+++ b/dev-libs/crypto++/crypto++-5.6.4-r1.ebuild
@@ -18,11 +18,17 @@ IUSE="static-libs"
DEPEND="app-arch/unzip"
S="${WORKDIR}"
+
PATCHES=(
- # Building with -march=native breaks when one wants to build for older CPUs.
"${FILESDIR}/${P}-nonative.patch"
)
+pkg_setup() {
+ export CXX="$(tc-getCXX)"
+ export LIBDIR="${EPREFIX}/usr/$(get_libdir)"
+ export PREFIX="${EPREFIX}/usr"
+}
+
src_configure() {
cp config.recommend config.h || die
}
@@ -33,11 +39,7 @@ src_compile() {
# ASM isn't Darwin/Mach-O ready, #479554, buildsys doesn't grok CPPFLAGS
[[ ${CHOST} == *-darwin* ]] && append-flags -DCRYPTOPP_DISABLE_X86ASM
- CXX="$(tc-getCXX)" \
- emake -f GNUmakefile \
- LIBDIR="${EPREFIX}/usr/$(get_libdir)" \
- PREFIX="${EPREFIX}/usr" \
- all shared
+ emake -f GNUmakefile all shared
}
src_test() {
@@ -47,7 +49,7 @@ src_test() {
edos2unix "${file}"
done
- if ! CXX="$(tc-getCXX)" emake test ; then
+ if ! emake test; then
eerror "Crypto++ self-tests failed."
eerror "Try to remove some optimization flags and reemerge Crypto++."
die "emake test failed"
@@ -55,11 +57,7 @@ src_test() {
}
src_install() {
- emake \
- DESTDIR="${ED}" \
- PREFIX="${EPREFIX}/usr" \
- LIBDIR="${EPREFIX}/usr/$(get_libdir)" \
- install
+ emake DESTDIR="${ED}" install
# remove leftovers as build system sucks
rm -fr "${ED}"/usr/bin "${ED}"/usr/share/cryptopp