mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-10-12 17:51:11 -04:00
net-misc/publicsuffix-db: Fetch a stable version of the PSL from VCS.
Signed-off-by: Christopher Byrne <salah.coronya@gmail.com>
This commit is contained in:
2 files changed
+15
-6
No files matched your search
@@ -1 +1 @@
|
||||
DIST public_suffix_list-20260907.dat 334109 BLAKE2B 3462ac537852e09e1d6a6741988bc3c9e82705938708649c8173ab85884669fde7453f25813a075926187dd05f9c607b49cf56711437fc57ae33ad9db052e09e SHA512 ec8efbef700d7fa925b1f75f47027bd4fc781cc78fd1cab4604840e524080bf9cfb67bbcfc08130eb438d02a57737517787d11fbaab92f6d67b8faeffee78c24
|
||||
DIST publicsuffix-db-20260907.tar.gz 306652 BLAKE2B 4bd26d4aa0422425a2c1b6a8cb9f3a6e7230b71bb55317b86f0a021d8a0f09900ca57748f8bd79a8576df4ac6903d7ccc890fa0116b3663d4d585dfb33954402 SHA512 685f2f72674550f4fbefb59aa52e43eb71a8c8f39e22bf37a4d17d429637a86c69166d3e327b480d57c1b4164c2c3da69ec3f5942e9a15b8b9ea919aaab558b8
|
||||
@@ -3,20 +3,29 @@
|
||||
|
||||
EAPI=9
|
||||
|
||||
# We need a stable list, so even though the offical site specifically
|
||||
# says not to pull it from VCS because it may break, the only other option
|
||||
# is to store snapshots of the list somewhere and pull that
|
||||
|
||||
COMMIT="f540a06159213b6e8ed9c87d2dd3a52373637e92"
|
||||
|
||||
DESCRIPTION="The Public Suffix List"
|
||||
HOMEPAGE="https://publicsuffix.org"
|
||||
SRC_URI="https://publicsuffix.org/list/public_suffix_list.dat -> public_suffix_list-${PV}.dat"
|
||||
SRC_URI="https://github.com/publicsuffix/list/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
S="${WORKDIR}/list-${COMMIT}"
|
||||
|
||||
LICENSE="MPL-2.0"
|
||||
SLOT="0/${PV}"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86"
|
||||
|
||||
src_unpack() {
|
||||
mkdir "${WORKDIR}/${P}" || die
|
||||
cp "${DISTDIR}/public_suffix_list-${PV}.dat" "${WORKDIR}/${P}"
|
||||
# Portage does not empty functions, so fake it
|
||||
src_compile() {
|
||||
# Skip the Makefile
|
||||
true
|
||||
}
|
||||
|
||||
src_install() {
|
||||
insinto /usr/share/publicsuffix
|
||||
newins "public_suffix_list-${PV}.dat" "public_suffix_list.dat"
|
||||
doins public_suffix_list.dat
|
||||
}
|
||||
Reference in new issue
Block a user