diff options
author | epsilonKNOT <gentoo@aisha.cc> | 2020-11-25 18:53:18 -0500 |
---|---|---|
committer | epsilonKNOT <gentoo@aisha.cc> | 2020-11-25 18:53:18 -0500 |
commit | 5dc0801d3a2aab77c8c4285404113a3ae5ad3275 (patch) | |
tree | 4420e9fcbca3f125bea52e4b83f93ea02db83c24 /net-libs | |
parent | */*: don't explicitly call xdg-utils functions (diff) | |
download | guru-5dc0801d3a2aab77c8c4285404113a3ae5ad3275.tar.gz guru-5dc0801d3a2aab77c8c4285404113a3ae5ad3275.tar.bz2 guru-5dc0801d3a2aab77c8c4285404113a3ae5ad3275.zip |
net-libs/usockets: allow linking libressl
Package-Manager: Portage-3.0.8, Repoman-3.0.2
Signed-off-by: Aisha Tammy <gentoo@aisha.cc>
Diffstat (limited to 'net-libs')
-rw-r--r-- | net-libs/usockets/usockets-0.6.0_p1-r1.ebuild (renamed from net-libs/usockets/usockets-0.6.0_p1.ebuild) | 21 | ||||
-rw-r--r-- | net-libs/usockets/usockets-9999.ebuild | 21 |
2 files changed, 22 insertions, 20 deletions
diff --git a/net-libs/usockets/usockets-0.6.0_p1.ebuild b/net-libs/usockets/usockets-0.6.0_p1-r1.ebuild index 1ebe7f131..bdd890be7 100644 --- a/net-libs/usockets/usockets-0.6.0_p1.ebuild +++ b/net-libs/usockets/usockets-0.6.0_p1-r1.ebuild @@ -20,10 +20,11 @@ fi LICENSE="Apache-2.0" SLOT="0" -IUSE="libuv +ssl static-libs" +IUSE="libuv libressl +ssl static-libs" DEPEND="ssl? ( - >=dev-libs/openssl-1.1.0:=[static-libs?] + !libressl? ( >=dev-libs/openssl-1.1.0[static-libs?] ) + libressl? ( dev-libs/libressl[static-libs?] ) ) libuv? ( dev-libs/libuv[static-libs?] ) " @@ -37,18 +38,18 @@ src_compile() { tc-export CC CXX # the Makefile uses environment variables emake VERSION=${PV} \ - LIB="$(get_libdir)" \ - WITH_OPENSSL=$(usex ssl 1 0) \ - WITH_LIBUV=$(usex libuv 1 0) \ - default + LIB="$(get_libdir)" \ + WITH_OPENSSL=$(usex ssl 1 0) \ + WITH_LIBUV=$(usex libuv 1 0) \ + default } src_install() { emake LIB="$(get_libdir)" \ - prefix="${EPREFIX%/}/usr" \ - DESTDIR="${D}" \ - VERSION=${PV} \ - install + prefix="${EPREFIX%/}/usr" \ + DESTDIR="${D}" \ + VERSION=${PV} \ + install einstalldocs if ! use static-libs; then rm -f "${ED}/usr/$(get_libdir)/libusockets.a" || die diff --git a/net-libs/usockets/usockets-9999.ebuild b/net-libs/usockets/usockets-9999.ebuild index 1ebe7f131..bdd890be7 100644 --- a/net-libs/usockets/usockets-9999.ebuild +++ b/net-libs/usockets/usockets-9999.ebuild @@ -20,10 +20,11 @@ fi LICENSE="Apache-2.0" SLOT="0" -IUSE="libuv +ssl static-libs" +IUSE="libuv libressl +ssl static-libs" DEPEND="ssl? ( - >=dev-libs/openssl-1.1.0:=[static-libs?] + !libressl? ( >=dev-libs/openssl-1.1.0[static-libs?] ) + libressl? ( dev-libs/libressl[static-libs?] ) ) libuv? ( dev-libs/libuv[static-libs?] ) " @@ -37,18 +38,18 @@ src_compile() { tc-export CC CXX # the Makefile uses environment variables emake VERSION=${PV} \ - LIB="$(get_libdir)" \ - WITH_OPENSSL=$(usex ssl 1 0) \ - WITH_LIBUV=$(usex libuv 1 0) \ - default + LIB="$(get_libdir)" \ + WITH_OPENSSL=$(usex ssl 1 0) \ + WITH_LIBUV=$(usex libuv 1 0) \ + default } src_install() { emake LIB="$(get_libdir)" \ - prefix="${EPREFIX%/}/usr" \ - DESTDIR="${D}" \ - VERSION=${PV} \ - install + prefix="${EPREFIX%/}/usr" \ + DESTDIR="${D}" \ + VERSION=${PV} \ + install einstalldocs if ! use static-libs; then rm -f "${ED}/usr/$(get_libdir)/libusockets.a" || die |