1 |
commit: b1107bfd8424a504a5318e708104642e4c40f566 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Sep 4 09:12:27 2019 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Sep 11 17:57:29 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b1107bfd |
7 |
|
8 |
app-text/html401: Bump to EAPI 7, use sgml-catalog-r1 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
app-text/html401/files/html401-decl.diff | 4 +-- |
13 |
app-text/html401/html401-19991224-r4.ebuild | 43 +++++++++++++++++++++++++++++ |
14 |
2 files changed, 45 insertions(+), 2 deletions(-) |
15 |
|
16 |
diff --git a/app-text/html401/files/html401-decl.diff b/app-text/html401/files/html401-decl.diff |
17 |
index 27819a8afd1..e5c5bd4b22d 100644 |
18 |
--- a/app-text/html401/files/html401-decl.diff |
19 |
+++ b/app-text/html401/files/html401-decl.diff |
20 |
@@ -1,5 +1,5 @@ |
21 |
---- HTML4.cat.orig 2004-11-06 20:25:39.000000000 +0900 |
22 |
-+++ HTML4.cat 2004-11-06 21:16:08.543377286 +0900 |
23 |
+--- a/HTML4.cat 2004-11-06 20:25:39.000000000 +0900 |
24 |
++++ b/HTML4.cat 2004-11-06 21:16:08.543377286 +0900 |
25 |
@@ -1,5 +1,9 @@ |
26 |
OVERRIDE YES |
27 |
|
28 |
|
29 |
diff --git a/app-text/html401/html401-19991224-r4.ebuild b/app-text/html401/html401-19991224-r4.ebuild |
30 |
new file mode 100644 |
31 |
index 00000000000..8f75a577ac4 |
32 |
--- /dev/null |
33 |
+++ b/app-text/html401/html401-19991224-r4.ebuild |
34 |
@@ -0,0 +1,43 @@ |
35 |
+# Copyright 1999-2019 Gentoo Authors |
36 |
+# Distributed under the terms of the GNU General Public License v2 |
37 |
+ |
38 |
+EAPI=7 |
39 |
+inherit sgml-catalog-r1 |
40 |
+ |
41 |
+DESCRIPTION="DTDs for the HyperText Markup Language 4.01" |
42 |
+HOMEPAGE="http://www.w3.org/TR/html401/" |
43 |
+SRC_URI="http://www.w3.org/TR/html401/html40.tgz" |
44 |
+ |
45 |
+LICENSE="W3C" |
46 |
+SLOT="0" |
47 |
+KEYWORDS="~amd64 ~ppc ~s390 ~x86 ~amd64-linux ~x86-linux ~ppc-macos" |
48 |
+IUSE="" |
49 |
+ |
50 |
+S=${WORKDIR} |
51 |
+PATCHES=( "${FILESDIR}"/${PN}-decl.diff ) |
52 |
+ |
53 |
+src_install() { |
54 |
+ insinto /usr/share/sgml/${PN} |
55 |
+ doins HTML4.cat HTML4.decl *.dtd *.ent |
56 |
+ |
57 |
+ insinto /etc/sgml |
58 |
+ newins - html401.cat <<-EOF |
59 |
+ CATALOG "${EPREFIX}/usr/share/sgml/html401/HTML4.cat" |
60 |
+ EOF |
61 |
+ |
62 |
+ docinto html |
63 |
+ local dirs=( */ ) |
64 |
+ dodoc -r *.html "${dirs[@]%/}" |
65 |
+} |
66 |
+ |
67 |
+pkg_preinst() { |
68 |
+ # work-around old revision removing it |
69 |
+ cp "${ED}"/etc/sgml/html401.cat "${T}" || die |
70 |
+} |
71 |
+ |
72 |
+pkg_postinst() { |
73 |
+ if [[ ! -f ${EROOT}/etc/sgml/html401.cat ]]; then |
74 |
+ cp "${T}"/html401.cat "${EROOT}"/etc/sgml/ || die |
75 |
+ fi |
76 |
+ sgml-catalog-r1_pkg_postinst |
77 |
+} |