summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas K. Hüttel <dilfridge@gentoo.org>2018-01-29 00:13:04 +0100
committerAndreas K. Hüttel <dilfridge@gentoo.org>2018-01-29 00:13:19 +0100
commitbaf0e1a9320029b5b58882b9032735941c84620d (patch)
tree15d9734958eb6733804b6a07389a90919645c570
parentmedia-tv/plex-media-server: Stabilizing 1.10.1 and Fixing #644694. (diff)
downloadgentoo-baf0e1a9320029b5b58882b9032735941c84620d.tar.gz
gentoo-baf0e1a9320029b5b58882b9032735941c84620d.tar.bz2
gentoo-baf0e1a9320029b5b58882b9032735941c84620d.zip
app-text/scrollkeeper-dtd: EAPI bump, bug 642308
Bug: https://bugs.gentoo.org/642308 Package-Manager: Portage-2.3.20, Repoman-2.3.6
-rw-r--r--app-text/scrollkeeper-dtd/scrollkeeper-dtd-1.0-r1.ebuild57
1 files changed, 57 insertions, 0 deletions
diff --git a/app-text/scrollkeeper-dtd/scrollkeeper-dtd-1.0-r1.ebuild b/app-text/scrollkeeper-dtd/scrollkeeper-dtd-1.0-r1.ebuild
new file mode 100644
index 00000000000..af4997b06e6
--- /dev/null
+++ b/app-text/scrollkeeper-dtd/scrollkeeper-dtd-1.0-r1.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DTD_FILE="scrollkeeper-omf.dtd"
+
+DESCRIPTION="DTD from the Scrollkeeper package"
+HOMEPAGE="http://scrollkeeper.sourceforge.net/"
+SRC_URI="http://scrollkeeper.sourceforge.net/dtds/scrollkeeper-omf-1.0/${DTD_FILE}"
+
+LICENSE="FDL-1.1"
+SLOT="1.0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x64-solaris ~x86-solaris"
+IUSE=""
+
+RDEPEND=">=dev-libs/libxml2-2.4.19"
+DEPEND="${RDEPEND}
+ !<app-text/scrollkeeper-9999-r1"
+
+S="${WORKDIR}"
+
+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
+}