app-portage/deltup: ability to use libressl
authorAmir Ghassemi Nasr <Ameretat.Reith@gmail.com>
Fri, 19 May 2017 07:40:14 +0000 (12:10 +0430)
committerMichał Górny <mgorny@gentoo.org>
Fri, 19 May 2017 10:51:21 +0000 (12:51 +0200)
Introducing libressl USE for app-portage/deltup-0.4.6

Closes: https://github.com/gentoo/gentoo/pull/4676

app-portage/deltup/deltup-0.4.6.ebuild

index ad9ce82c8e081a83147de936077110fb4f210174..cdc06476fffe0a302fa681c9c17e363e13117eae 100644 (file)
@@ -1,7 +1,7 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=5
+EAPI=6
 
 inherit eutils toolchain-funcs
 
@@ -15,11 +15,14 @@ S="${WORKDIR}/${MY_PN}-${PV}/src"
 SLOT="0"
 LICENSE="GPL-2"
 KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86"
-IUSE=""
+IUSE="libressl"
 
-DEPEND="dev-libs/openssl:0
+DEPEND="
        sys-libs/zlib
-       app-arch/bzip2"
+       app-arch/bzip2
+       !libressl? ( dev-libs/openssl:0= )
+       libressl? ( dev-libs/libressl:= )
+"
 RDEPEND="${DEPEND}
        || ( dev-util/bdelta =dev-util/xdelta-1* )"