1 |
commit: baf0e1a9320029b5b58882b9032735941c84620d |
2 |
Author: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jan 28 23:13:04 2018 +0000 |
4 |
Commit: Andreas Hüttel <dilfridge <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jan 28 23:13:19 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=baf0e1a9 |
7 |
|
8 |
app-text/scrollkeeper-dtd: EAPI bump, bug 642308 |
9 |
|
10 |
Bug: https://bugs.gentoo.org/642308 |
11 |
Package-Manager: Portage-2.3.20, Repoman-2.3.6 |
12 |
|
13 |
.../scrollkeeper-dtd-1.0-r1.ebuild | 57 ++++++++++++++++++++++ |
14 |
1 file changed, 57 insertions(+) |
15 |
|
16 |
diff --git a/app-text/scrollkeeper-dtd/scrollkeeper-dtd-1.0-r1.ebuild b/app-text/scrollkeeper-dtd/scrollkeeper-dtd-1.0-r1.ebuild |
17 |
new file mode 100644 |
18 |
index 00000000000..af4997b06e6 |
19 |
--- /dev/null |
20 |
+++ b/app-text/scrollkeeper-dtd/scrollkeeper-dtd-1.0-r1.ebuild |
21 |
@@ -0,0 +1,57 @@ |
22 |
+# Copyright 1999-2018 Gentoo Foundation |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+ |
25 |
+EAPI=6 |
26 |
+ |
27 |
+DTD_FILE="scrollkeeper-omf.dtd" |
28 |
+ |
29 |
+DESCRIPTION="DTD from the Scrollkeeper package" |
30 |
+HOMEPAGE="http://scrollkeeper.sourceforge.net/" |
31 |
+SRC_URI="http://scrollkeeper.sourceforge.net/dtds/scrollkeeper-omf-1.0/${DTD_FILE}" |
32 |
+ |
33 |
+LICENSE="FDL-1.1" |
34 |
+SLOT="1.0" |
35 |
+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" |
36 |
+IUSE="" |
37 |
+ |
38 |
+RDEPEND=">=dev-libs/libxml2-2.4.19" |
39 |
+DEPEND="${RDEPEND} |
40 |
+ !<app-text/scrollkeeper-9999-r1" |
41 |
+ |
42 |
+S="${WORKDIR}" |
43 |
+ |
44 |
+src_unpack() { :; } |
45 |
+ |
46 |
+src_configure() { :; } |
47 |
+ |
48 |
+src_compile() { :; } |
49 |
+ |
50 |
+src_install() { |
51 |
+ insinto /usr/share/xml/scrollkeeper/dtds |
52 |
+ doins "${DISTDIR}/${DTD_FILE}" |
53 |
+} |
54 |
+ |
55 |
+pkg_postinst() { |
56 |
+ einfo "Installing catalog..." |
57 |
+ |
58 |
+ # Install regular DOCTYPE catalog entry |
59 |
+ "${EROOT}"usr/bin/xmlcatalog --noout --add "public" \ |
60 |
+ "-//OMF//DTD Scrollkeeper OMF Variant V1.0//EN" \ |
61 |
+ "${EROOT}"usr/share/xml/scrollkeeper/dtds/${DTD_FILE} \ |
62 |
+ "${EROOT}"etc/xml/catalog |
63 |
+ |
64 |
+ # Install catalog entry for calls like: xmllint --dtdvalid URL ... |
65 |
+ "${EROOT}"usr/bin/xmlcatalog --noout --add "system" \ |
66 |
+ "${SRC_URI}" \ |
67 |
+ "${EROOT}"usr/share/xml/scrollkeeper/dtds/${DTD_FILE} \ |
68 |
+ "${EROOT}"etc/xml/catalog |
69 |
+} |
70 |
+ |
71 |
+pkg_postrm() { |
72 |
+ # Remove all sk-dtd from the cache |
73 |
+ einfo "Cleaning catalog..." |
74 |
+ |
75 |
+ "${EROOT}"usr/bin/xmlcatalog --noout --del \ |
76 |
+ "${EROOT}"usr/share/xml/scrollkeeper/dtds/${DTD_FILE} \ |
77 |
+ "${EROOT}"etc/xml/catalog |
78 |
+} |