summaryrefslogtreecommitdiff
path: root/dev-db
diff options
context:
space:
mode:
authorMike Lothian <mike@fireburn.co.uk>2018-06-11 17:06:08 +0100
committerMaxim Koltsov <maksbotan@gentoo.org>2018-06-12 16:17:39 +0300
commit4b77702ccc87959b43990a8b50253b80b1a2ea53 (patch)
tree8a81d8dbf76471930640cc8d98b4403434735f28 /dev-db
parentnet-misc/networkmanager-fortisslvpn: add missing gdbus-codegen DEPEND (diff)
downloadgentoo-4b77702ccc87959b43990a8b50253b80b1a2ea53.tar.gz
gentoo-4b77702ccc87959b43990a8b50253b80b1a2ea53.tar.bz2
gentoo-4b77702ccc87959b43990a8b50253b80b1a2ea53.zip
dev-db/lmdb: Make ebuild multilib
Diffstat (limited to 'dev-db')
-rw-r--r--dev-db/lmdb/lmdb-0.9.21-r1.ebuild (renamed from dev-db/lmdb/lmdb-0.9.21.ebuild)32
1 files changed, 17 insertions, 15 deletions
diff --git a/dev-db/lmdb/lmdb-0.9.21.ebuild b/dev-db/lmdb/lmdb-0.9.21-r1.ebuild
index c8ac76bcd7cd..4a0589b13fe3 100644
--- a/dev-db/lmdb/lmdb-0.9.21.ebuild
+++ b/dev-db/lmdb/lmdb-0.9.21-r1.ebuild
@@ -2,7 +2,7 @@
# Distributed under the terms of the GNU General Public License v2
EAPI=6
-inherit toolchain-funcs flag-o-matic multilib
+inherit toolchain-funcs flag-o-matic multilib-minimal
DESCRIPTION="An ultra-fast, ultra-compact key-value embedded data store"
HOMEPAGE="http://symas.com/mdb/"
@@ -20,21 +20,23 @@ RDEPEND="!=net-nds/openldap-2.4.40"
S="${WORKDIR}/${PN}-LMDB_${PV}/libraries/liblmdb"
src_prepare() {
- local soname="-Wl,-soname,liblmdb$(get_libname 0)"
- [[ ${CHOST} == *-darwin* ]] && \
- soname="-dynamiclib -install_name ${EPREFIX}/usr/$(get_libdir)/liblmdb$(get_libname 0)"
- sed -i -e "s!^CC.*!CC = $(tc-getCC)!" \
- -e "s!^CFLAGS.*!CFLAGS = ${CFLAGS}!" \
- -e "s!^AR.*!AR = $(tc-getAR)!" \
- -e "s!^SOEXT.*!SOEXT = $(get_libname)!" \
- -e "/^prefix/s!/usr/local!${EPREFIX}/usr!" \
- -e "/^libdir/s!lib\$!$(get_libdir)!" \
- -e "s!shared!shared ${soname}!" \
- "${S}/Makefile" || die
eapply_user
+ multilib_copy_sources
}
-src_configure() {
+multilib_src_configure() {
+ local soname="-Wl,-soname,liblmdb$(get_libname 0)"
+ [[ ${CHOST} == *-darwin* ]] && \
+ soname="-dynamiclib -install_name ${EPREFIX}/usr/$(get_libdir)/liblmdb$(get_libname 0)"
+ sed -i -e "s!^CC.*!CC = $(tc-getCC)!" \
+ -e "s!^CFLAGS.*!CFLAGS = ${CFLAGS}!" \
+ -e "s!^AR.*!AR = $(tc-getAR)!" \
+ -e "s!^SOEXT.*!SOEXT = $(get_libname)!" \
+ -e "/^prefix/s!/usr/local!${EPREFIX}/usr!" \
+ -e "/^libdir/s!lib\$!$(get_libdir)!" \
+ -e "s!shared!shared ${soname}!" \
+ "Makefile" || die
+
if [[ ${CHOST} == *-solaris* ]] ; then
# ensure sigwait has a second sig argument
append-cppflags -D_POSIX_PTHREAD_SEMANTICS
@@ -43,11 +45,11 @@ src_configure() {
fi
}
-src_compile() {
+multilib_src_compile() {
emake LDLIBS+=" -pthread"
}
-src_install() {
+multilib_src_install() {
emake DESTDIR="${D}" install
mv "${ED}"usr/$(get_libdir)/liblmdb$(get_libname) \