Gentoo Archives: gentoo-commits

From: Craig Andrews <candrews@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/neon/
Date: Sat, 28 Mar 2020 21:24:09
Message-Id: 1585430637.e7a8ba6c462a6bef46161c92164a6952bc95c5f4.candrews@gentoo
1 commit: e7a8ba6c462a6bef46161c92164a6952bc95c5f4
2 Author: Craig Andrews <candrews <AT> gentoo <DOT> org>
3 AuthorDate: Tue Mar 24 16:57:59 2020 +0000
4 Commit: Craig Andrews <candrews <AT> gentoo <DOT> org>
5 CommitDate: Sat Mar 28 21:23:57 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e7a8ba6c
7
8 net-libs/neon: 0.31.0 version bump
9
10 Closes: https://bugs.gentoo.org/714244
11 Package-Manager: Portage-2.3.95, Repoman-2.3.21
12 Signed-off-by: Craig Andrews <candrews <AT> gentoo.org>
13 Closes: https://github.com/gentoo/gentoo/pull/15088
14 Signed-off-by: Craig Andrews <candrews <AT> gentoo.org>
15
16 net-libs/neon/Manifest | 1 +
17 net-libs/neon/neon-0.31.0.ebuild | 113 +++++++++++++++++++++++++++++++++++++++
18 2 files changed, 114 insertions(+)
19
20 diff --git a/net-libs/neon/Manifest b/net-libs/neon/Manifest
21 index b9f9331f7b1..3265a723407 100644
22 --- a/net-libs/neon/Manifest
23 +++ b/net-libs/neon/Manifest
24 @@ -1 +1,2 @@
25 DIST neon-0.30.2.tar.gz 932779 BLAKE2B 0536e4f1c8634ede9a1806180c315772a65b9cb1ead0ae3674d58aba855905b6a7c7684ef930ca1998c1163c662d642a687cc704922981dbc4a89efaa83f4cd9 SHA512 634caf87522e0bd2695c6fba39cae2465e403f9fbd8007eb10e4e035c765d24cb8da932c67bfa35c34aa51b90c7bc7037ebebaa1ec43259366d5d07233efc631
26 +DIST neon-0.31.0.tar.gz 867476 BLAKE2B 84981d0fcca97bfa495f9e8cbf060a06e04c931ce3b5eca41ff1d76a47fd863139b8bf3e102c5e4e8d22d5cffcebc64cee9b8f746f8d6669f0cbccf124fed9cc SHA512 62c55e16609d657ac56bb4a2fd32a10ffa72d5694aa1369be533491a6683034ed42843d5f19ed06cf8c1b7b8ba11b74f9839cdfeef4afc3b2d7b11372ed85cd2
27
28 diff --git a/net-libs/neon/neon-0.31.0.ebuild b/net-libs/neon/neon-0.31.0.ebuild
29 new file mode 100644
30 index 00000000000..cc502e8e761
31 --- /dev/null
32 +++ b/net-libs/neon/neon-0.31.0.ebuild
33 @@ -0,0 +1,113 @@
34 +# Copyright 2001-2020 Gentoo Authors
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +EAPI=7
38 +
39 +inherit autotools libtool multilib-minimal
40 +
41 +DESCRIPTION="HTTP and WebDAV client library"
42 +HOMEPAGE="http://webdav.org/neon/"
43 +SRC_URI="http://webdav.org/neon/${P}.tar.gz"
44 +
45 +LICENSE="GPL-2"
46 +SLOT="0/27"
47 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
48 +IUSE="doc expat gnutls kerberos libproxy libressl nls pkcs11 ssl static-libs zlib"
49 +RESTRICT="test"
50 +
51 +RDEPEND="expat? ( dev-libs/expat:0=[${MULTILIB_USEDEP}] )
52 + !expat? ( dev-libs/libxml2:2=[${MULTILIB_USEDEP}] )
53 + kerberos? ( virtual/krb5:0=[${MULTILIB_USEDEP}] )
54 + libproxy? ( net-libs/libproxy:0=[${MULTILIB_USEDEP}] )
55 + nls? ( virtual/libintl:0=[${MULTILIB_USEDEP}] )
56 + ssl? (
57 + gnutls? (
58 + app-misc/ca-certificates
59 + net-libs/gnutls:0=[${MULTILIB_USEDEP}]
60 + )
61 + !gnutls? (
62 + libressl? ( dev-libs/libressl:=[${MULTILIB_USEDEP}] )
63 + !libressl? ( dev-libs/openssl:0=[${MULTILIB_USEDEP}] )
64 + )
65 + pkcs11? ( dev-libs/pakchois:0=[${MULTILIB_USEDEP}] )
66 + )
67 + zlib? ( sys-libs/zlib:0=[${MULTILIB_USEDEP}] )"
68 +DEPEND="${RDEPEND}
69 + virtual/pkgconfig[${MULTILIB_USEDEP}]"
70 +
71 +MULTILIB_CHOST_TOOLS=(
72 + /usr/bin/neon-config
73 +)
74 +
75 +src_prepare() {
76 + # Use CHOST-prefixed version of xml2-config for cross-compilation.
77 + sed -e "s/AC_CHECK_PROG(XML2_CONFIG,/AC_CHECK_TOOL(XML2_CONFIG,/" -i macros/neon-xml-parser.m4 || die "sed failed"
78 +
79 + # Fix compatibility with OpenSSL >=1.1.
80 + sed -e "s/RSA_F_RSA_PRIVATE_ENCRYPT/RSA_F_RSA_OSSL_PRIVATE_ENCRYPT/" -i src/ne_pkcs11.c || die "sed failed"
81 +
82 + if has_version "<dev-libs/libressl-3.0.0"; then
83 + # Support LibreSSL.
84 + # Functions RSA_meth_get0_app_data() and RSA_meth_set0_app_data() are not implemented in LibreSSL 2.9.2.
85 + sed -e "1202s/#if OPENSSL_VERSION_NUMBER < 0x10100000L/& || defined(LIBRESSL_VERSION_NUMBER)/" -i src/ne_openssl.c || die "sed failed"
86 + sed -e "97a #if defined(LIBRESSL_VERSION_NUMBER)\nstatic void *RSA_meth_get0_app_data(const RSA_METHOD *meth)\n{\n return meth->app_data;\n}\nstatic int RSA_meth_set0_app_data(RSA_METHOD *meth, void *app_data)\n{\n meth->app_data = app_data;\n return 1;\n}\n#endif" -i src/ne_pkcs11.c || die "sed failed"
87 + fi
88 +
89 + eapply_user
90 +
91 + AT_M4DIR="macros" eautoreconf
92 +
93 + elibtoolize
94 +
95 + multilib_copy_sources
96 +}
97 +
98 +multilib_src_configure() {
99 + local myconf=()
100 +
101 + if has_version sys-libs/glibc; then
102 + einfo "Enabling SSL library thread-safety using POSIX threads..."
103 + myconf+=(--enable-threadsafe-ssl=posix)
104 + fi
105 +
106 + if use expat; then
107 + myconf+=(--with-expat)
108 + else
109 + myconf+=(--with-libxml2)
110 + fi
111 +
112 + if use ssl; then
113 + if use gnutls; then
114 + myconf+=(--with-ssl=gnutls --with-ca-bundle="${EPREFIX}/etc/ssl/certs/ca-certificates.crt")
115 + else
116 + myconf+=(--with-ssl=openssl)
117 + fi
118 + fi
119 +
120 + econf \
121 + --enable-shared \
122 + $(use_with kerberos gssapi) \
123 + $(use_with libproxy) \
124 + $(use_enable nls) \
125 + $(use_with pkcs11 pakchois) \
126 + $(use_enable static-libs static) \
127 + $(use_with zlib) \
128 + "${myconf[@]}"
129 +}
130 +
131 +multilib_src_install() {
132 + emake DESTDIR="${D}" install-{config,headers,lib,man,nls}
133 +
134 + if multilib_is_native_abi && use doc; then
135 + (
136 + docinto html
137 + dodoc -r doc/html/*
138 + )
139 + fi
140 +}
141 +
142 +multilib_src_install_all() {
143 + find "${D}" -name "*.la" -type f -delete || die
144 +
145 + dodoc AUTHORS BUGS NEWS README THANKS TODO
146 +}