forked from microcai/gentoo-zh
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8d72a7e
commit 71121e6
Showing
3 changed files
with
63 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
DIST yass-1.5.18.tar.gz 102842692 BLAKE2B 2f8199fa66d76cdc7d81fd1c89c7395a981e7c44c434f85d0c52ec9914b8ef695ad3d9a85ab28d747178a560b0d6012e28dd342962d675b8ba6970f59df7302d SHA512 4b1974c7d9de0c1fa55b48e9cb9371336de8a7bdcb9e869f644f6dde28cac6132ee9174c0c135324905e1e8a8d70a938365e8def39d1a7d0784657c066589b15 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> | ||
<pkgmetadata> | ||
<maintainer type="person"> | ||
<email>keeyou-cn@outlook.com</email> | ||
<name>Chilledheart</name> | ||
</maintainer> | ||
<upstream> | ||
<remote-id type="github">Chilledheart/yass</remote-id> | ||
</upstream> | ||
</pkgmetadata> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# Copyright 2024 Gentoo Authors | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI=8 | ||
|
||
inherit cmake xdg | ||
|
||
MY_PN="yass" | ||
S="${WORKDIR}/${MY_PN}-${PV}" | ||
SRC_URI="https://github.com/Chilledheart/yass/releases/download/${PV}/yass-${PV}.tar.gz" | ||
KEYWORDS="~amd64 ~arm64 ~x86" | ||
|
||
DESCRIPTION="lightweight and efficient, socks5/http forward proxy" | ||
HOMEPAGE="https://github.com/Chilledheart/yass" | ||
|
||
LICENSE="GPL-2" | ||
SLOT="0" | ||
IUSE="wayland" | ||
|
||
RDEPEND=" | ||
app-misc/ca-certificates | ||
dev-libs/glib:2 | ||
net-libs/mbedtls | ||
sys-libs/zlib | ||
net-dns/c-ares | ||
net-libs/nghttp2 | ||
gui-libs/gtk:4[wayland?] | ||
" | ||
DEPEND="${RDEPEND}" | ||
BDEPEND=" | ||
sys-devel/gettext | ||
virtual/pkgconfig | ||
" | ||
|
||
src_configure() { | ||
local mycmakeargs=( | ||
-DBUILD_SHARED_LIBS=off | ||
-DUSE_BUILTIN_CA_BUNDLE_CRT=off | ||
-DUSE_LIBCXX=off | ||
-DENABLE_LTO=off | ||
-DGUI=ON | ||
-DCLI=OFF | ||
-DSERVER=OFF | ||
-DBUILD_TESTS=off | ||
-DUSE_SYSTEM_MBEDTLS=on | ||
-DUSE_SYSTEM_ZLIB=on | ||
-DUSE_SYSTEM_CARES=on | ||
-DUSE_SYSTEM_NGHTTP2=on | ||
) | ||
cmake_src_configure | ||
} |