Package-Manager: portage-2.3.0_rc1
<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>
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}"
src_configure() {
econf \
$(use_enable debug assert) \
+ $(use_enable system-libs system-shared-lib) \
--with-crypto-library=$(usex openssl openssl polarssl)
}