1 |
commit: 056bd29b9ccfb8a7cccd4095856deb633ac31884 |
2 |
Author: Mikle Kolyada <zlogene <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jan 2 23:06:49 2018 +0000 |
4 |
Commit: Mikle Kolyada <zlogene <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jan 2 23:06:49 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=056bd29b |
7 |
|
8 |
app-text/sgml-common: drop old EAPI=3 revision |
9 |
|
10 |
Package-Manager: Portage-2.3.13, Repoman-2.3.3 |
11 |
|
12 |
app-text/sgml-common/sgml-common-0.6.3-r5.ebuild | 84 ------------------------ |
13 |
1 file changed, 84 deletions(-) |
14 |
|
15 |
diff --git a/app-text/sgml-common/sgml-common-0.6.3-r5.ebuild b/app-text/sgml-common/sgml-common-0.6.3-r5.ebuild |
16 |
deleted file mode 100644 |
17 |
index adb5d0c161d..00000000000 |
18 |
--- a/app-text/sgml-common/sgml-common-0.6.3-r5.ebuild |
19 |
+++ /dev/null |
20 |
@@ -1,84 +0,0 @@ |
21 |
-# Copyright 1999-2017 Gentoo Foundation |
22 |
-# Distributed under the terms of the GNU General Public License v2 |
23 |
- |
24 |
-EAPI="3" |
25 |
- |
26 |
-inherit eutils prefix |
27 |
- |
28 |
-DESCRIPTION="Base ISO character entities and utilities for SGML" |
29 |
-HOMEPAGE="http://www.iso.ch/cate/3524030.html" |
30 |
-#SRC_URI="mirror://kde/devel/docbook/SOURCES/${P}.tgz" |
31 |
-SRC_URI="https://dev.gentoo.org/~floppym/dist/${PN}/${P}-gentoo.tar.gz" |
32 |
- |
33 |
-LICENSE="GPL-2" |
34 |
-SLOT="0" |
35 |
-KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
36 |
-IUSE="" |
37 |
- |
38 |
-DEPEND="" |
39 |
-RDEPEND="" |
40 |
- |
41 |
-src_prepare() { |
42 |
- # We use a hacked version of install-catalog that supports the ROOT |
43 |
- # variable, puts quotes around the CATALOG files, and can be prefixed. |
44 |
- cp "${FILESDIR}/${P}-install-catalog.in" "${S}/bin/install-catalog.in" |
45 |
- |
46 |
- epatch "${FILESDIR}"/${P}-prefix.patch |
47 |
- eprefixify bin/install-catalog.in bin/sgmlwhich config/sgml.conf |
48 |
-} |
49 |
- |
50 |
-src_configure() { |
51 |
- econf --htmldir="${EPREFIX}/usr/share/doc/${PF}/html" |
52 |
-} |
53 |
- |
54 |
-src_install() { |
55 |
- emake DESTDIR="${D}" install || die "emake install failed" |
56 |
-} |
57 |
- |
58 |
-pkg_postinst() { |
59 |
- local installer="${EROOT}usr/bin/install-catalog" |
60 |
- if [[ ! -x ${installer} ]]; then |
61 |
- eerror "install-catalog not found! Something went wrong!" |
62 |
- die "install-catalog not found! Something went wrong!" |
63 |
- fi |
64 |
- |
65 |
- einfo "Installing Catalogs..." |
66 |
- "$installer" --add \ |
67 |
- "${EPREFIX}"/etc/sgml/sgml-ent.cat \ |
68 |
- "${EPREFIX}"/usr/share/sgml/sgml-iso-entities-8879.1986/catalog |
69 |
- "$installer" --add \ |
70 |
- "${EPREFIX}"/etc/sgml/sgml-docbook.cat \ |
71 |
- "${EPREFIX}"/etc/sgml/sgml-ent.cat |
72 |
- |
73 |
- local file |
74 |
- for file in `find "${EROOT}etc/sgml/" -name "*.cat"` "${EROOT}etc/sgml/catalog" |
75 |
- do |
76 |
- einfo "Fixing ${file}" |
77 |
- awk '/"$/ { print $1 " " $2 } |
78 |
- ! /"$/ { print $1 " \"" $2 "\"" }' ${file} > ${file}.new |
79 |
- mv ${file}.new ${file} |
80 |
- done |
81 |
-} |
82 |
- |
83 |
-pkg_prerm() { |
84 |
- cp "${EROOT}usr/bin/install-catalog" "${T}" |
85 |
-} |
86 |
- |
87 |
-pkg_postrm() { |
88 |
- if [ ! -x "${T}/install-catalog" ]; then |
89 |
- return |
90 |
- fi |
91 |
- |
92 |
- einfo "Removing Catalogs..." |
93 |
- if [ -e "${EROOT}etc/sgml/sgml-ent.cat" ]; then |
94 |
- "${T}"/install-catalog --remove \ |
95 |
- "${EPREFIX}"/etc/sgml/sgml-ent.cat \ |
96 |
- "${EPREFIX}"/usr/share/sgml/sgml-iso-entities-8879.1986/catalog |
97 |
- fi |
98 |
- |
99 |
- if [ -e "${EROOT}etc/sgml/sgml-docbook.cat" ]; then |
100 |
- "${T}"/install-catalog --remove \ |
101 |
- "${EPREFIX}"/etc/sgml/sgml-docbook.cat \ |
102 |
- "${EPREFIX}"/etc/sgml/sgml-ent.cat |
103 |
- fi |
104 |
-} |