mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-20 22:27:17 -08:00
app-text/gentoo-dtd: add 20260615
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
This commit is contained in:
@@ -1 +1,2 @@
|
||||
DIST gentoo-dtd-20230914.tar.xz 6288 BLAKE2B 0b11fb7c34bf6be994242d93ae3a999d6490a177bcdd596d6b949a903c663fa66c75ea14d52e3d63ab19c806742be470570303c16ab656ce69e8a7406f38ef6c SHA512 29f8a12ddb2e9764c1d1eace26a4e7ae559c9001c32313e55708529a894a93a54c17c856e34589c016451a594deedb32279d282fbb9452b671089061a073bc71
|
||||
DIST gentoo-dtd-20260615.tar.xz 6340 BLAKE2B 12a7c14c26afd0bf5e076068967fe93cdeabe95e4eb8788f78400bf23a851ad1a72a98ad4f470bdd9b3c38483452747b241877d8fd7bf7e578bda2f5d9b1796f SHA512 f8b6bad7de6b5439fd63f324f89b80ec806ba7870ca65e333390f0ba0d0889ac4abf89b495ddc07cc59d8d282daf33bb68753ae8312fbdf060e8b5d9be5061e3
|
||||
|
||||
@@ -0,0 +1,46 @@
|
||||
# Copyright 2023-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=9
|
||||
|
||||
if [[ ${PV} == 99999999 ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://anongit.gentoo.org/git/data/dtd.git"
|
||||
else
|
||||
# git archive --prefix=${P}/ HEAD | xz >${P}.tar.xz
|
||||
SRC_URI="https://distfiles.gentoo.org/pub/dev/ulm@gentoo.org/${P}.tar.xz"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
fi
|
||||
|
||||
DESCRIPTION="Document Type Definition for Gentoo-related XML files"
|
||||
HOMEPAGE="https://gitweb.gentoo.org/data/dtd.git/"
|
||||
|
||||
# Presumably these simple DTDs are not copyrightable,
|
||||
# but repositories.dtd says GPL v2 or later.
|
||||
LICENSE="public-domain GPL-2+"
|
||||
SLOT="0"
|
||||
|
||||
RDEPEND="dev-libs/libxml2"
|
||||
IDEPEND="${RDEPEND}"
|
||||
|
||||
src_install() {
|
||||
insinto /usr/share/xml/gentoo/dtd
|
||||
doins *.dtd
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
ebegin "Installing catalog entry"
|
||||
xmlcatalog --noout \
|
||||
--add rewriteSystem "https://www.gentoo.org/dtd/" \
|
||||
"file://${EPREFIX}/usr/share/xml/gentoo/dtd/" \
|
||||
"${EROOT}"/etc/xml/catalog
|
||||
eend $?
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
ebegin "Cleaning catalog"
|
||||
xmlcatalog --noout \
|
||||
--del "https://www.gentoo.org/dtd/" \
|
||||
"${EROOT}"/etc/xml/catalog
|
||||
eend $?
|
||||
}
|
||||
Reference in New Issue
Block a user