diff --git a/net-libs/libcurl-debian/libcurl-debian-4.ebuild b/net-libs/libcurl-debian/libcurl-debian-4.ebuild new file mode 100644 index 0000000..6f61efa --- /dev/null +++ b/net-libs/libcurl-debian/libcurl-debian-4.ebuild @@ -0,0 +1,25 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +inherit multilib multilib-minimal + +DESCRIPTION="libcurl-{gnutls,nss}.so.${SLOT} symlinks for compatibility with Debian" +HOMEPAGE="https://curl.haxx.se/" +LICENSE="MIT" +SLOT="4" +KEYWORDS="~amd64 ~x86" + +RDEPEND=">=net-misc/curl-7.16.0[${MULTILIB_USEDEP}]" + +S="${WORKDIR}" + +multilib_src_install() { + local backend + + for backend in gnutls nss; do + dosym ../libcurl.so.${SLOT} /usr/$(get_libdir)/debiancompat/libcurl-${backend}.so.${SLOT} + done +} diff --git a/net-libs/libcurl-debian/metadata.xml b/net-libs/libcurl-debian/metadata.xml new file mode 100644 index 0000000..18cadf6 --- /dev/null +++ b/net-libs/libcurl-debian/metadata.xml @@ -0,0 +1,20 @@ + + + + + chewi@gentoo.org + James Le Cuirot + + + Unlike Gentoo, Debian allows multiple copies of libcurl built + against different backends to be installed simultaneously. For + reasons best known to themselves, some developers release + binaries linked against libcurl-gnutls.so instead of libcurl.so, + the latter being the OpenSSL variant. Although it is less than + ideal, real world usage has shown that symlinking from one to + the other doesn't cause any issues so this package provides such + a symlink to satisfy prebuilt binaries. Usage of libcurl-nss.so + seems less common but a symlink for that has also been included + for completeness. + +