net-im/wemeet: Wemeet - Tencent Video Conferencing (#1186)
[gentoo-zh.git] / net-proxy / qvplugin-ss / qvplugin-ss-1.2-r1.ebuild
blobdc930e81b8ba929ad597333a43726a77446e257e
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="shadowsocks plugin for Qv2ray to support SIP003 in Qv2ray"
9 HOMEPAGE="https://github.com/Qv2ray/QvPlugin-SS"
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 PATCHES=(
28         "${FILESDIR}/fix.patch"
31 src_configure() {
32         local mycmakeargs=(
33                 -DSSR_UVW_WITH_QT=1
34                 -DUSE_SYSTEM_SODIUM=ON
35                 -DUSE_SYSTEM_LIBUV=ON
36                 -DSTATIC_LINK_LIBUV=OFF
37                 -DSTATIC_LINK_SODIUM=OFF
38         )
39         cmake_src_configure
42 src_install(){
43         insinto "/usr/share/qv2ray/plugins"
44         insopts -m755
45         doins "${BUILD_DIR}/libQvSSPlugin.so"