diff options
Diffstat (limited to 'dev-libs/xmlsec/xmlsec-1.2.19.ebuild')
-rw-r--r-- | dev-libs/xmlsec/xmlsec-1.2.19.ebuild | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/dev-libs/xmlsec/xmlsec-1.2.19.ebuild b/dev-libs/xmlsec/xmlsec-1.2.19.ebuild new file mode 100644 index 000000000000..0b9b229b9297 --- /dev/null +++ b/dev-libs/xmlsec/xmlsec-1.2.19.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/xmlsec/xmlsec-1.2.19.ebuild,v 1.1 2013/05/02 07:19:09 radhermit Exp $ + +EAPI=5 + +inherit eutils autotools + +DESCRIPTION="Command line tool for signing, verifying, encrypting and decrypting XML" +HOMEPAGE="http://www.aleksey.com/xmlsec" +SRC_URI="http://www.aleksey.com/xmlsec/download/${PN}1-${PV}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~sparc ~x86" +IUSE="doc gcrypt gnutls nss +openssl static-libs" +REQUIRED_USE="|| ( gcrypt gnutls nss openssl ) + gnutls? ( gcrypt )" + +RDEPEND=">=dev-libs/libxml2-2.7.4 + >=dev-libs/libxslt-1.0.20 + gcrypt? ( >=dev-libs/libgcrypt-1.4.0 ) + gnutls? ( >=net-libs/gnutls-2.8.0 ) + nss? ( + >=dev-libs/nspr-4.4.1 + >=dev-libs/nss-3.9 + ) + openssl? ( >=dev-libs/openssl-0.9.7 )" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +S=${WORKDIR}/${PN}1-${PV} + +src_prepare() { + # conditionally install extra documentation + if ! use doc ; then + sed -i '/^SUBDIRS/s/docs//' Makefile.am || die + eautoreconf + fi +} + +src_configure() { + econf \ + $(use_enable static-libs static) \ + $(use_with gcrypt gcrypt "") \ + $(use_with gnutls gnutls "") \ + $(use_with nss nspr "") \ + $(use_with nss nss "") \ + $(use_enable openssl aes) \ + $(use_with openssl openssl "") \ + --enable-pkgconfig \ + --enable-xkms \ + --with-html-dir=/usr/share/doc/${PF}/html +} + +src_test() { + emake TMPFOLDER="${T}" check +} + +src_install() { + default + prune_libtool_files +} |