net-proxy/shadowsocks-libev: introduce USE=system-libs, unbundle libs
authorYixun Lan <dlan@gentoo.org>
Thu, 30 Jun 2016 22:00:56 +0000 (06:00 +0800)
committerYixun Lan <dlan@gentoo.org>
Thu, 30 Jun 2016 22:00:56 +0000 (06:00 +0800)
Package-Manager: portage-2.3.0_rc1

net-proxy/shadowsocks-libev/metadata.xml
net-proxy/shadowsocks-libev/shadowsocks-libev-2.4.7-r1.ebuild [moved from net-proxy/shadowsocks-libev/shadowsocks-libev-2.4.7.ebuild with 91% similarity]

index 7baa3e59735b82cdc7d34d64317246bb45a3c611..bb9595db01a65aa8fa9a8d9b4d7d415caee2b7fd 100644 (file)
@@ -10,6 +10,7 @@
   <use>
     <flag name="openssl">Use <pkg>dev-libs/openssl</pkg> as crypto backend</flag>
     <flag name="polarssl">Use <pkg>net-libs/polarssl</pkg> as crypto backend</flag>
+       <flag name="system-libs">Use system libraries instead of the ones included in the upstream distribution</flag>
   </use>
   <upstream>
     <remote-id type="github">shadowsocks/shadowsocks-libev</remote-id>
similarity index 91%
rename from net-proxy/shadowsocks-libev/shadowsocks-libev-2.4.7.ebuild
rename to net-proxy/shadowsocks-libev/shadowsocks-libev-2.4.7-r1.ebuild
index c761cba2a4d61ede15d32dbab1bb70770d17451a..398664df171e1cc0fa8eb3abf4da343b170bb431 100644 (file)
@@ -15,11 +15,16 @@ SRC_URI="https://github.com/shadowsocks/${PN}/archive/${MY_PV}.tar.gz -> ${P}.ta
 LICENSE="GPL-3+"
 SLOT="0"
 KEYWORDS="~amd64 ~x86"
-IUSE="debug +openssl polarssl"
+IUSE="debug +openssl polarssl +system-libs"
 
 DEPEND="openssl? ( dev-libs/openssl:= )
        polarssl? ( net-libs/polarssl )
        <sys-kernel/linux-headers-4.5
+       system-libs? ( 
+               dev-libs/libev
+               dev-libs/libsodium
+               net-libs/udns
+       )
        "
 RDEPEND="${DEPEND}"
 
@@ -28,6 +33,7 @@ REQUIRED_USE=" ^^ ( openssl polarssl )"
 src_configure() {
        econf \
                $(use_enable debug assert) \
+               $(use_enable system-libs system-shared-lib) \
                --with-crypto-library=$(usex openssl openssl polarssl)
 }