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 )
17 KEYWORDS="~amd64 ~arm ~arm64 ~loong ~riscv ~x86"
19 IUSE="+geosite +geoip"
20 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