mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-10-12 17:51:11 -04:00
net-proxy/Throne: drop 1.2.1
Signed-off-by: Pavel Sobolev <contact@paveloom.dev>
This commit is contained in:
3 files changed
-129
No files matched your search
@@ -1,5 +1,3 @@
|
||||
DIST Throne-1.2.1-deps.tar.xz 189110748 BLAKE2B 2d7bcf7f3145dabd6cc1e34dbfe325d43277a69e63f140a13c04e47e152172ff246ab15ad168dfd4fcb64a23e9f073e2472862cd475f6d09f5a62c8ebdfc0765 SHA512 a6442512cd627b1f5036df5ebe8bd60b166060cd66c73a2ee0911ec81e1adcb47fdf9ca0da20b51744a12c8342ee4cacd8bafc02787f11aa6fded358a5bbe03b
|
||||
DIST Throne-1.2.1.tar.gz 6176523 BLAKE2B d91af46155725e8a24886985a56f69e5708e145d71c1b44d2534bf46f5d949e08069103a065452e4239d9c7e020a7eae76d4f3df922ab42a63e11dddf332e19b SHA512 f8669405a5fea483cff62e8050967cfa8cefc75c6b4256698516c3bc553756cb01085933f8cff4f4475d958c131e45437e2ecbd8e291c6badf8551591192b7c5
|
||||
DIST Throne-1.2.4-deps.tar.xz 189156300 BLAKE2B d9ab222eb89b6da847d4bef064d7bb77eb68001c2b42b8175cb24e7b35ae853cc3645d596e3471a9703466ca873e7ac797a892094e8c83f1d61b58b96b101863 SHA512 7182687f30ef47e1294d175861a1040ec7c19190842bc37abb5a6de69c32906f8c6b7fb28caae4e5319ad209de6e0fe2fdada782fc9c62b95005bdf3fb4ed3dc
|
||||
DIST Throne-1.2.4.tar.gz 6277085 BLAKE2B 4caf600f0235e2833726f50596d18c413c003751da16bfb7bed66761ab90f6732ef05ec0e7b8933bbd57ecbf022472362575b326f148714eadfa9c525a729737 SHA512 e7c90978eebf6d44e8db99f9f7bc67add22bdfd1aeffb094ceb3cb7a50d3fed24b91ca7a316ddaf1c59e249495ca62e0861099b136c6136b008d72dd55728e66
|
||||
DIST Throne-1.3.0-deps.tar.xz 197072544 BLAKE2B 08c84dda205feb2983b0fa05efcbc53a69351d1cdb597c5557be7b77a0027a75aa0948d34ca33705ef74077f38861eff53b0c165b655334d193a31b4c41c7aaf SHA512 d877cc4d291a64b593765ffd48c6b3911984c240279666efb2e3f2ab39297ef693d514260ba8185a31402e6079b8eaf577deb6c75d699d140d4f7fc7626d7e0b
|
||||
|
||||
@@ -1,94 +0,0 @@
|
||||
# Copyright 1999-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit cmake desktop go-module xdg
|
||||
|
||||
DESCRIPTION="Qt based cross-platform GUI proxy configuration manager"
|
||||
HOMEPAGE="https://github.com/throneproj/Throne"
|
||||
SRC_URI="
|
||||
https://github.com/throneproj/Throne/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz
|
||||
https://gitlab.com/api/v4/projects/69517529/packages/generic/${PN}/${PV}/${P}-deps.tar.xz
|
||||
"
|
||||
|
||||
# The first line is for the C++ code, the second line is for the Go module
|
||||
LICENSE="
|
||||
GPL-3+ MIT
|
||||
0BSD Apache-2.0 BSD ISC MIT MPL-2.0 Unlicense
|
||||
"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
RDEPEND="
|
||||
dev-libs/protobuf:=
|
||||
dev-libs/qhotkey
|
||||
dev-qt/qtbase:6[dbus,network,widgets]
|
||||
media-libs/quirc:=
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="
|
||||
dev-go/protobuf-go
|
||||
dev-go/protoc-gen-go-grpc
|
||||
>=dev-lang/go-1.26
|
||||
dev-qt/qttools:6[linguist]
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-1.0.0-use-system-QHotkey.patch"
|
||||
"${FILESDIR}/${PN}-1.1.1-dont-treat-warnings-as-errors.patch"
|
||||
"${FILESDIR}/${PN}-1.1.1-use-system-quirc.patch"
|
||||
)
|
||||
|
||||
src_unpack() {
|
||||
# The vendor tarball is unpacked to `${S}/core/server`, but `go-module_src_unpack`
|
||||
# requires the `vendor` directory to be present at `${S}/vendor`
|
||||
mkdir -p "${S}/vendor" || die
|
||||
|
||||
go-module_src_unpack
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
rm -r 3rdparty/{QHotkey,quirc} || die
|
||||
|
||||
sed '/^cmake_minimum_required/ s/(.*)/(VERSION 3.10)/' \
|
||||
-i 3rdparty/SQLiteCpp/CMakeLists.txt || die
|
||||
|
||||
cmake_src_prepare
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DNKR_PACKAGE=true
|
||||
)
|
||||
|
||||
cmake_src_configure
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
cmake_src_compile
|
||||
|
||||
cd "${S}/core/server" || die
|
||||
|
||||
pushd gen || die
|
||||
protoc -I . --go_out=. --go-grpc_out=. libcore.proto
|
||||
popd || die
|
||||
|
||||
VERSION_SINGBOX=$(go list -m -f '{{.Version}}' github.com/sagernet/sing-box)
|
||||
ego build \
|
||||
-trimpath -ldflags "-checklinkname=0 \
|
||||
-X 'github.com/sagernet/sing-box/constant.Version=${VERSION_SINGBOX}' \
|
||||
-X 'internal/godebug.defaultGODEBUG=multipathtcp=0'" \
|
||||
-tags "with_clash_api,with_gvisor,with_quic,with_wireguard,with_utls,with_dhcp,with_tailscale,badlinkname,tfogo_checklinkname0"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
exeinto /usr/lib/Throne
|
||||
doexe "${BUILD_DIR}/Throne"
|
||||
doexe core/server/ThroneCore
|
||||
|
||||
dosym -r /usr/lib/Throne/Throne /usr/bin/Throne
|
||||
|
||||
doicon -s 256 res/public/Throne.png
|
||||
domenu "${FILESDIR}/Throne.desktop"
|
||||
}
|
||||
@@ -1,33 +0,0 @@
|
||||
From: Pavel Sobolev <contact@paveloom.dev>
|
||||
Subject: [PATCH] Use system `QHotkey`.
|
||||
|
||||
Signed-off-by: Pavel Sobolev <contact@paveloom.dev>
|
||||
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -42,7 +42,6 @@ message("[CMAKE_FIND_ROOT_PATH] ${CMAKE_FIND_ROOT_PATH}")
|
||||
|
||||
include("cmake/print.cmake")
|
||||
include("cmake/nkr.cmake")
|
||||
-include("cmake/QHotkey.cmake")
|
||||
|
||||
find_package(Threads)
|
||||
|
||||
@@ -54,6 +53,7 @@ include("cmake/myproto.cmake")
|
||||
list(APPEND NKR_EXTERNAL_TARGETS myproto)
|
||||
|
||||
set(BUILD_SHARED_LIBS OFF)
|
||||
+find_package(QHotkey CONFIG REQUIRED)
|
||||
list(APPEND NKR_EXTERNAL_TARGETS qhotkey)
|
||||
|
||||
# Sources
|
||||
--- a/src/ui/mainwindow.cpp
|
||||
+++ b/src/ui/mainwindow.cpp
|
||||
@@ -51,7 +51,7 @@
|
||||
#endif
|
||||
#include <QToolTip>
|
||||
#include <random>
|
||||
-#include <3rdparty/QHotkey/qhotkey.h>
|
||||
+#include <QHotkey>
|
||||
#include <3rdparty/qv2ray/v2/proxy/QvProxyConfigurator.hpp>
|
||||
#include <include/global/HTTPRequestHelper.hpp>
|
||||
Reference in new issue
Block a user