1 # Copyright 1999-2017 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 inherit eutils autotools
9 DESCRIPTION="Command line tool for signing, verifying, encrypting and decrypting XML"
10 HOMEPAGE="http://www.aleksey.com/xmlsec"
11 SRC_URI="http://www.aleksey.com/xmlsec/download/${PN}1-${PV}.tar.gz"
15 KEYWORDS="amd64 ppc ~ppc64 ~sparc x86"
16 IUSE="doc gcrypt gnutls nss +openssl static-libs"
17 REQUIRED_USE="|| ( gcrypt gnutls nss openssl )
20 RDEPEND=">=dev-libs/libxml2-2.7.4
21 >=dev-libs/libxslt-1.0.20
22 gcrypt? ( >=dev-libs/libgcrypt-1.4.0:0 )
23 gnutls? ( >=net-libs/gnutls-2.8.0 )
28 openssl? ( >=dev-libs/openssl-0.9.7:* )"
32 S=${WORKDIR}/${PN}1-${PV}
35 # conditionally install extra documentation
37 sed -i '/^SUBDIRS/s/docs//' Makefile.am || die
44 $(use_enable static-libs static) \
45 $(use_with gcrypt gcrypt "") \
46 $(use_with gnutls gnutls "") \
47 $(use_with nss nspr "") \
48 $(use_with nss nss "") \
49 $(use_enable openssl aes) \
50 $(use_with openssl openssl "") \
53 --with-html-dir=/usr/share/doc/${PF}/html
57 emake TMPFOLDER="${T}" check