/[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.1 - (hide annotations) (download)
Fri Apr 9 19:04:44 2010 UTC (4 years, 8 months ago) by dev-zero
Branch: MAIN
Version bump.
(Portage version: 2.2_rc67/cvs/Linux x86_64)

1 dev-zero 1.1 # Copyright 1999-2010 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.0-r2.ebuild,v 1.1 2010/04/03 19:56:24 dev-zero Exp $
4    
5     EAPI="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=""
18     DEPEND="python? ( dev-lang/python )
19     !<net-fs/samba-libs-3.4
20     !<net-fs/samba-3.3"
21    
22     src_prepare() {
23     eautoconf -Ilibreplace
24     sed -i \
25     -e 's:$(SHLD_FLAGS) :$(SHLD_FLAGS) $(LDFLAGS) :' \
26     Makefile.in || die "sed failed"
27     }
28    
29     src_configure() {
30     econf \
31     --sysconfdir=/etc/samba \
32     --localstatedir=/var \
33     $(use_enable python)
34     }
35    
36     src_compile() {
37     # TODO:
38     # - don't build static-libs in case of USE=-static-libs
39    
40     # we create the directories first to avoid workaround parallel build problem
41     emake dirs || die "emake dirs failed"
42    
43     emake shared-build || die "emake shared-build failed"
44    
45     if use tdbtest ; then
46     emake bin/tdbtest || die "emake tdbtest failed"
47     fi
48     }
49    
50     src_install() {
51     emake install DESTDIR="${D}" || die "emake install failed"
52    
53     # installs a necessary symlink
54     dolib.so sharedbuild/lib/libtdb.so
55    
56     dodoc docs/README
57    
58     use static-libs || rm -f "${D}"/usr/lib*/*.a
59     use tools || rm -rf "${D}/usr/bin"
60     use tdbtest && dobin bin/tdbtest
61     use python && python_need_rebuild
62     }
63    
64     src_test() {
65     # the default src_test runs 'make test' and 'make check', letting
66     # the tests fail occasionally (reason: unknown)
67     emake check || die "emake check failed"
68     }

  ViewVC Help
Powered by ViewVC 1.1.20