mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-24 18:58:08 -07:00
dev-libs/eet: add libressl support
This commit is contained in:
80
dev-libs/eet/eet-1.7.10-r1.ebuild
Normal file
80
dev-libs/eet/eet-1.7.10-r1.ebuild
Normal file
@@ -0,0 +1,80 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI="4"
|
||||
|
||||
if [[ ${PV} == "9999" ]] ; then
|
||||
EGIT_SUB_PROJECT="legacy"
|
||||
EGIT_URI_APPEND=${PN}
|
||||
EGIT_BRANCH=${PN}-1.7
|
||||
else
|
||||
SRC_URI="https://download.enlightenment.org/releases/${P}.tar.bz2"
|
||||
EKEY_STATE="snap"
|
||||
fi
|
||||
|
||||
inherit enlightenment
|
||||
|
||||
DESCRIPTION="E file chunk reading/writing library"
|
||||
HOMEPAGE="https://trac.enlightenment.org/e/wiki/Eet"
|
||||
|
||||
LICENSE="BSD-2"
|
||||
IUSE="debug examples gnutls libressl ssl static-libs test"
|
||||
|
||||
RDEPEND=">=dev-libs/eina-${PV}
|
||||
virtual/jpeg
|
||||
sys-libs/zlib
|
||||
gnutls? (
|
||||
net-libs/gnutls
|
||||
dev-libs/libgcrypt:0
|
||||
)
|
||||
!gnutls? (
|
||||
ssl? (
|
||||
!libressl? ( dev-libs/openssl:0 )
|
||||
libressl? ( dev-libs/libressl )
|
||||
)
|
||||
)"
|
||||
DEPEND="${RDEPEND}
|
||||
test? (
|
||||
dev-libs/check
|
||||
dev-util/lcov
|
||||
)"
|
||||
|
||||
src_configure() {
|
||||
E_ECONF=(
|
||||
$(use_enable debug assert)
|
||||
$(use_enable doc)
|
||||
$(use_enable examples build-examples)
|
||||
$(use_enable examples install-examples)
|
||||
$(use_enable test tests)
|
||||
)
|
||||
|
||||
if use gnutls; then
|
||||
if use ssl; then
|
||||
ewarn "You have enabled both 'ssl' and 'gnutls', so we will use"
|
||||
ewarn "gnutls and not openssl for cipher and signature support"
|
||||
fi
|
||||
E_ECONF+=(
|
||||
--enable-cipher
|
||||
--enable-signature
|
||||
--disable-openssl
|
||||
--enable-gnutls
|
||||
)
|
||||
elif use ssl; then
|
||||
E_ECONF+=(
|
||||
--enable-cipher
|
||||
--enable-signature
|
||||
--enable-openssl
|
||||
--disable-gnutls
|
||||
)
|
||||
else
|
||||
E_ECONF+=(
|
||||
--disable-cipher
|
||||
--disable-signature
|
||||
--disable-openssl
|
||||
--disable-gnutls
|
||||
)
|
||||
fi
|
||||
|
||||
enlightenment_src_configure
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
@@ -19,7 +19,7 @@ DESCRIPTION="E file chunk reading/writing library"
|
||||
HOMEPAGE="https://trac.enlightenment.org/e/wiki/Eet"
|
||||
|
||||
LICENSE="BSD-2"
|
||||
IUSE="debug examples gnutls ssl static-libs test"
|
||||
IUSE="debug examples gnutls libressl ssl static-libs test"
|
||||
|
||||
RDEPEND=">=dev-libs/eina-${PV}
|
||||
virtual/jpeg
|
||||
@@ -28,7 +28,12 @@ RDEPEND=">=dev-libs/eina-${PV}
|
||||
net-libs/gnutls
|
||||
dev-libs/libgcrypt:0
|
||||
)
|
||||
!gnutls? ( ssl? ( dev-libs/openssl ) )"
|
||||
!gnutls? (
|
||||
ssl? (
|
||||
!libressl? ( dev-libs/openssl:0 )
|
||||
libressl? ( dev-libs/libressl )
|
||||
)
|
||||
)"
|
||||
DEPEND="${RDEPEND}
|
||||
test? (
|
||||
dev-libs/check
|
||||
|
||||
Reference in New Issue
Block a user