summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Lothian <mike@fireburn.co.uk>2018-06-11 17:06:40 +0100
committerMaxim Koltsov <maksbotan@gentoo.org>2018-06-12 16:20:17 +0300
commit015637d110b3f8faa568dd3177847f3c4e18fbd5 (patch)
tree7d6729e1ac71d2efe3f621587b0d2363a07e0ccc /sys-libs
parentdev-db/lmdb: Make ebuild multilib (diff)
downloadgentoo-015637d110b3f8faa568dd3177847f3c4e18fbd5.tar.gz
gentoo-015637d110b3f8faa568dd3177847f3c4e18fbd5.tar.bz2
gentoo-015637d110b3f8faa568dd3177847f3c4e18fbd5.zip
sys-libs/ldb: Add use flag for new lmdb backend
Bug: https://bugs.gentoo.org/657828
Diffstat (limited to 'sys-libs')
-rw-r--r--sys-libs/ldb/ldb-1.4.0-r1.ebuild (renamed from sys-libs/ldb/ldb-1.4.0.ebuild)4
-rw-r--r--sys-libs/ldb/metadata.xml14
2 files changed, 13 insertions, 5 deletions
diff --git a/sys-libs/ldb/ldb-1.4.0.ebuild b/sys-libs/ldb/ldb-1.4.0-r1.ebuild
index 2d0e99ba9c81..a42012a74531 100644
--- a/sys-libs/ldb/ldb-1.4.0.ebuild
+++ b/sys-libs/ldb/ldb-1.4.0-r1.ebuild
@@ -14,7 +14,7 @@ SRC_URI="http://www.samba.org/ftp/pub/${PN}/${P}.tar.gz"
LICENSE="LGPL-3"
SLOT="0/${PV}"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd"
-IUSE="doc +ldap +python"
+IUSE="doc +ldap +lmdb +python"
RDEPEND="
!elibc_FreeBSD? ( dev-libs/libbsd[${MULTILIB_USEDEP}] )
@@ -24,6 +24,7 @@ RDEPEND="
>=sys-libs/tdb-1.3.15[python?,${MULTILIB_USEDEP}]
>=sys-libs/tevent-0.9.36[python(+)?,${MULTILIB_USEDEP}]
ldap? ( net-nds/openldap )
+ lmdb? ( >=dev-db/lmdb-0.9.16[${MULTILIB_USEDEP}] )
python? ( ${PYTHON_DEPS} )
"
@@ -57,6 +58,7 @@ src_prepare() {
multilib_src_configure() {
local myconf=(
$(usex ldap '' --disable-ldap)
+ $(usex lmdb '' --without-ldb-lmdb)
--disable-rpath
--disable-rpath-install --bundled-libraries=NONE
--with-modulesdir="${EPREFIX}"/usr/$(get_libdir)/samba
diff --git a/sys-libs/ldb/metadata.xml b/sys-libs/ldb/metadata.xml
index 62c9222b8dd3..db4a710716a7 100644
--- a/sys-libs/ldb/metadata.xml
+++ b/sys-libs/ldb/metadata.xml
@@ -1,8 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
-<maintainer type="project">
- <email>samba@gentoo.org</email>
- <name>Samba</name>
-</maintainer>
+ <maintainer type="project">
+ <email>samba@gentoo.org</email>
+ <name>Samba</name>
+ </maintainer>
+ <use>
+ <flag name="doc">Builds documentation</flag>
+ <flag name="ldap">Enable LDAP support</flag>
+ <flag name="lmdb">Enable LMDB backend</flag>
+ <flag name="python">Enable Python support</flag>
+ </use>
</pkgmetadata>