/[gentoo-x86]/sys-libs/tdb/tdb-1.2.1.ebuild
Gentoo

Contents of /sys-libs/tdb/tdb-1.2.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10 - (show annotations) (download)
Fri Apr 1 20:33:03 2011 UTC (3 years, 8 months ago) by arfrever
Branch: MAIN
Changes since 1.9: +2 -3 lines
Fix dependencies.

(Portage version: 2.2.0_alpha29_p5/cvs/Linux x86_64)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-libs/tdb/tdb-1.2.1.ebuild,v 1.9 2011/04/01 15:04:52 vostorga Exp $
4
5 EAPI="2"
6 PYTHON_DEPEND="python? 2:2.6"
7 inherit autotools python
8
9 DESCRIPTION="Samba tdb"
10 HOMEPAGE="http://tdb.samba.org/"
11 SRC_URI="http://samba.org/ftp/tdb/${P}.tar.gz"
12 LICENSE="GPL-3"
13 SLOT="0"
14 KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 s390 sh sparc x86"
15 IUSE="python static-libs tools tdbtest"
16
17 RDEPEND="!!<sys-libs/tdb-1.2.1"
18 DEPEND="!<net-fs/samba-libs-3.4
19 !<net-fs/samba-3.3
20 app-text/docbook-xsl-stylesheets
21 dev-libs/libxslt"
22
23 pkg_setup() {
24 if use python; then
25 # Make sure the build system will use the right python bug #360033
26 python_set_active_version 2
27 python_pkg_setup
28 fi
29 }
30
31 src_prepare() {
32 eautoconf -Ilibreplace
33 sed -i \
34 -e 's:$(SHLD_FLAGS) :$(SHLD_FLAGS) $(LDFLAGS) :' \
35 Makefile.in || die "sed failed"
36
37 # xsltproc will display a warning but we can assume the xml files are valid
38 sed -i \
39 -e 's|$(XSLTPROC) -o|$(XSLTPROC) --nonet -o|' \
40 tdb.mk || die "sed failed"
41 }
42
43 src_configure() {
44 econf \
45 --sysconfdir=/etc/samba \
46 --localstatedir=/var \
47 $(use_enable python)
48 }
49
50 src_compile() {
51 # TODO:
52 # - don't build static-libs in case of USE=-static-libs
53
54 # we create the directories first to avoid workaround parallel build problem
55 emake dirs || die "emake dirs failed"
56
57 emake shared-build || die "emake shared-build failed"
58
59 if use tdbtest ; then
60 emake bin/tdbtest || die "emake tdbtest failed"
61 fi
62 }
63
64 src_install() {
65 emake install DESTDIR="${D}" || die "emake install failed"
66
67 # installs a necessary symlink
68 dolib.so sharedbuild/lib/libtdb.so
69
70 dodoc docs/README
71
72 use static-libs || rm -f "${D}"/usr/lib*/*.a
73 use tools || rm -rf "${D}/usr/bin"
74 use tdbtest && dobin bin/tdbtest
75 use python && python_need_rebuild
76 }
77
78 src_test() {
79 # the default src_test runs 'make test' and 'make check', letting
80 # the tests fail occasionally (reason: unknown)
81 emake check || die "emake check failed"
82 }

  ViewVC Help
Powered by ViewVC 1.1.20