net-proxy/haproxy: Introduce USE=slz
authorBertrand Jacquin <bertrand@jacquin.bzh>
Sat, 17 Sep 2016 23:51:56 +0000 (00:51 +0100)
committerChristian Ruppert <idl0r@gentoo.org>
Wed, 28 Sep 2016 19:53:50 +0000 (21:53 +0200)
USE=zlib stay the default one in order to avoid users to have to
manually satisfy USE flag constraints since USE=zlib and USE=slz are
mutually exclusive.

Package-Manager: portage-2.2.28
Closes: https://github.com/gentoo/gentoo/pull/2293

Signed-off-by: Christian Ruppert <idl0r@gentoo.org>
net-proxy/haproxy/haproxy-1.6.9.ebuild
net-proxy/haproxy/haproxy-9999.ebuild
net-proxy/haproxy/metadata.xml

index a0703717fcd7be1c3de380209b40aa84a3629fbb..c9a98ed4d849f29945d593d6a33e59052e4fed4b 100644 (file)
@@ -15,8 +15,9 @@ SRC_URI="http://haproxy.1wt.eu/download/$(get_version_component_range 1-2)/src/$
 LICENSE="GPL-2 LGPL-2.1"
 SLOT="0"
 KEYWORDS="~amd64 ~arm ~ppc ~x86"
-IUSE="+crypt doc examples libressl net_ns +pcre pcre-jit ssl tools vim-syntax +zlib" # lua
-REQUIRED_USE="pcre-jit? ( pcre )"
+IUSE="+crypt doc examples libressl slz net_ns +pcre pcre-jit ssl tools vim-syntax +zlib" # lua
+REQUIRED_USE="pcre-jit? ( pcre )
+       ?? ( slz zlib )"
 
 DEPEND="
        pcre? (
@@ -27,6 +28,7 @@ DEPEND="
                !libressl? ( dev-libs/openssl:0=[zlib?] )
                libressl? ( dev-libs/libressl:0= )
        )
+       slz? ( dev-libs/libslz:= )
        zlib? ( sys-libs/zlib )"
 # lua? ( dev-lang/lua:5.3 )
 RDEPEND="${DEPEND}"
@@ -79,6 +81,7 @@ src_compile() {
 #      args+=( $(haproxy_use kernel_linux LINUX_TPROXY) )
 
        args+=( $(haproxy_use ssl OPENSSL) )
+       args+=( $(haproxy_use slz SLZ) )
        args+=( $(haproxy_use zlib ZLIB) )
 
        # For now, until the strict-aliasing breakage will be fixed
index 9499a51177907b4646739f1eaf573383c3dee901..4100bfa773873792d79f6fb76e4719a1ab3c39dc 100644 (file)
@@ -15,8 +15,9 @@ EGIT_REPO_URI="http://master.formilux.org/git/people/willy/haproxy.git"
 LICENSE="GPL-2 LGPL-2.1"
 SLOT="0"
 KEYWORDS=""
-IUSE="+crypt doc examples libressl net_ns +pcre pcre-jit ssl tools vim-syntax +zlib" # lua
-REQUIRED_USE="pcre-jit? ( pcre )"
+IUSE="+crypt doc examples libressl slz net_ns +pcre pcre-jit ssl tools vim-syntax +zlib" # lua
+REQUIRED_USE="pcre-jit? ( pcre )
+       ?? ( slz zlib )"
 
 DEPEND="
        pcre? (
@@ -27,6 +28,7 @@ DEPEND="
                !libressl? ( dev-libs/openssl:0=[zlib?] )
                libressl? ( dev-libs/libressl:0= )
        )
+       slz? ( dev-libs/libslz:= )
        zlib? ( sys-libs/zlib )"
 # lua? ( dev-lang/lua:5.3 )
 RDEPEND="${DEPEND}"
@@ -79,6 +81,7 @@ src_compile() {
 #      args+=( $(haproxy_use kernel_linux LINUX_TPROXY) )
 
        args+=( $(haproxy_use ssl OPENSSL) )
+       args+=( $(haproxy_use slz SLZ) )
        args+=( $(haproxy_use zlib ZLIB) )
 
        # For now, until the strict-aliasing breakage will be fixed
index 56529589cf4ce5af1c00d842951a91c528a3ecc4..2aaccf14afe7235c1ef8028f894b8bb279aefeb7 100644 (file)
@@ -21,6 +21,7 @@ Its event-driven architecture allows it to easily handle thousands of simultaneo
        <use>
                <flag name="net_ns">Enable network namespace support (CONFIG_NET_NS)</flag>
                <flag name="pcre-jit">Use JIT support for PCRE</flag>
+               <flag name="slz">Use <pkg>dev-libs/libslz</pkg> compression library</flag>
                <flag name="tools">Install additional tools (halog, iprange)</flag>
        </use>
 </pkgmetadata>