diff options
author | Sam James <sam@gentoo.org> | 2023-09-14 04:53:11 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2023-09-14 04:55:08 +0100 |
commit | 20c656742979f17385161643e03e9d7a64d3d72d (patch) | |
tree | 8adcbda7aa5143f4e8364012aab8ef58ee72fa64 /net-libs/liboauth | |
parent | net-misc/curl: drop old configure args (diff) | |
download | gentoo-20c656742979f17385161643e03e9d7a64d3d72d.tar.gz gentoo-20c656742979f17385161643e03e9d7a64d3d72d.tar.bz2 gentoo-20c656742979f17385161643e03e9d7a64d3d72d.zip |
net-libs/liboauth: adapt to curl dropping NSS support
Upstream recommended NSS in the past for licencing reasons but w/ OpenSSL 3 that's
no longer a problem, plus curl >= 8.3 doesn't support NSS anymore.
* In stable (r1->r2), just adapt in the naive way wrt USE dep default on curl
now the flag is gone for NSS.
*
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'net-libs/liboauth')
-rw-r--r-- | net-libs/liboauth/liboauth-1.0.3-r2.ebuild (renamed from net-libs/liboauth/liboauth-1.0.3-r1.ebuild) | 2 | ||||
-rw-r--r-- | net-libs/liboauth/liboauth-1.0.3-r3.ebuild | 78 |
2 files changed, 79 insertions, 1 deletions
diff --git a/net-libs/liboauth/liboauth-1.0.3-r1.ebuild b/net-libs/liboauth/liboauth-1.0.3-r2.ebuild index 6a60bfa23920..5e47ba416dae 100644 --- a/net-libs/liboauth/liboauth-1.0.3-r1.ebuild +++ b/net-libs/liboauth/liboauth-1.0.3-r2.ebuild @@ -25,7 +25,7 @@ RDEPEND=" nss? ( dev-libs/nss curl? ( || ( - net-misc/curl[ssl,curl_ssl_nss] + net-misc/curl[ssl,curl_ssl_nss(-)] net-misc/curl[-ssl] ) ) ) diff --git a/net-libs/liboauth/liboauth-1.0.3-r3.ebuild b/net-libs/liboauth/liboauth-1.0.3-r3.ebuild new file mode 100644 index 000000000000..a1ed30b8023b --- /dev/null +++ b/net-libs/liboauth/liboauth-1.0.3-r3.ebuild @@ -0,0 +1,78 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DESCRIPTION="C library implementing the OAuth secure authentication protocol" +HOMEPAGE="https://liboauth.sourceforge.io/" +SRC_URI="mirror://sourceforge/project/${PN}/${P}.tar.gz" + +LICENSE="|| ( GPL-2 MIT )" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86 ~x64-macos" +# Upstream recommended NSS in the past for licencing reasons but w/ OpenSSL 3 that's +# no longer a problem, plus curl >= 8.3 doesn't support NSS anymore. +IUSE="bindist curl doc nss" +REQUIRED_USE="bindist? ( nss )" + +PATCHES=( + "${FILESDIR}"/${PN}-1.0.1-doxygen-out-of-tree.patch + "${FILESDIR}"/${PN}-1.0.3-openssl-1.1.patch + "${FILESDIR}"/${PN}-1.0.3-openssl-1.1_2.patch +) + +# TODO: Drop curl + nss support entirely given it doesn't make sense anymore +RDEPEND=" + curl? ( net-misc/curl ) + nss? ( + dev-libs/nss + curl? ( || ( + net-misc/curl[ssl,curl_ssl_nss(-)] + net-misc/curl[-ssl] + ) ) + ) + !nss? ( + >=dev-libs/openssl-3:= + curl? ( || ( + net-misc/curl[ssl,curl_ssl_openssl] + net-misc/curl[-ssl] + ) ) + ) +" +DEPEND="${RDEPEND}" +BDEPEND=" + virtual/pkgconfig + doc? ( + app-doc/doxygen + media-gfx/graphviz + media-fonts/freefont + ) +" + +DOCS=( AUTHORS ChangeLog LICENSE.OpenSSL README ) + +src_configure() { + local myeconfargs=( + --disable-static + $(use_enable !curl curl) + $(use_enable curl libcurl) + $(use_enable nss) + ) + econf "${myeconfargs[@]}" +} + +src_compile() { + default + + if use doc ; then + # make sure fonts are found + export DOTFONTPATH="${EPREFIX}"/usr/share/fonts/freefont-ttf + emake dox + fi +} + +src_install() { + use doc && HTML_DOCS=( doc/html/. ) + default + find "${ED}" -name "*.la" -delete || die +} |