diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /net-libs/neon |
reinit the tree, so we can have metadata
Diffstat (limited to 'net-libs/neon')
-rw-r--r-- | net-libs/neon/Manifest | 5 | ||||
-rw-r--r-- | net-libs/neon/metadata.xml | 28 | ||||
-rw-r--r-- | net-libs/neon/neon-0.30.2.ebuild | 106 |
3 files changed, 139 insertions, 0 deletions
diff --git a/net-libs/neon/Manifest b/net-libs/neon/Manifest new file mode 100644 index 000000000000..c1e70d36b7b1 --- /dev/null +++ b/net-libs/neon/Manifest @@ -0,0 +1,5 @@ +DIST neon-0.30.2.tar.gz 932779 SHA256 db0bd8cdec329b48f53a6f00199c92d5ba40b0f015b153718d1b15d3d967fbca SHA512 634caf87522e0bd2695c6fba39cae2465e403f9fbd8007eb10e4e035c765d24cb8da932c67bfa35c34aa51b90c7bc7037ebebaa1ec43259366d5d07233efc631 WHIRLPOOL 977464fc686727dcbdb9def45159d783586fceb289c0eca937429ae3d2b39d9c6bb63a5029be566107d415718ee6ab315b8167c02b3093884757932f89e3b704 +EBUILD neon-0.30.2.ebuild 3128 SHA256 b420c94b931a6e464ca05542ca8f5a99c0635da6c976e4f5bff35462be49dd50 SHA512 86d28f120e7b93c8f97b30d56af4d958f6fab995a42f34f20b8ad5a3726417d2fce639477ec40ca63bab80a29ad88057295f26ef1e2e2e10c3f0d4cec1f9992a WHIRLPOOL c4ded72cd4a5d9aa41595a7bcd9045a87c66d8c6be5a6046eabe3abb9d70d53698ab90e33ef2644823ffd882cfa1da762d69b129bcbd73217163b1c73150e256 +MISC ChangeLog 2978 SHA256 d6bcf15f494f2667aa656484387e0a1f6064a73d6792b441e95de2a207e9b632 SHA512 2c534ecc28c62bd491bb54fe167a961e638eb7936d142deecb541b28e859468b13f0ac924d8b9e60b8305215f346e8c2c6e60855ea32fdf1b9a0988d85d463e2 WHIRLPOOL 44d29e8346f8890437b8ec8f75eb23e1a052a794e77393efd028897a305334973e117fd84cea13cb3a2d5acdc1b2706db305201a62a5d89c6c0a2784b86e4716 +MISC ChangeLog-2015 31847 SHA256 ab3bbb573c3cd07b4c972b79709b122889ed035d627a6e708c625162d7b448e9 SHA512 cfd16b7395871ead63c2663d4b6720352793ae82b812a8a08c250130369d1a22eff9f89ad9bdfcfad712b21d5a4c1eb08dcb8d73591d77283b12971d413d0e3f WHIRLPOOL b1489af506ce49a70e0c9d37e4c5056600df59f5546c952157b8d5d5f161e1c8944113d883a6a08a857da32a4111de519b74f21fb09b7a21121ae252025c4e1a +MISC metadata.xml 1325 SHA256 92c8434ab86813f91edfb9c64d1f2f6ee4e266e3a7cf511e283e7bc75cd01a8a SHA512 a72fda6b0efb657be3baaef37bbca017d460de56697de367a31d1e9241bf0aaa36e105b3c0128f8aa0a7ec0bec123c1a2a4be98c539cceea1c6d255be79ea8b2 WHIRLPOOL fc33d132d313e610cac225b0680dd90a527c1413b607debec05a8a3ec33779a472ef34141c507fac4f817c306585ddab4b404b60dcb1bde11fc5fbd80a7712c8 diff --git a/net-libs/neon/metadata.xml b/net-libs/neon/metadata.xml new file mode 100644 index 000000000000..b79ca1ecbc48 --- /dev/null +++ b/net-libs/neon/metadata.xml @@ -0,0 +1,28 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>arfrever.fta@gmail.com</email> + </maintainer> + <maintainer type="project"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> + <longdescription> + Neon is an HTTP and WebDAV client library for Unix systems, with a C + language API. It provides high-level interfaces to HTTP/1.1 and WebDAV + methods, and a low-level interface to HTTP request/response handling, + allowing new methods to be easily implemented. + </longdescription> + <longdescription lang="ja"> + neon は Unix システムにおける HTTP 及び WebDAV クライアント・ライブラリ + であり、C言語 API です。HTTP/1.1 及び WebDAV のメソッドという高い視点 + でのインターフェイス、HTTP リクエスト/レスポンス のハンドリングという + 低い視点でのインターフェイス、簡単に実装できるようにした新しいメソッド + といったものを提供します。 + </longdescription> + <use> + <flag name="libproxy">Add support for <pkg>net-libs/libproxy</pkg></flag> + <flag name="pkcs11">Add support for PKCS#11 using <pkg>dev-libs/pakchois</pkg></flag> + </use> +</pkgmetadata> diff --git a/net-libs/neon/neon-0.30.2.ebuild b/net-libs/neon/neon-0.30.2.ebuild new file mode 100644 index 000000000000..aad391df5fee --- /dev/null +++ b/net-libs/neon/neon-0.30.2.ebuild @@ -0,0 +1,106 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" + +inherit autotools libtool multilib-minimal + +DESCRIPTION="HTTP and WebDAV client library" +HOMEPAGE="http://www.webdav.org/neon/" +SRC_URI="http://www.webdav.org/neon/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0/27" +KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="doc expat gnutls kerberos libproxy libressl nls pkcs11 ssl static-libs zlib" +RESTRICT="test" + +RDEPEND="expat? ( dev-libs/expat:0=[${MULTILIB_USEDEP}] ) + !expat? ( dev-libs/libxml2:2=[${MULTILIB_USEDEP}] ) + gnutls? ( + app-misc/ca-certificates + net-libs/gnutls:0=[${MULTILIB_USEDEP}] + pkcs11? ( dev-libs/pakchois:0=[${MULTILIB_USEDEP}] ) + ) + !gnutls? ( ssl? ( + libressl? ( dev-libs/libressl:=[${MULTILIB_USEDEP}] ) + !libressl? ( dev-libs/openssl:0=[${MULTILIB_USEDEP}] ) + pkcs11? ( dev-libs/pakchois:0=[${MULTILIB_USEDEP}] ) + ) ) + kerberos? ( virtual/krb5:0=[${MULTILIB_USEDEP}] ) + libproxy? ( net-libs/libproxy:0=[${MULTILIB_USEDEP}] ) + nls? ( virtual/libintl:0=[${MULTILIB_USEDEP}] ) + zlib? ( sys-libs/zlib:0=[${MULTILIB_USEDEP}] )" +DEPEND="${RDEPEND} + virtual/pkgconfig[${MULTILIB_USEDEP}]" + +MULTILIB_CHOST_TOOLS=( + /usr/bin/neon-config +) + +src_prepare() { + # Use CHOST-prefixed version of xml2-config for cross-compilation. + sed -e "s/AC_CHECK_PROG(XML2_CONFIG,/AC_CHECK_TOOL(XML2_CONFIG,/" -i macros/neon-xml-parser.m4 || die "sed failed" + + # Use OpenSSL <1.1 compatibility code with LibreSSL. + # Functions EVP_PKEY_up_ref(), EVP_PKEY_get0_RSA(), RSA_meth_get0_app_data(), RSA_meth_new(), RSA_meth_free(), + # RSA_meth_set_priv_enc(), RSA_meth_set0_app_data() are not implemented in LibreSSL 2.5.1. + sed -e "s/#if OPENSSL_VERSION_NUMBER < 0x10100000L/& || defined(LIBRESSL_VERSION_NUMBER)/" -i src/ne_openssl.c src/ne_pkcs11.c || die "sed failed" + + eapply_user + + AT_M4DIR="macros" eautoreconf + + elibtoolize + + multilib_copy_sources +} + +multilib_src_configure() { + local myconf=() + + 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 gnutls; then + myconf+=(--with-ssl=gnutls --with-ca-bundle="${EPREFIX}/etc/ssl/certs/ca-certificates.crt") + elif use ssl; then + myconf+=(--with-ssl=openssl) + fi + + econf \ + --docdir="${EPREFIX}/usr/share/doc/${PF}" \ + --enable-shared \ + $(use_with kerberos gssapi) \ + $(use_with libproxy) \ + $(use_enable nls) \ + $(use_with pkcs11 pakchois) \ + $(use_enable static-libs static) \ + $(use_with zlib) \ + "${myconf[@]}" +} + +multilib_src_install() { + emake DESTDIR="${D}" install-{config,headers,lib,man,nls} + + if multilib_is_native_abi && use doc; then + ( + docinto html + dodoc -r doc/html/* + ) + fi +} + +multilib_src_install_all() { + find "${ED}" -name "*.la" -delete + + dodoc AUTHORS BUGS NEWS README THANKS TODO +} |