/[gentoo-x86]/dev-libs/libhome/libhome-0.10.2.ebuild
Gentoo

Contents of /dev-libs/libhome/libhome-0.10.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Mon Jan 10 19:50:30 2011 UTC (4 years, 7 months ago) by flameeyes
Branch: MAIN
Changes since 1.2: +9 -5 lines
Allow libhome to build against berkdb 5.0 as well as any 4.x version, by letting db-use provide the library name instead. Closes bug #340669.

(Portage version: 2.2.0_alpha14/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/dev-libs/libhome/libhome-0.10.2.ebuild,v 1.2 2010/06/17 21:32:16 patrick Exp $
4
5 inherit autotools db-use eutils
6
7 DESCRIPTION="libhome is a library providing a getpwnam() emulation"
8 HOMEPAGE="http://pll.sourceforge.net"
9 SRC_URI="mirror://sourceforge/pll/${P}.tar.gz"
10
11 LICENSE="LGPL-2"
12 SLOT="0"
13 KEYWORDS="~amd64 ~x86"
14 IUSE="berkdb ldap mysql pam postgres"
15
16 DEPEND="berkdb? ( >=sys-libs/db-4 )
17 ldap? ( net-nds/openldap )
18 mysql? ( virtual/mysql )
19 pam? ( virtual/pam )
20 postgres? ( dev-db/postgresql-server )"
21 RDEPEND="${DEPEND}"
22
23 src_unpack() {
24 unpack ${A}
25 cd "${S}"
26 rm -f aclocal.m4
27
28 epatch "${FILESDIR}"/${PN}-0.10.2-Makefile.patch
29 epatch "${FILESDIR}"/${PN}-0.10.2-ldap_deprecated.patch
30
31 # bug 225579
32 sed -i -e 's:\<VERSION\>:__PKG_VERSION:' configure.in
33
34 sed -i -e '/AC_SEARCH_LIBS.*db4/s: db-4.* db4:'$(db_libname)':' \
35 configure.in
36
37 eautoreconf
38 }
39
40 src_compile() {
41 econf --without-db3 \
42 $(use_with berkdb db4 $(db_includedir)) \
43 $(use_with ldap) \
44 $(use_with mysql) \
45 $(use_with pam) \
46 $(use_with postgres pgsql) \
47 || die "econf failed"
48 emake || die "emake failed"
49 }
50
51 src_install() {
52 emake DESTDIR="${D}" install || die "make install failed"
53 }

  ViewVC Help
Powered by ViewVC 1.1.20