diff options
Diffstat (limited to 'sys-libs/tdb/tdb-1.1.5-r1.ebuild')
-rw-r--r-- | sys-libs/tdb/tdb-1.1.5-r1.ebuild | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/sys-libs/tdb/tdb-1.1.5-r1.ebuild b/sys-libs/tdb/tdb-1.1.5-r1.ebuild new file mode 100644 index 000000000000..1204a925bc58 --- /dev/null +++ b/sys-libs/tdb/tdb-1.1.5-r1.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-libs/tdb/tdb-1.1.5-r1.ebuild,v 1.1 2009/10/23 16:55:31 patrick Exp $ + +EAPI="2" + +inherit confutils eutils autotools + +DESCRIPTION="Samba tdb" +HOMEPAGE="http://tdb.samba.org/" +SRC_URI="http://samba.org/ftp/tdb/${P}.tar.gz" +LICENSE="GPL-3" +IUSE="python tools tdbtest" +SLOT="0" +KEYWORDS="~amd64 ~hppa ~ppc64 ~x86" + +DEPEND=" + !net-fs/samba-libs[tdb] + !<net-fs/samba-libs-3.4 + " +RDEPEND="${DEPEND}" + +BINPROGS="bin/tdbdump bin/tdbtool bin/tdbbackup" + +src_prepare() { + eautoconf -Ilibreplace + sed -e 's:$(SHLD_FLAGS) :$(SHLD_FLAGS) $(LDFLAGS) :' -i Makefile.in || die "sed failed" +} + +src_configure() { + + econf \ + --sysconfdir=/etc/samba \ + --localstatedir=/var \ + $(use_enable python) \ + || die "econf failed" + +} + +src_compile() { + + emake dirs || die "emake dirs failed" + emake showflags || die "emake showflags failed" + emake shared-build || die "emake shared-build failed" + if use tools ; then emake ${BINPROGS} || die "emake binaries failed"; fi + if use python ; then emake build-python || die "emake build-python failed"; fi + if use tdbtest ; then make bin/tdbtest || die "emake tdbtest failed"; fi + +} + +src_install() { + + dolib.a sharedbuild/lib/libtdb.a + dolib.so sharedbuild/lib/libtdb.so + + if use python || use tools ; then + emake install DESTDIR="${D}" || die "emake install failed" + fi + + if ! use tools ; then + for prog in ${BINPROGS} ; do + rm -f "${D}/usr/${prog}" + done + fi + + if use tdbtest ; then + dobin bin/tdbtest + fi + +} |