Gentoo Archives: gentoo-commits

From: "Anthony G. Basile" <blueness@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/xmlsec/
Date: Sat, 12 Aug 2017 21:56:00
Message-Id: 1502574937.ecbbe957fede6fc29cad915dde6aa6bb0ff8e09f.blueness@gentoo
1 commit: ecbbe957fede6fc29cad915dde6aa6bb0ff8e09f
2 Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
3 AuthorDate: Sat Aug 12 21:55:37 2017 +0000
4 Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
5 CommitDate: Sat Aug 12 21:55:37 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ecbbe957
7
8 dev-libs/xmlsec: add libressl support
9
10 Package-Manager: Portage-2.3.6, Repoman-2.3.1
11
12 dev-libs/xmlsec/xmlsec-1.2.24-r1.ebuild | 65 +++++++++++++++++++++++++++++++++
13 1 file changed, 65 insertions(+)
14
15 diff --git a/dev-libs/xmlsec/xmlsec-1.2.24-r1.ebuild b/dev-libs/xmlsec/xmlsec-1.2.24-r1.ebuild
16 new file mode 100644
17 index 00000000000..831e68a7e30
18 --- /dev/null
19 +++ b/dev-libs/xmlsec/xmlsec-1.2.24-r1.ebuild
20 @@ -0,0 +1,65 @@
21 +# Copyright 1999-2017 Gentoo Foundation
22 +# Distributed under the terms of the GNU General Public License v2
23 +
24 +EAPI=6
25 +
26 +inherit autotools ltprune
27 +
28 +DESCRIPTION="Command line tool for signing, verifying, encrypting and decrypting XML"
29 +HOMEPAGE="http://www.aleksey.com/xmlsec"
30 +SRC_URI="http://www.aleksey.com/xmlsec/download/${PN}1-${PV}.tar.gz"
31 +
32 +LICENSE="MIT"
33 +SLOT="0"
34 +KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~sparc ~x86"
35 +IUSE="doc gcrypt gnutls libressl nss +openssl static-libs"
36 +REQUIRED_USE="|| ( gcrypt gnutls nss openssl )
37 + gnutls? ( gcrypt )"
38 +
39 +RDEPEND=">=dev-libs/libxml2-2.7.4
40 + >=dev-libs/libxslt-1.0.20
41 + gcrypt? ( >=dev-libs/libgcrypt-1.4.0:0 )
42 + gnutls? ( >=net-libs/gnutls-2.8.0 )
43 + nss? (
44 + >=dev-libs/nspr-4.4.1
45 + >=dev-libs/nss-3.9
46 + )
47 + openssl? (
48 + !libressl? ( dev-libs/openssl:0= )
49 + libressl? ( dev-libs/libressl:0= )
50 + )"
51 +DEPEND="${RDEPEND}
52 + virtual/pkgconfig"
53 +
54 +S=${WORKDIR}/${PN}1-${PV}
55 +
56 +src_prepare() {
57 + default
58 + # conditionally install extra documentation
59 + if ! use doc ; then
60 + sed -i '/^SUBDIRS/s/docs//' Makefile.am || die
61 + eautoreconf
62 + fi
63 +}
64 +
65 +src_configure() {
66 + econf \
67 + --enable-pkgconfig \
68 + --with-html-dir=/usr/share/doc/${PF}/html \
69 + $(use_enable static-libs static) \
70 + $(use_with gcrypt gcrypt "") \
71 + $(use_with gnutls gnutls "") \
72 + $(use_with nss nspr "") \
73 + $(use_with nss nss "") \
74 + $(use_with openssl openssl "") \
75 + $(use_enable openssl aes)
76 +}
77 +
78 +src_test() {
79 + emake TMPFOLDER="${T}" check
80 +}
81 +
82 +src_install() {
83 + default
84 + prune_libtool_files --all
85 +}