net-proxy/clash: version bump to 1.7.0 (#1188)
[gentoo-zh.git] / net-proxy / qv2ray / qv2ray-2.6.3-r2.ebuild
blob07dddae0542a2c560eaf38e0f45f79187143347f
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' )
11 EGIT_COMMIT=v${PV}
13 KEYWORDS="~amd64 ~x86"
15 LICENSE="GPL-3"
16 SLOT="0"
18 DEPEND="
19 dev-qt/qtcore:5
20 dev-qt/qtconcurrent:5
21 dev-qt/qtdbus:5
22 dev-qt/qtgui:5
23 dev-qt/qtnetwork:5
24 dev-qt/qtwidgets:5
25 net-libs/grpc
26 dev-libs/protobuf
27 >=media-libs/zxing-cpp-1.1.0
29 RDEPEND="
30 || ( net-proxy/v2ray-bin net-proxy/v2ray )
31 dev-libs/openssl:0=
32 ${DEPEND}
34 BDEPEND="
35 dev-qt/linguist-tools:5
38 src_prepare() {
39 cmake_src_prepare
40 xdg_environment_reset
43 src_configure() {
44 local mycmakeargs=(
45 -DQV2RAY_DEFAULT_VASSETS_PATH="/usr/share/v2ray"
46 -DQV2RAY_DEFAULT_VCORE_PATH="/usr/bin/v2ray"
47 -DQV2RAY_DISABLE_AUTO_UPDATE=on
48 -DQV2RAY_ZXING_PROVIDER="package"
50 cmake_src_configure
53 src_install(){
54 cmake_src_install