net-im/wemeet: Wemeet - Tencent Video Conferencing (#1186)
[gentoo-zh.git] / net-proxy / qvplugin-trojan / qvplugin-trojan-2.0.0.ebuild
blob7960bc1f369f77bf5e72f700bd7066f46d24b3d1
1 # Copyright 2020-2021 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
4 EAPI=7
6 inherit cmake-utils git-r3
8 DESCRIPTION="Plugin for Qv2ray to support Trojan proxy in Qv2ray"
9 HOMEPAGE="https://github.com/Qv2ray/QvPlugin-Trojan"
10 EGIT_REPO_URI="${HOMEPAGE}.git"
11 EGIT_SUBMODULES=( '*' '-*/libsodium' '-*/libuv' )
12 EGIT_COMMIT="v${PV}"
14 KEYWORDS="~amd64 ~x86"
16 LICENSE="GPL-3"
17 SLOT="0"
18 IUSE="tcpfastopen nat reuseport"
20 DEPEND="
21         <net-proxy/qv2ray-2.7.0
22         dev-libs/boost
23         >=dev-libs/openssl-1.1.1
25 RDEPEND="${DEPEND}"
26 BDEPEND=""
28 src_configure() {
29         local mycmakeargs=(
30                 -DENABLE_SSL_KEYLOG=ON
31                 -DENABLE_TLS13_CIPHERSUITES=ON
32                 -DFORCE_TCP_FASTOPEN=$(usex tcpfastopen)
33                 -DENABLE_NAT=$(usex nat)
34                 -DENABLE_REUSE_PORT=$(usex reuseport)
35         )
36         cmake-utils_src_configure
39 src_install(){
40         insinto "/usr/share/qv2ray/plugins"
41         insopts -m755
42         doins "${BUILD_DIR}/libQvTrojanPlugin.so"