diff options
author | Michael Mair-Keimberger <mmk@levelnine.at> | 2024-03-20 20:52:04 +0100 |
---|---|---|
committer | Arthur Zamarin <arthurzam@gentoo.org> | 2024-04-14 18:55:46 +0300 |
commit | 37672e19888e9cdcdb7af67cbe21c214630cdb47 (patch) | |
tree | aea79246ad35445f5b493b8ac337d7e5b8e6da50 /app-text | |
parent | app-text/cedilla: add missing remote-id (diff) | |
download | gentoo-37672e19888e9cdcdb7af67cbe21c214630cdb47.tar.gz gentoo-37672e19888e9cdcdb7af67cbe21c214630cdb47.tar.bz2 gentoo-37672e19888e9cdcdb7af67cbe21c214630cdb47.zip |
app-text/scrollkeeper-dtd: EAPI8 bump, use https
Signed-off-by: Michael Mair-Keimberger <mmk@levelnine.at>
Closes: https://github.com/gentoo/gentoo/pull/35843
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'app-text')
-rw-r--r-- | app-text/scrollkeeper-dtd/scrollkeeper-dtd-1.0-r2.ebuild | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/app-text/scrollkeeper-dtd/scrollkeeper-dtd-1.0-r2.ebuild b/app-text/scrollkeeper-dtd/scrollkeeper-dtd-1.0-r2.ebuild new file mode 100644 index 000000000000..3e3ec497a77e --- /dev/null +++ b/app-text/scrollkeeper-dtd/scrollkeeper-dtd-1.0-r2.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DTD_FILE="scrollkeeper-omf.dtd" + +DESCRIPTION="DTD from the Scrollkeeper package" +HOMEPAGE="https://scrollkeeper.sourceforge.net/" +SRC_URI="https://scrollkeeper.sourceforge.net/dtds/scrollkeeper-omf-1.0/${DTD_FILE}" +S="${WORKDIR}" + +LICENSE="FDL-1.1" +SLOT="1.0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-solaris" + +RDEPEND=">=dev-libs/libxml2-2.4.19" +DEPEND="${RDEPEND}" + +src_unpack() { :; } + +src_configure() { :; } + +src_compile() { :; } + +src_install() { + insinto /usr/share/xml/scrollkeeper/dtds + doins "${DISTDIR}/${DTD_FILE}" +} + +pkg_postinst() { + einfo "Installing catalog..." + + # Install regular DOCTYPE catalog entry + "${EROOT}"/usr/bin/xmlcatalog --noout --add "public" \ + "-//OMF//DTD Scrollkeeper OMF Variant V1.0//EN" \ + "${EROOT}"/usr/share/xml/scrollkeeper/dtds/${DTD_FILE} \ + "${EROOT}"/etc/xml/catalog + + # Install catalog entry for calls like: xmllint --dtdvalid URL ... + "${EROOT}"/usr/bin/xmlcatalog --noout --add "system" \ + "${SRC_URI}" \ + "${EROOT}"/usr/share/xml/scrollkeeper/dtds/${DTD_FILE} \ + "${EROOT}"/etc/xml/catalog +} + +pkg_postrm() { + # Remove all sk-dtd from the cache + einfo "Cleaning catalog..." + + "${EROOT}"/usr/bin/xmlcatalog --noout --del \ + "${EROOT}"/usr/share/xml/scrollkeeper/dtds/${DTD_FILE} \ + "${EROOT}"/etc/xml/catalog +} |