summaryrefslogtreecommitdiff
path: root/net-libs/neon
diff options
context:
space:
mode:
Diffstat (limited to 'net-libs/neon')
-rw-r--r--net-libs/neon/Manifest2
-rw-r--r--net-libs/neon/neon-0.33.0.ebuild111
2 files changed, 113 insertions, 0 deletions
diff --git a/net-libs/neon/Manifest b/net-libs/neon/Manifest
index ad7871e84056..12f3f3473351 100644
--- a/net-libs/neon/Manifest
+++ b/net-libs/neon/Manifest
@@ -1,5 +1,7 @@
AUX neon-0.32.4-dash.patch 1623 BLAKE2B 2fd32e83980e666bfd00eb77e6862c31e32fd09c7de96b67c1026949a8c71a3fcb8eda4e1d208bf066640c650aed0ba3c8370a261feb188e044e22d5a04cae52 SHA512 0abb34501dbed1d78a0b520528ad8aafd51be7413d99a5fbd41e7cd5fd97156b1d5de67f607f5943237d4a924247c0d45749bb05846fcdfc3f0ab5d38e97c326
AUX neon-0.32.4-libressl.patch 2504 BLAKE2B 9da49e993145110b798711b5059857d21a4f24ee3fa0cad290bd6773446716c3bbb29c4eca59c1c944ec461998ec230ea7f0689fdaf20d97967952e598e4d45f SHA512 e17d1d7ac3faa2faf25f541d20c6c21659d43d98db908076a246b6d39cabe520efac76f40df0f6a4162c6f36599a91318000d739b162a741cdbd846b97ab7875
DIST neon-0.32.4.tar.gz 895482 BLAKE2B 917f17739976e159bf91f7c594e59c96bb8b92e39c19f5c881354c11951233d3157f6871e4ebc073d493170844e516acc36be4787dbe2005c33b1ec84ae0d364 SHA512 82bcd1555f047d26cc5ccd67d2fef8dea4eb5a4cc45ca8030d2f3c356eee03fd78efd7ef45f516948e89f1089686731046b3fe48e73b3d84c65848ef6d86bd7a
+DIST neon-0.33.0.tar.gz 912146 BLAKE2B 8457e0203fcfbd9209718d139169780898f823d71b950f370f8880c5ec97c7bc5d300b8485803f75e2531a3f58fe6eb78ac5d7a82f57f12078513a3bfd0223b3 SHA512 b214ed34cd832dfaf3af08d4bdbe459c3e791f691548a6d44ee0cdc9811856185522bcbd6c2aca9a536fc021a2ed6329bd093cb3435cc40e3cfd9f5af8b92644
EBUILD neon-0.32.4-r1.ebuild 2614 BLAKE2B 78c2e82fe6d714ef6d6dc6b023eca24cbd8a8c4d1b8543c6c8d94a7a8cdb491f2a9fa834b4607b6027e9bfea6dcb2286a99e86f79119313be7e521af625fef23 SHA512 d72f53490b384de31f158a57af2de358c090d02ab1bc6ecaa8c59595cf01a078344841f8153bffe59cfa2014d3df0d1f01558ee2e3ca2f70903b1a9a899a086c
+EBUILD neon-0.33.0.ebuild 2473 BLAKE2B 0a2b2f378049cee5ae0fba16991bc77574d5f37761f703ff0f4a5146c1883401fe6c93adb457d0b5bd3e5ca1cb2e587259d4fcdc93cdf7d16e04692c2771bd6a SHA512 f635981589b3f75003c37e619a290e4da3bc6ba6d127de0370617678dfb5496337f5cc28972760edf8e93ea4fc63fc0e342c0ecfdfa6c24e54f6911f4de6e389
MISC metadata.xml 1219 BLAKE2B 2d80de452aeeeae8734661146b0b648625b8a9b7e894d245f9369fa29e37beba2dc2296d5bb61d66c555cffb24efcb1b37bf0d43c7f84db5395e105380045570 SHA512 21b29abf1945d60aa9ab20916508c6800cb67823f8706bc4198279f727854c0a8956c3f223af30c5149a9f23c9ebedaabe26afe35712fda490f268fe954ec1dc
diff --git a/net-libs/neon/neon-0.33.0.ebuild b/net-libs/neon/neon-0.33.0.ebuild
new file mode 100644
index 000000000000..4f5ede0e48f4
--- /dev/null
+++ b/net-libs/neon/neon-0.33.0.ebuild
@@ -0,0 +1,111 @@
+# Copyright 2001-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools libtool multilib-minimal
+
+DESCRIPTION="HTTP and WebDAV client library"
+HOMEPAGE="https://notroj.github.io/neon/ https://github.com/notroj/neon"
+SRC_URI="https://notroj.github.io/neon/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0/27"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris"
+IUSE="+expat gnutls kerberos libproxy nls pkcs11 ssl test zlib"
+RESTRICT="!test? ( test )"
+
+DEPEND="
+ expat? ( dev-libs/expat:0=[${MULTILIB_USEDEP}] )
+ !expat? ( dev-libs/libxml2:2=[${MULTILIB_USEDEP}] )
+ kerberos? ( virtual/krb5:0=[${MULTILIB_USEDEP}] )
+ libproxy? ( net-libs/libproxy:0=[${MULTILIB_USEDEP}] )
+ nls? ( virtual/libintl:0=[${MULTILIB_USEDEP}] )
+ ssl? (
+ gnutls? (
+ app-misc/ca-certificates
+ net-libs/gnutls:0=[${MULTILIB_USEDEP}]
+ )
+ !gnutls? ( dev-libs/openssl:0=[${MULTILIB_USEDEP}] )
+ pkcs11? ( dev-libs/pakchois:0=[${MULTILIB_USEDEP}] )
+ )
+ zlib? ( sys-libs/zlib:0=[${MULTILIB_USEDEP}] )
+"
+RDEPEND="${DEPEND}"
+BDEPEND="
+ virtual/pkgconfig
+ test? (
+ ssl? (
+ dev-libs/openssl:0
+ pkcs11? ( dev-libs/nss )
+ )
+ )
+"
+
+MULTILIB_CHOST_TOOLS=(
+ /usr/bin/neon-config
+)
+
+DOCS=( AUTHORS BUGS NEWS README.md THANKS TODO )
+HTML_DOCS=( doc/html/. )
+
+src_prepare() {
+ if use gnutls; then
+ # Ignore failure of test pkcs11.
+ # https://github.com/notroj/neon/issues/72
+ sed -e "s/T(pkcs11)/T_XFAIL(pkcs11)/" -i test/ssl.c || die
+ fi
+
+ default
+
+ AT_M4DIR="macros" eautoreconf
+
+ elibtoolize
+
+ multilib_copy_sources
+}
+
+multilib_src_configure() {
+ local myconf=(
+ --enable-shared
+ $(use_with kerberos gssapi)
+ $(use_with libproxy)
+ $(use_enable nls)
+ $(use_with pkcs11 pakchois)
+ $(use_with zlib)
+ )
+
+ if has_version sys-libs/glibc; then
+ einfo "Enabling SSL library thread-safety using POSIX threads..."
+ myconf+=( --enable-threadsafe-ssl=posix )
+ fi
+
+ if use expat; then
+ myconf+=( --with-expat )
+ else
+ myconf+=( --with-libxml2 )
+ fi
+
+ if use ssl; then
+ if use gnutls; then
+ myconf+=(
+ --with-ssl=gnutls
+ --with-ca-bundle="${EPREFIX}/etc/ssl/certs/ca-certificates.crt"
+ )
+ else
+ myconf+=( --with-ssl=openssl )
+ fi
+ fi
+
+ econf "${myconf[@]}"
+}
+
+multilib_src_install() {
+ emake DESTDIR="${D}" install-{config,headers,lib,man,nls}
+}
+
+multilib_src_install_all() {
+ find "${ED}" -name "*.la" -delete || die
+
+ einstalldocs
+}