net-im/wemeet: Wemeet - Tencent Video Conferencing (#1186)
[gentoo-zh.git] / net-proxy / qvplugin-ssr / qvplugin-ssr-2.0.3.ebuild
blob88f8f2c2fb016b334d1e7860bb86a4c813925848
1 # Copyright 2020-2021 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
4 EAPI=7
6 inherit cmake git-r3
8 DESCRIPTION="shadowsocksR plugin for Qv2ray to support SSR connection in Qv2ray"
9 HOMEPAGE="https://github.com/Qv2ray/QvPlugin-SSR"
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"
19 DEPEND="
20         <net-proxy/qv2ray-2.7.0
21         dev-libs/libuv
22         dev-libs/libsodium
24 RDEPEND="${DEPEND}"
25 BDEPEND=""
27 src_configure() {
28         local mycmakeargs=(
29                 -DSSR_UVW_WITH_QT=1
30                 -DUSE_SYSTEM_SODIUM=ON
31                 -DUSE_SYSTEM_LIBUV=ON
32                 -DSTATIC_LINK_LIBUV=OFF
33                 -DSTATIC_LINK_SODIUM=OFF
34         )
35         cmake_src_configure
38 src_install(){
39         insinto "/usr/share/qv2ray/plugins"
40         insopts -m755
41         doins "${BUILD_DIR}/libQvSSRPlugin.so"