blob: 8d087a41f6ab07a41c5abef765639410b112a7b2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-mail/lbdb/lbdb-0.37.ebuild,v 1.2 2010/11/12 21:14:23 hwoarang Exp $
EAPI=3
inherit versionator eutils
MY_P=${P/-/_}
DESCRIPTION="Little Brother database"
SRC_URI="http://www.spinnaker.de/debian/${MY_P}.tar.gz"
HOMEPAGE="http://www.spinnaker.de/lbdb/"
SLOT="0"
KEYWORDS="~alpha amd64 ~ppc ~sparc ~x86"
LICENSE="GPL-2"
IUSE="pda ldap finger nis abook crypt evo"
DEPEND="dev-libs/libvformat
evo? ( mail-client/evolution )
finger? ( net-misc/netkit-fingerd )
abook? ( app-misc/abook )
crypt? ( app-crypt/gnupg )
nis? ( net-nds/yp-tools )"
RDEPEND="${DEPEND}
pda? ( dev-perl/p5-Palm )
ldap? ( dev-perl/perl-ldap )"
src_configure() {
local evoversion
local evolution_addressbook_export
if use evo ; then
evoversion=$(best_version mail-client/evolution)
evoversion=${evoversion##mail-client/evolution-}
evolution_addressbook_export="/usr/libexec/evolution/$(get_version_component_range 1-2 ${evoversion})/evolution-addressbook-export"
fi
econf $(use_with finger) \
$(use_with abook) \
$(use_with nis ypcat) \
$(use_with crypt gpg) \
$(use_with evo evolution-addressbook-export "${evolution_addressbook_export}" ) \
--enable-lbdb-dotlock \
--without-pgp5 --without-pgp \
--without-niscat --without-addr-email --with-getent \
--libdir=/usr/$(get_libdir)/lbdb
}
src_install () {
emake install_prefix="${D}" install || die
dodoc README TODO debian/changelog
}
|