net-proxy/yass: add 1.9.3 and 1.8.6
[gentoo-zh.git] / dev-libs / v2ray-rules-dat / v2ray-rules-dat-202402252208.ebuild
blobfac30ab8be37bf0eac5c89bff9f2d7b184990fb5
1 # Copyright 2023-2024 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
4 EAPI=8
6 DESCRIPTION="Enhanced edition of V2Ray rules dat files."
7 HOMEPAGE="https://github.com/Loyalsoldier/v2ray-rules-dat"
8 SRC_URI="
9 geosite? ( https://github.com/Loyalsoldier/v2ray-rules-dat/releases/download/${PV}/geosite.dat -> ${P}-geosite.dat )
10 geoip? ( https://github.com/Loyalsoldier/v2ray-rules-dat/releases/download/${PV}/geoip.dat -> ${P}-geoip.dat )
13 LICENSE="GPL-3"
14 SLOT="0"
15 KEYWORDS="~amd64 ~arm ~arm64 ~loong ~riscv ~x86"
16 IUSE="+geosite +geoip"
17 REQUIRED_USE="|| ( geosite geoip )"
18 RESTRICT="mirror"
20 S="${WORKDIR}"
22 src_install() {
23 if use geosite; then
24 insinto /usr/share/geosite/
25 newins "${DISTDIR}/${P}-geosite.dat" loyalsoldier.dat
27 if use geosite; then
28 insinto /usr/share/geoip/
29 newins "${DISTDIR}/${P}-geoip.dat" loyalsoldier.dat