Gentoo Archives: gentoo-commits

From: Julian Ospald <hasufell@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/neon/
Date: Sun, 04 Oct 2015 20:03:22
Message-Id: 1443988964.c996455f8a999b8c7d76c31e764cfe433b9a4964.hasufell@gentoo
1 commit: c996455f8a999b8c7d76c31e764cfe433b9a4964
2 Author: Julian Ospald <hasufell <AT> gentoo <DOT> org>
3 AuthorDate: Sun Oct 4 20:02:44 2015 +0000
4 Commit: Julian Ospald <hasufell <AT> gentoo <DOT> org>
5 CommitDate: Sun Oct 4 20:02:44 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c996455f
7
8 net-libs/neon: add libressl support
9
10 net-libs/neon/neon-0.30.1-r1.ebuild | 111 ++++++++++++++++++++++++++++++++++++
11 1 file changed, 111 insertions(+)
12
13 diff --git a/net-libs/neon/neon-0.30.1-r1.ebuild b/net-libs/neon/neon-0.30.1-r1.ebuild
14 new file mode 100644
15 index 0000000..c2b7f79
16 --- /dev/null
17 +++ b/net-libs/neon/neon-0.30.1-r1.ebuild
18 @@ -0,0 +1,111 @@
19 +# Copyright 1999-2015 Gentoo Foundation
20 +# Distributed under the terms of the GNU General Public License v2
21 +# $Id$
22 +
23 +EAPI="5"
24 +
25 +inherit autotools libtool multilib-minimal
26 +
27 +DESCRIPTION="HTTP and WebDAV client library"
28 +HOMEPAGE="http://www.webdav.org/neon/"
29 +SRC_URI="http://www.webdav.org/neon/${P}.tar.gz"
30 +
31 +LICENSE="GPL-2"
32 +SLOT="0/27"
33 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
34 +IUSE="doc expat gnutls kerberos libproxy libressl nls pkcs11 ssl static-libs zlib"
35 +IUSE_LINGUAS="cs de fr ja nn pl ru tr zh_CN"
36 +for lingua in ${IUSE_LINGUAS}; do
37 + IUSE+=" linguas_${lingua}"
38 +done
39 +unset lingua
40 +RESTRICT="test"
41 +
42 +RDEPEND="expat? ( dev-libs/expat:0=[${MULTILIB_USEDEP}] )
43 + !expat? ( dev-libs/libxml2:2=[${MULTILIB_USEDEP}] )
44 + gnutls? (
45 + app-misc/ca-certificates
46 + net-libs/gnutls:0=[${MULTILIB_USEDEP}]
47 + pkcs11? ( dev-libs/pakchois:0=[${MULTILIB_USEDEP}] )
48 + )
49 + !gnutls? ( ssl? (
50 + !libressl? ( dev-libs/openssl:0=[${MULTILIB_USEDEP}] )
51 + libressl? ( dev-libs/libressl:=[${MULTILIB_USEDEP}] )
52 + pkcs11? ( dev-libs/pakchois:0=[${MULTILIB_USEDEP}] )
53 + ) )
54 + kerberos? ( virtual/krb5:0=[${MULTILIB_USEDEP}] )
55 + libproxy? ( net-libs/libproxy:0=[${MULTILIB_USEDEP}] )
56 + nls? ( virtual/libintl:0=[${MULTILIB_USEDEP}] )
57 + zlib? ( sys-libs/zlib:0=[${MULTILIB_USEDEP}] )"
58 +DEPEND="${RDEPEND}
59 + virtual/pkgconfig[${MULTILIB_USEDEP}]"
60 +RDEPEND="${RDEPEND}
61 + abi_x86_32? (
62 + !<=app-emulation/emul-linux-x86-baselibs-20140508-r8
63 + !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
64 + )"
65 +
66 +MULTILIB_CHOST_TOOLS=(
67 + /usr/bin/neon-config
68 +)
69 +
70 +src_prepare() {
71 + local lingua linguas
72 + for lingua in ${IUSE_LINGUAS}; do
73 + use linguas_${lingua} && linguas+=" ${lingua}"
74 + done
75 + sed -e "s/ALL_LINGUAS=.*/ALL_LINGUAS=\"${linguas}\"/" -i configure.ac || die
76 +
77 + epatch "${FILESDIR}"/${P}-xml2-config.patch
78 + AT_M4DIR="macros" eautoreconf
79 +
80 + elibtoolize
81 +
82 + multilib_copy_sources
83 +}
84 +
85 +multilib_src_configure() {
86 + local myconf=()
87 +
88 + if has_version sys-libs/glibc; then
89 + einfo "Enabling SSL library thread-safety using POSIX threads..."
90 + myconf+=(--enable-threadsafe-ssl=posix)
91 + fi
92 +
93 + if use expat; then
94 + myconf+=(--with-expat)
95 + else
96 + myconf+=(--with-libxml2)
97 + fi
98 +
99 + if use gnutls; then
100 + myconf+=(--with-ssl=gnutls --with-ca-bundle="${EPREFIX}/etc/ssl/certs/ca-certificates.crt")
101 + elif use ssl; then
102 + myconf+=(--with-ssl=openssl)
103 + fi
104 +
105 + econf \
106 + --docdir="${EPREFIX}/usr/share/doc/${PF}" \
107 + --enable-shared \
108 + $(use_with kerberos gssapi) \
109 + $(use_with libproxy) \
110 + $(use_enable nls) \
111 + $(use_with pkcs11 pakchois) \
112 + $(use_enable static-libs static) \
113 + $(use_with zlib) \
114 + "${myconf[@]}"
115 +}
116 +
117 +multilib_src_install() {
118 + emake DESTDIR="${D}" install-{config,headers,lib,man,nls}
119 +
120 + if multilib_is_native_abi && use doc; then
121 + dohtml -r doc/html/
122 + fi
123 +}
124 +
125 +multilib_src_install_all() {
126 + find "${ED}" -name "*.la" -delete
127 +
128 + dodoc AUTHORS BUGS NEWS README THANKS TODO
129 +}