blob: 24587dcec1dbf4023af3dba29070de01aa502411 (
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
|
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-libs/liboauth/liboauth-0.9.4.ebuild,v 1.2 2011/09/24 15:10:42 grobian Exp $
EAPI=3
DESCRIPTION="C library implementing the OAuth secure authentication protocol"
HOMEPAGE="http://liboauth.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz
http://liboauth.sourceforge.net/pool/${P}.tar.gz"
LICENSE="|| ( GPL-2 MIT )"
SLOT="0"
KEYWORDS="~amd64 ~x86 ~x64-macos"
IUSE="curl doc bindist +nss"
CDEPEND="
nss? ( dev-libs/nss
curl? ( || ( net-misc/curl[ssl,nss,-gnutls] net-misc/curl[-ssl] ) )
)
bindist? ( dev-libs/nss
curl? ( || ( net-misc/curl[ssl,nss,-gnutls] net-misc/curl[-ssl] ) )
)
!bindist? (
!nss? ( dev-libs/openssl
curl? ( || ( net-misc/curl[ssl,-nss,-gnutls] net-misc/curl[-ssl] ) )
)
)
net-misc/curl
"
RDEPEND="${CDEPEND}"
DEPEND="${CDEPEND}
doc? (
app-doc/doxygen
media-gfx/graphviz
media-fonts/freefont-ttf
)
dev-util/pkgconfig"
src_configure() {
local myconf=
if use nss || use bindist; then
myconf="${myconf} --enable-nss"
else
myconf="${myconf} --disable-nss"
fi
econf \
--disable-dependency-tracking \
--enable-fast-install \
--disable-static \
$(use_enable !curl curl) \
$(use_enable curl libcurl) \
${myconf}
}
src_compile() {
emake || die "emake failed"
if use doc ; then
# make sure fonts are found
export DOTFONTPATH="${EPREFIX}"/usr/share/fonts/freefont-ttf
emake dox || die "emake dox failed"
fi
}
src_test() {
# explicitly allow parallel test build
emake check || die "emake check failed"
}
src_install() {
emake DESTDIR="${D}" install || die "install failed"
find "${D}" -name '*.la' -delete || die
dodoc AUTHORS ChangeLog LICENSE.OpenSSL NEWS README || die "dodoc failed"
if use doc; then
dohtml -r doc/html/* || die "dohtml failed"
fi
}
|