x11-terms/ghostty: new package, add 1.0.0
[gentoo-zh.git] / dev-libs / v2ray-rules-dat-bin / v2ray-rules-dat-bin-202411022212.ebuild
blob74ec288d98ac7714449fd3e2911a178f68d51d8a
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 S="${WORKDIR}"
15 LICENSE="GPL-3"
16 SLOT="0"
17 KEYWORDS="~amd64 ~arm ~arm64 ~loong ~riscv ~x86"
19 IUSE="+geosite +geoip"
20 REQUIRED_USE="|| ( geosite geoip )"
22 src_install() {
23         if use geosite; then
24                 insinto /usr/share/geosite/
25                 newins "${DISTDIR}/${P}-geosite.dat" loyalsoldier.dat
26         fi
27         if use geosite; then
28                 insinto /usr/share/geoip/
29                 newins "${DISTDIR}/${P}-geoip.dat" loyalsoldier.dat
30         fi