net-proxy/yass: add riscv and loong arches
[gentoo-zh.git] / net-proxy / yass / yass-1.8.2-r1.ebuild
blobc7062f7d20db1f447cb96fc61ae2d643f1926a10
1 # Copyright 2024 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
4 EAPI=8
6 inherit cmake xdg
8 MY_PN="yass"
9 S="${WORKDIR}/${MY_PN}-${PV}"
10 SRC_URI="https://github.com/Chilledheart/yass/releases/download/${PV}/yass-${PV}.tar.bz2"
11 KEYWORDS="~amd64 ~arm ~arm64 ~loong ~mips ~riscv ~x86"
13 DESCRIPTION="lightweight and efficient, socks5/http forward proxy"
14 HOMEPAGE="https://github.com/Chilledheart/yass"
16 LICENSE="GPL-2"
17 SLOT="0"
18 IUSE="wayland"
20 RDEPEND="
21 app-misc/ca-certificates
22 dev-libs/glib:2
23 net-libs/mbedtls
24 sys-libs/zlib
25 net-dns/c-ares
26 net-libs/nghttp2
27 gui-libs/gtk:4[wayland?]
29 DEPEND="${RDEPEND}"
30 BDEPEND="
31 sys-devel/gettext
32 virtual/pkgconfig
35 PATCHES=(
36 "${FILESDIR}"/${PN}-1.8.2.core.patch
37 "${FILESDIR}"/${PN}-loongarch64-gtk4-1.8.2.patch
40 src_configure() {
41 local mycmakeargs=(
42 -DBUILD_SHARED_LIBS=off
43 -DUSE_BUILTIN_CA_BUNDLE_CRT=off
44 -DUSE_LIBCXX=on
45 -DENABLE_GOLD=off
46 -DGUI=ON
47 -DCLI=OFF
48 -DSERVER=OFF
49 -DBUILD_TESTS=off
50 -DUSE_SYSTEM_MBEDTLS=on
51 -DUSE_SYSTEM_ZLIB=on
52 -DUSE_SYSTEM_CARES=on
53 -DUSE_SYSTEM_NGHTTP2=on
55 cmake_src_configure