Gentoo Archives: gentoo-commits

From: Yixun Lan <dlan@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-proxy/shadowsocks-libev/
Date: Thu, 30 Jun 2016 22:03:08
Message-Id: 1467324056.4a468d37d7246cb5ee68be3430bf25ab19192feb.dlan@gentoo
1 commit: 4a468d37d7246cb5ee68be3430bf25ab19192feb
2 Author: Yixun Lan <dlan <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jun 30 22:00:56 2016 +0000
4 Commit: Yixun Lan <dlan <AT> gentoo <DOT> org>
5 CommitDate: Thu Jun 30 22:00:56 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4a468d37
7
8 net-proxy/shadowsocks-libev: introduce USE=system-libs, unbundle libs
9
10 Package-Manager: portage-2.3.0_rc1
11
12 net-proxy/shadowsocks-libev/metadata.xml | 1 +
13 ...socks-libev-2.4.7.ebuild => shadowsocks-libev-2.4.7-r1.ebuild} | 8 +++++++-
14 2 files changed, 8 insertions(+), 1 deletion(-)
15
16 diff --git a/net-proxy/shadowsocks-libev/metadata.xml b/net-proxy/shadowsocks-libev/metadata.xml
17 index 7baa3e5..bb9595d 100644
18 --- a/net-proxy/shadowsocks-libev/metadata.xml
19 +++ b/net-proxy/shadowsocks-libev/metadata.xml
20 @@ -10,6 +10,7 @@
21 <use>
22 <flag name="openssl">Use <pkg>dev-libs/openssl</pkg> as crypto backend</flag>
23 <flag name="polarssl">Use <pkg>net-libs/polarssl</pkg> as crypto backend</flag>
24 + <flag name="system-libs">Use system libraries instead of the ones included in the upstream distribution</flag>
25 </use>
26 <upstream>
27 <remote-id type="github">shadowsocks/shadowsocks-libev</remote-id>
28
29 diff --git a/net-proxy/shadowsocks-libev/shadowsocks-libev-2.4.7.ebuild b/net-proxy/shadowsocks-libev/shadowsocks-libev-2.4.7-r1.ebuild
30 similarity index 91%
31 rename from net-proxy/shadowsocks-libev/shadowsocks-libev-2.4.7.ebuild
32 rename to net-proxy/shadowsocks-libev/shadowsocks-libev-2.4.7-r1.ebuild
33 index c761cba..398664d 100644
34 --- a/net-proxy/shadowsocks-libev/shadowsocks-libev-2.4.7.ebuild
35 +++ b/net-proxy/shadowsocks-libev/shadowsocks-libev-2.4.7-r1.ebuild
36 @@ -15,11 +15,16 @@ SRC_URI="https://github.com/shadowsocks/${PN}/archive/${MY_PV}.tar.gz -> ${P}.ta
37 LICENSE="GPL-3+"
38 SLOT="0"
39 KEYWORDS="~amd64 ~x86"
40 -IUSE="debug +openssl polarssl"
41 +IUSE="debug +openssl polarssl +system-libs"
42
43 DEPEND="openssl? ( dev-libs/openssl:= )
44 polarssl? ( net-libs/polarssl )
45 <sys-kernel/linux-headers-4.5
46 + system-libs? (
47 + dev-libs/libev
48 + dev-libs/libsodium
49 + net-libs/udns
50 + )
51 "
52 RDEPEND="${DEPEND}"
53
54 @@ -28,6 +33,7 @@ REQUIRED_USE=" ^^ ( openssl polarssl )"
55 src_configure() {
56 econf \
57 $(use_enable debug assert) \
58 + $(use_enable system-libs system-shared-lib) \
59 --with-crypto-library=$(usex openssl openssl polarssl)
60 }