summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2016-07-09 12:44:39 -0700
committerZac Medico <zmedico@gentoo.org>2016-07-09 12:48:19 -0700
commit39e01c5b19a9eaafee10b1e893729b3d3636fbac (patch)
treec50d24a1f91cfd6d10d743035563422bd59540f9
parent362f25093d479d69fab1209fbf647ea6dc9f2520 (diff)
downloadgentoo-39e01c5b19a9eaafee10b1e893729b3d3636fbac.tar.gz
gentoo-39e01c5b19a9eaafee10b1e893729b3d3636fbac.tar.xz
dev-db/lmdb: fix prefix bugs
Package-Manager: portage-2.3.0
-rw-r--r--dev-db/lmdb/lmdb-0.9.18.ebuild6
1 files changed, 3 insertions, 3 deletions
diff --git a/dev-db/lmdb/lmdb-0.9.18.ebuild b/dev-db/lmdb/lmdb-0.9.18.ebuild
index ec5a839495f..b58fb5cbd13 100644
--- a/dev-db/lmdb/lmdb-0.9.18.ebuild
+++ b/dev-db/lmdb/lmdb-0.9.18.ebuild
@@ -24,7 +24,7 @@ src_prepare() {
sed -i -e "s!^CC.*!CC = $(tc-getCC)!" \
-e "s!^CFLAGS.*!CFLAGS = ${CFLAGS}!" \
-e "s!^AR.*!AR = $(tc-getAR)!" \
- -e "/^prefix/s!/usr/local!${EROOT}usr!" \
+ -e "/^prefix/s!/usr/local!${EPREFIX}/usr!" \
-e "/^libdir/s!lib\$!$(get_libdir)!" \
-e "s!shared!shared -Wl,-soname,liblmdb.so.0!" \
"${S}/Makefile" || die
@@ -39,10 +39,10 @@ src_compile() {
}
src_install() {
- emake DESTDIR="${ED}" install
+ emake DESTDIR="${D}" install
mv "${ED}"usr/$(get_libdir)/liblmdb.so{,.0} || die
- dosym liblmdb.so.0 "${EROOT}"usr/$(get_libdir)/liblmdb.so
+ dosym liblmdb.so.0 /usr/$(get_libdir)/liblmdb.so
use static-libs || rm "${ED}"usr/$(get_libdir)/liblmdb.a || die
}