diff options
author | Petr Vaněk <arkamar@atlas.cz> | 2020-10-08 17:03:31 +0200 |
---|---|---|
committer | Joonas Niilola <juippis@gentoo.org> | 2020-10-12 15:39:48 +0300 |
commit | 0bb3a5eb81aabd628ba03ec01486abc64e34e1a1 (patch) | |
tree | 8e716b40a4e795c6355e55b6f0016958cbe0cd81 /dev-libs/hiredis | |
parent | dev-vcs/tortoisehg: live-ebuild update (diff) | |
download | gentoo-0bb3a5eb81aabd628ba03ec01486abc64e34e1a1.tar.gz gentoo-0bb3a5eb81aabd628ba03ec01486abc64e34e1a1.tar.bz2 gentoo-0bb3a5eb81aabd628ba03ec01486abc64e34e1a1.zip |
dev-libs/hiredis: make ssl support available
Package-Manager: Portage-3.0.4, Repoman-3.0.1
Signed-off-by: Petr Vaněk <arkamar@atlas.cz>
Closes: https://github.com/gentoo/gentoo/pull/17853
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'dev-libs/hiredis')
-rw-r--r-- | dev-libs/hiredis/hiredis-1.0.0.ebuild | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/dev-libs/hiredis/hiredis-1.0.0.ebuild b/dev-libs/hiredis/hiredis-1.0.0.ebuild index f65824d561b9..d11dddc289cd 100644 --- a/dev-libs/hiredis/hiredis-1.0.0.ebuild +++ b/dev-libs/hiredis/hiredis-1.0.0.ebuild @@ -12,10 +12,12 @@ SRC_URI="https://github.com/redis/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" LICENSE="BSD" SLOT="0/1.0.0" KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86 ~x64-solaris" -IUSE="examples static-libs test" +IUSE="examples ssl static-libs test" RESTRICT="!test? ( test )" -DEPEND="test? ( dev-db/redis )" +DEPEND=" + ssl? ( dev-libs/openssl ) + test? ( dev-db/redis )" src_prepare() { local PATCHES=( @@ -33,6 +35,7 @@ _build() { CC="$(tc-getCC)" \ PREFIX="${EPREFIX}/usr" \ LIBRARY_PATH="$(get_libdir)" \ + USE_SSL=$(usex ssl 1 0) \ DEBUG_FLAGS= \ OPTIMIZATION= \ "$@" @@ -68,7 +71,8 @@ src_test() { src_install() { _build PREFIX="${ED}/usr" install if ! use static-libs; then - rm "${ED}/usr/$(get_libdir)/libhiredis.a" || die + rm "${ED}/usr/$(get_libdir)/libhiredis.a" \ + "${ED}/usr/$(get_libdir)/libhiredis_ssl.a" || die fi insinto /usr/$(get_libdir)/pkgconfig |