1 |
# Copyright 1999-2011 Gentoo Foundation |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /var/cvsroot/gentoo-x86/net-misc/gsasl/gsasl-1.4.1.ebuild,v 1.4 2011/06/24 15:20:30 armin76 Exp $ |
4 |
|
5 |
DESCRIPTION="The GNU SASL client, server, and library" |
6 |
HOMEPAGE="http://www.gnu.org/software/gsasl/" |
7 |
SRC_URI="mirror://gnu/${PN}/${P}.tar.gz" |
8 |
LICENSE="GPL-3" |
9 |
SLOT="0" |
10 |
# TODO: check http://www.gnu.org/software/gsasl/#dependencies for more |
11 |
# optional external libraries. |
12 |
KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos" |
13 |
IUSE="kerberos nls static doc" |
14 |
DEPEND="nls? ( sys-devel/gettext ) |
15 |
kerberos? ( virtual/krb5 )" |
16 |
RDEPEND="${DEPEND}" |
17 |
|
18 |
src_compile() { |
19 |
econf \ |
20 |
--enable-client \ |
21 |
--enable-server \ |
22 |
--disable-valgrind-tests \ |
23 |
$(use_enable kerberos gssapi) \ |
24 |
$(use_enable nls) \ |
25 |
$(use_enable static) \ |
26 |
|| die "econf failed" |
27 |
emake || die "emake failed" |
28 |
} |
29 |
|
30 |
src_install() { |
31 |
make DESTDIR="${D}" install || die "einstall failed" |
32 |
dodoc AUTHORS ChangeLog NEWS README THANKS |
33 |
doman doc/gsasl.1 |
34 |
|
35 |
if use doc; then |
36 |
dodoc doc/*.{eps,ps,pdf} |
37 |
dohtml doc/*.html |
38 |
docinto examples |
39 |
dodoc examples/*.c |
40 |
fi |
41 |
} |