summaryrefslogtreecommitdiff
path: root/app-text/scrollkeeper-dtd
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-01-31 20:30:04 +0000
committerV3n3RiX <venerix@redcorelinux.org>2018-01-31 20:30:04 +0000
commit4650985dd0e898b82e0d2ec225931297d4fadccf (patch)
treeeb0e8002cf3ebf1009110b6fec47fa90f873d824 /app-text/scrollkeeper-dtd
parent67f76a858f1ac826bd8a550d756d9ec6e340ed4f (diff)
gentoo resync : 31.01.2018
Diffstat (limited to 'app-text/scrollkeeper-dtd')
-rw-r--r--app-text/scrollkeeper-dtd/Manifest1
-rw-r--r--app-text/scrollkeeper-dtd/scrollkeeper-dtd-1.0-r1.ebuild57
2 files changed, 58 insertions, 0 deletions
diff --git a/app-text/scrollkeeper-dtd/Manifest b/app-text/scrollkeeper-dtd/Manifest
index c470798ba651..1cec2a5d3a9d 100644
--- a/app-text/scrollkeeper-dtd/Manifest
+++ b/app-text/scrollkeeper-dtd/Manifest
@@ -1,3 +1,4 @@
DIST scrollkeeper-omf.dtd 11031 BLAKE2B 47a52f587447f30c1c93ebdb4d1339d714260c7bcf16711591edb0b0f8a41d6694a1f64f0306d0c296c032869176b884adb50762eaa445f50684820effcb9399 SHA512 edb38d85352d0ed4a4fd1eea108cd88696d2f0759bc4402d4b7f85aa56b5647ca5a518de14deb3a429344ede474d42a64b90100e5d3c772ae6e5e47a47d86ff0
+EBUILD scrollkeeper-dtd-1.0-r1.ebuild 1551 BLAKE2B def922d94f2dd8c72bdbee77f3e368ff2fd2d22cb5ad84f603b888994a7590469fa1267c4eb993b78c05fe1febea0e64fafcc31099aa6a43a97b06e48f76b491 SHA512 59121bff926e4fb8ca5dcf8d0126e3393b1ac7d30b88e530ffef2bb8f3dbe08bfb2c9bb8fdd976af67f3d4422e2bd27bb4a0297402d4ff451c1beee5339048c4
EBUILD scrollkeeper-dtd-1.0.ebuild 1524 BLAKE2B 4cc68dac41877e9383b18c6003ac55e2a79f70047db2769c29e445f5b184cacaec9008838474b4fa0a708831cecf255a8cedadadb1da22aca54b9df84319e23c SHA512 38fc1b0f643a7ab4e60470c130f139cecdab0cf3b890a20d2ad1acac73570b8519d38d8d56c0dac7bf5c7e6d4a499cb39c9cd5137b4be8afe9b4d05a086798f2
MISC metadata.xml 335 BLAKE2B 5557a7230bee25bc8e1340443746da2d41568635c68904549b2ac2f6227a70444cf2753e6656de56c290c1a96e18dbe882401bcba68e271259cafaa44402a1f1 SHA512 c0180e1504b25daba0b5f2a6556793cf721eca12a4c488a57e7960b9b096129e5f535a24e1da1ffa6b1d9e8b646325edcebd00e5f7e908ace3d81d818e49f8e3
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 000000000000..af4997b06e68
--- /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
+}