From d938920a33f03124f4e211a67d9291283442caa1 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Thu, 14 Sep 2023 10:46:43 +0100 Subject: gentoo auto-resync : 14:09:2023 - 10:46:43 --- net-libs/liboauth/liboauth-1.0.3-r2.ebuild | 76 ++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 net-libs/liboauth/liboauth-1.0.3-r2.ebuild (limited to 'net-libs/liboauth/liboauth-1.0.3-r2.ebuild') diff --git a/net-libs/liboauth/liboauth-1.0.3-r2.ebuild b/net-libs/liboauth/liboauth-1.0.3-r2.ebuild new file mode 100644 index 000000000000..5e47ba416dae --- /dev/null +++ b/net-libs/liboauth/liboauth-1.0.3-r2.ebuild @@ -0,0 +1,76 @@ +# 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 recommend NSS by default for licencing reasons (may change w/ openssl 3?) +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 +) + +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:= + 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 +} -- cgit v1.2.3