1 # Copyright 2023-2024 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 DESCRIPTION
="Enhanced edition of V2Ray rules dat files."
7 HOMEPAGE
="https://github.com/Loyalsoldier/v2ray-rules-dat"
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 )
15 KEYWORDS
="~amd64 ~arm ~arm64 ~loong ~riscv ~x86"
16 IUSE
="+geosite +geoip"
17 REQUIRED_USE
="|| ( geosite geoip )"
24 insinto
/usr
/share
/geosite
/
25 newins
"${DISTDIR}/${P}-geosite.dat" loyalsoldier.dat
28 insinto
/usr
/share
/geoip
/
29 newins
"${DISTDIR}/${P}-geoip.dat" loyalsoldier.dat