dev-libs/v2ray-rules-dat: add 202307312208, drop 202306292209
[gentoo-zh.git] / dev-libs / v2ray-rules-dat / v2ray-rules-dat-202307312208.ebuild
blobca2abfc717ca10985650eb2173fffb8fbb85f7f8
1 # Copyright 2023 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 https://github.com/Loyalsoldier/v2ray-rules-dat/releases/download/${PV}/geosite.dat -> ${P}-geosite.dat
10 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 ~riscv ~x86"
16 IUSE="+geosite +geoip"
17 RESTRICT="mirror"
19 S="${WORKDIR}"
21 src_install() {
22 if use geosite; then
23 insinto /usr/share/geosite/
24 newins "${DISTDIR}/${P}-geosite.dat" loyalsoldier.dat
26 if use geosite; then
27 insinto /usr/share/geoip/
28 newins "${DISTDIR}/${P}-geoip.dat" loyalsoldier.dat