net-irc/znc: hide zlib and icu behind global USE-flags
authorAlexey Sokolov <sokolov@google.com>
Sun, 18 Dec 2016 09:46:28 +0000 (09:46 +0000)
committerSam Jorna <wraeth@gentoo.org>
Fri, 23 Dec 2016 03:17:04 +0000 (14:17 +1100)
Closes: #3156

net-irc/znc/znc-1.6.4.ebuild

index d7516baeefdbc89a49cc9e1a838d634cb194dbde..f8a3449fa206eda56275cc005cb1dd853b93f4d0 100644 (file)
@@ -21,13 +21,12 @@ KEYWORDS="~amd64 ~arm ~x86"
 HOMEPAGE="http://znc.in"
 LICENSE="Apache-2.0"
 SLOT="0"
-IUSE="daemon debug ipv6 libressl perl python ssl sasl tcl test"
+IUSE="daemon debug ipv6 icu libressl perl python ssl sasl tcl test zlib"
 
 REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
 
 RDEPEND="
-       dev-libs/icu:=
-       sys-libs/zlib
+       icu? ( dev-libs/icu:= )
        perl? ( >=dev-lang/perl-5.10:= )
        python? ( ${PYTHON_DEPS} )
        sasl? ( >=dev-libs/cyrus-sasl-2 )
@@ -36,6 +35,7 @@ RDEPEND="
                libressl? ( dev-libs/libressl:0= )
        )
        tcl? ( dev-lang/tcl:0= )
+       zlib? ( sys-libs/zlib )
 "
 DEPEND="
        ${RDEPEND}
@@ -67,12 +67,14 @@ src_configure() {
        econf \
                --with-systemdsystemunitdir="$(systemd_get_systemunitdir)" \
                $(use_enable debug) \
+               $(use_enable icu charset) \
                $(use_enable ipv6) \
                $(use_enable perl) \
                $(use_enable python) \
                $(use_enable sasl cyrus) \
                $(use_enable ssl openssl) \
                $(use_enable tcl) \
+               $(use_enable zlib) \
                $(use_with test gtest "${WORKDIR}/googletest-release-${GTEST_VER}")
 }