net-proxy/clash: version bump to 1.7.0 (#1188)
[gentoo-zh.git] / net-proxy / qv2ray / qv2ray-99999.ebuild
blob6433e371c6f8fe4c1ecedd702ad39ae03c904d56
1 # Copyright 2020-2021 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
4 EAPI=7
5 inherit cmake xdg git-r3
7 DESCRIPTION="Qt GUI fontend of v2ray"
8 HOMEPAGE="https://qv2ray.github.io/"
9 EGIT_REPO_URI="https://github.com/${PN}/${PN}.git"
10 EGIT_SUBMODULES=( '*' '-3rdparty/zxing-cpp' '-libs/libqvb' )
11 EGIT_BRANCH=dev
13 LICENSE="GPL-3"
14 SLOT="0"
16 DEPEND="
17 dev-qt/qtcore:5
18 dev-qt/qtconcurrent:5
19 dev-qt/qtdbus:5
20 dev-qt/qtgui:5
21 dev-qt/qtnetwork:5
22 dev-qt/qtwidgets:5
23 dev-libs/protobuf
24 net-libs/grpc
25 >=media-libs/zxing-cpp-1.1.0
26 net-misc/curl
28 RDEPEND="
29 || ( net-proxy/v2ray-bin net-proxy/v2ray )
30 dev-libs/openssl:0=
31 ${DEPEND}
33 BDEPEND="
34 dev-qt/linguist-tools:5
37 src_prepare() {
38 cmake_src_prepare
39 xdg_environment_reset
42 src_configure() {
43 local mycmakeargs=(
44 -DQV2RAY_DEFAULT_VASSETS_PATH="/usr/share/v2ray"
45 -DQV2RAY_DEFAULT_VCORE_PATH="/usr/bin/v2ray"
46 -DQV2RAY_DISABLE_AUTO_UPDATE=on
47 -DQV2RAY_ZXING_PROVIDER="package"
49 cmake_src_configure
52 src_install(){
53 cmake_src_install