blob: f8f137742bec0313f9d58cc46213931623652d4f (
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
|
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/xmlsec/xmlsec-1.2.2.ebuild,v 1.1 2004/01/04 11:33:43 aliz Exp $
DESCRIPTION="xmlsec is a command line tool for signing, verifying, encrypting and decrypting XML documents based on LibXML2 and OpenSSL. The library supports major XML security standards."
HOMEPAGE="http://www.aleksey.com/xmlsec"
KEYWORDS="~x86 ~amd64"
LICENSE="MIT"
DEPEND=">=sys-devel/autoconf-2.2
>=dev-libs/libxml2-2.4.2
>=dev-libs/libxslt-1.0.20
ssl? ( >=dev-libs/openssl-0.9.6c )
>=net-libs/gnutls-0.8.1
mozilla? ( >=dev-libs/nspr-4.0
>=dev-libs/nss-3.2 )"
SRC_URI="http://www.aleksey.com/xmlsec/download/${PN}1-${PV}.tar.gz"
S=${WORKDIR}/${PN}1-${PV}
IUSE="ssl mozilla"
SLOT="0"
src_unpack() {
unpack ${A} ; cd ${S}
epatch ${FILESDIR}/${P}-nss-nspr-configure.in.patch
}
src_compile() {
autoconf
local myconf
if [ "`use ssl`" ] && [ "`best_version openssl | awk -F- '{print $3}' | sed 's/[a-z]//'`" == "0.9.7" ]; then
myconf="--enable-aes"
else
myconf="--disable-aes"
fi
myconf="$myconf --enable-xkms --disable-pkgconfig --enable-gnutls `use_with mozilla nss` `use_with mozilla nspr` \
`use_enable ssl openssl` --with-html-dir=${D}/usr/share/doc/${PF}"
econf ${myconf} || die "configure failed"
emake || die "emake failed"
}
src_install() {
einstall || die "install failed"
dodoc AUTHORS COPYING INSTALL README NEWS
}
|