net-im/wemeet: Wemeet - Tencent Video Conferencing (#1186)
[gentoo-zh.git] / net-proxy / qvplugin-ssr / qvplugin-ssr-9999.ebuild
blob7d9c071d66bf3278ff9820056db1f9be5547067d
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_BRANCH=dev
14 LICENSE="GPL-3"
15 SLOT="0"
17 DEPEND="
18         ~net-proxy/qv2ray-99999
19         dev-libs/libuv
20         dev-libs/libsodium
22 RDEPEND="${DEPEND}"
23 BDEPEND=""
25 src_configure() {
26         local mycmakeargs=(
27                 -DSSR_UVW_WITH_QT=1
28                 -DUSE_SYSTEM_SODIUM=ON
29                 -DUSE_SYSTEM_LIBUV=ON
30                 -DSTATIC_LINK_LIBUV=OFF
31                 -DSTATIC_LINK_SODIUM=OFF
32         )
33         cmake_src_configure
36 src_install(){
37         insinto "/usr/share/qv2ray/plugins"
38         insopts -m755
39         doins "${BUILD_DIR}/libQvPlugin-SSR.so"