diff options
author | Dane Smith <smitdane@gmail.com> | 2010-08-13 20:12:33 -0400 |
---|---|---|
committer | Dane Smith <smitdane@gmail.com> | 2010-08-13 20:12:33 -0400 |
commit | d4e7247493299ae3ef5068e4ae12e1a780047f2d (patch) | |
tree | 8c523114e0ce783267cf5f2aaf776ec5a9453dc8 /sys-libs/tdb/tdb-1.2.1.ebuild | |
parent | New ebuild for mouseremote (diff) | |
download | smithdanea-d4e7247493299ae3ef5068e4ae12e1a780047f2d.tar.gz smithdanea-d4e7247493299ae3ef5068e4ae12e1a780047f2d.tar.bz2 smithdanea-d4e7247493299ae3ef5068e4ae12e1a780047f2d.zip |
Updated tdb
Diffstat (limited to 'sys-libs/tdb/tdb-1.2.1.ebuild')
-rw-r--r-- | sys-libs/tdb/tdb-1.2.1.ebuild | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/sys-libs/tdb/tdb-1.2.1.ebuild b/sys-libs/tdb/tdb-1.2.1.ebuild new file mode 100644 index 0000000..7c64ab6 --- /dev/null +++ b/sys-libs/tdb/tdb-1.2.1.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-libs/tdb/tdb-1.2.1.ebuild,v 1.8 2010/08/12 01:14:43 josejx Exp $ + +EAPI="2" + +inherit autotools python + +DESCRIPTION="Samba tdb" +HOMEPAGE="http://tdb.samba.org/" +SRC_URI="http://samba.org/ftp/tdb/${P}.tar.gz" +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 s390 sh sparc x86" +IUSE="python static-libs tools tdbtest" + +RDEPEND="" +DEPEND="python? ( dev-lang/python ) + !<net-fs/samba-libs-3.4 + !<net-fs/samba-3.3 + app-text/docbook-xsl-stylesheets + dev-libs/libxslt" + +src_prepare() { + eautoconf -Ilibreplace + sed -i \ + -e 's:$(SHLD_FLAGS) :$(SHLD_FLAGS) $(LDFLAGS) :' \ + {Makefile.in,tdb.mk} || die "sed failed" + + # xsltproc will display a warning but we can assume the xml files are valid + sed -i \ + -e 's|$(XSLTPROC) -o|$(XSLTPROC) --nonet -o|' \ + tdb.mk || die "sed failed" +} + +src_configure() { + econf \ + --sysconfdir=/etc/samba \ + --localstatedir=/var \ + $(use_enable python) +} + +src_compile() { + # TODO: + # - don't build static-libs in case of USE=-static-libs + + # we create the directories first to avoid workaround parallel build problem + emake dirs || die "emake dirs failed" + + emake shared-build || die "emake shared-build failed" + + if use tdbtest ; then + emake bin/tdbtest || die "emake tdbtest failed" + fi +} + +src_install() { + emake install DESTDIR="${D}" || die "emake install failed" + + # installs a necessary symlink + dolib.so sharedbuild/lib/libtdb.so + + dodoc docs/README + + use static-libs || rm -f "${D}"/usr/lib*/*.a + use tools || rm -rf "${D}/usr/bin" + use tdbtest && dobin bin/tdbtest + use python && python_need_rebuild +} + +src_test() { + # the default src_test runs 'make test' and 'make check', letting + # the tests fail occasionally (reason: unknown) + emake check || die "emake check failed" +} |