1 |
commit: 8122eeeaf6dc061b64eb41f64ebfcce1e3a2a6db |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Nov 30 02:15:58 2020 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Nov 30 02:19:18 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/kde-sunset.git/commit/?id=8122eeea |
7 |
|
8 |
sgml-catalog.eclass: Remove unused eclass |
9 |
|
10 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
11 |
|
12 |
eclass/sgml-catalog.eclass | 106 --------------------------------------------- |
13 |
1 file changed, 106 deletions(-) |
14 |
|
15 |
diff --git a/eclass/sgml-catalog.eclass b/eclass/sgml-catalog.eclass |
16 |
deleted file mode 100644 |
17 |
index 17940767..00000000 |
18 |
--- a/eclass/sgml-catalog.eclass |
19 |
+++ /dev/null |
20 |
@@ -1,106 +0,0 @@ |
21 |
-# Copyright 1999-2020 Gentoo Authors |
22 |
-# Distributed under the terms of the GNU General Public License v2 |
23 |
- |
24 |
-# @DEAD |
25 |
-# All consumers are gone. Removal in 14 days |
26 |
- |
27 |
-# @ECLASS: sgml-catalog.eclass |
28 |
-# @MAINTAINER: |
29 |
-# kde-sunset overlay maintainers |
30 |
-# @AUTHOR: |
31 |
-# Author Matthew Turk <satai@g.o> |
32 |
-# @BLURB: Functions for installing SGML catalogs |
33 |
- |
34 |
-case ${EAPI:-0} in |
35 |
- 0|1|2|3|4|5) inherit base ;; |
36 |
- *) ;; |
37 |
-esac |
38 |
- |
39 |
-DEPEND=">=app-text/sgml-common-0.6.3-r2" |
40 |
- |
41 |
-# @ECLASS-VARIABLE: SGML_TOINSTALL |
42 |
-# @DESCRIPTION: |
43 |
-# An array of catalogs, arranged in pairs. |
44 |
-# Each pair consists of a centralized catalog followed by an ordinary catalog. |
45 |
-SGML_TOINSTALL=() |
46 |
- |
47 |
-# @FUNCTION: sgml-catalog_cat_include |
48 |
-# @USAGE: <centralized catalog> <ordinary catalog> |
49 |
-# @DESCRIPTION: |
50 |
-# Appends a catalog pair to the SGML_TOINSTALL array. |
51 |
-sgml-catalog_cat_include() { |
52 |
- debug-print function $FUNCNAME $* |
53 |
- SGML_TOINSTALL+=("$1" "$2") |
54 |
-} |
55 |
- |
56 |
-# @FUNCTION: sgml-catalog_cat_doinstall |
57 |
-# @USAGE: <centralized catalog> <ordinary catalog> |
58 |
-# @DESCRIPTION: |
59 |
-# Adds an ordinary catalog to a centralized catalog. |
60 |
-sgml-catalog_cat_doinstall() { |
61 |
- debug-print function $FUNCNAME $* |
62 |
- has "${EAPI:-0}" 0 1 2 && ! use prefix && EPREFIX= |
63 |
- "${EPREFIX}"/usr/bin/install-catalog --add "${EPREFIX}$1" "${EPREFIX}$2" &>/dev/null |
64 |
-} |
65 |
- |
66 |
-# @FUNCTION: sgml-catalog_cat_doremove |
67 |
-# @USAGE: <centralized catalog> <ordinary catalog> |
68 |
-# @DESCRIPTION: |
69 |
-# Removes an ordinary catalog from a centralized catalog. |
70 |
-sgml-catalog_cat_doremove() { |
71 |
- debug-print function $FUNCNAME $* |
72 |
- has "${EAPI:-0}" 0 1 2 && ! use prefix && EPREFIX= |
73 |
- "${EPREFIX}"/usr/bin/install-catalog --remove "${EPREFIX}$1" "${EPREFIX}$2" &>/dev/null |
74 |
-} |
75 |
- |
76 |
-sgml-catalog_pkg_postinst() { |
77 |
- debug-print function $FUNCNAME $* |
78 |
- has "${EAPI:-0}" 0 1 2 && ! use prefix && EPREFIX= |
79 |
- |
80 |
- set -- "${SGML_TOINSTALL[@]}" |
81 |
- |
82 |
- while (( $# )); do |
83 |
- if [[ ! -e "${EPREFIX}$2" ]]; then |
84 |
- ewarn "${EPREFIX}$2 doesn't appear to exist, although it ought to!" |
85 |
- shift 2 |
86 |
- continue |
87 |
- fi |
88 |
- einfo "Now adding ${EPREFIX}$2 to ${EPREFIX}$1 and ${EPREFIX}/etc/sgml/catalog" |
89 |
- sgml-catalog_cat_doinstall "$1" "$2" |
90 |
- shift 2 |
91 |
- done |
92 |
- sgml-catalog_cleanup |
93 |
-} |
94 |
- |
95 |
-sgml-catalog_pkg_prerm() { |
96 |
- sgml-catalog_cleanup |
97 |
-} |
98 |
- |
99 |
-sgml-catalog_pkg_postrm() { |
100 |
- debug-print function $FUNCNAME $* |
101 |
- has "${EAPI:-0}" 0 1 2 && ! use prefix && EPREFIX= |
102 |
- |
103 |
- set -- "${SGML_TOINSTALL[@]}" |
104 |
- |
105 |
- while (( $# )); do |
106 |
- einfo "Now removing ${EPREFIX}$2 from ${EPREFIX}$1 and ${EPREFIX}/etc/sgml/catalog" |
107 |
- sgml-catalog_cat_doremove "$1" "$2" |
108 |
- shift 2 |
109 |
- done |
110 |
-} |
111 |
- |
112 |
-sgml-catalog_cleanup() { |
113 |
- has "${EAPI:-0}" 0 1 2 && ! use prefix && EPREFIX= |
114 |
- if [ -e "${EPREFIX}/usr/bin/gensgmlenv" ] |
115 |
- then |
116 |
- einfo Regenerating SGML environment variables ... |
117 |
- gensgmlenv |
118 |
- grep -v export "${EPREFIX}/etc/sgml/sgml.env" > "${EPREFIX}/etc/env.d/93sgmltools-lite" |
119 |
- fi |
120 |
-} |
121 |
- |
122 |
-sgml-catalog_src_compile() { |
123 |
- return |
124 |
-} |
125 |
- |
126 |
-EXPORT_FUNCTIONS pkg_postrm pkg_postinst src_compile pkg_prerm |