summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Turk <satai@gentoo.org>2002-09-12 07:20:19 +0000
committerMatthew Turk <satai@gentoo.org>2002-09-12 07:20:19 +0000
commitce0ddad15301085146035f851ed63b7c44189db9 (patch)
tree3ea3cf266028ea4d2ba8ec2a3b00338de307c9d9 /app-text
parentadded keywords (diff)
downloadgentoo-2-ce0ddad15301085146035f851ed63b7c44189db9.tar.gz
gentoo-2-ce0ddad15301085146035f851ed63b7c44189db9.tar.bz2
gentoo-2-ce0ddad15301085146035f851ed63b7c44189db9.zip
Added much more robust file checking to several of these; hopefully this will
clear up any outstanding issues with sgml catalogs. This should also fix the behavior seen in bug 6854.
Diffstat (limited to 'app-text')
-rw-r--r--app-text/docbook-dsssl-stylesheets/docbook-dsssl-stylesheets-1.77.ebuild20
-rw-r--r--app-text/docbook-sgml-dtd/ChangeLog22
-rw-r--r--app-text/docbook-sgml-dtd/docbook-sgml-dtd-3.0.ebuild17
-rw-r--r--app-text/docbook-sgml-dtd/docbook-sgml-dtd-3.1.ebuild20
-rw-r--r--app-text/docbook-sgml-dtd/docbook-sgml-dtd-4.0.ebuild17
-rw-r--r--app-text/docbook-sgml-dtd/docbook-sgml-dtd-4.1.ebuild18
-rw-r--r--app-text/gentoo-guide-xml-dtd/ChangeLog7
-rw-r--r--app-text/gentoo-guide-xml-dtd/gentoo-guide-xml-dtd-2.1.ebuild7
-rw-r--r--app-text/sgml-common/ChangeLog6
-rw-r--r--app-text/sgml-common/sgml-common-0.6.3-r2.ebuild8
-rw-r--r--app-text/sgmltools-lite/ChangeLog7
-rw-r--r--app-text/sgmltools-lite/sgmltools-lite-3.0.3-r5.ebuild9
12 files changed, 116 insertions, 42 deletions
diff --git a/app-text/docbook-dsssl-stylesheets/docbook-dsssl-stylesheets-1.77.ebuild b/app-text/docbook-dsssl-stylesheets/docbook-dsssl-stylesheets-1.77.ebuild
index 8e06ca328c5d..97ec4fc2d10e 100644
--- a/app-text/docbook-dsssl-stylesheets/docbook-dsssl-stylesheets-1.77.ebuild
+++ b/app-text/docbook-dsssl-stylesheets/docbook-dsssl-stylesheets-1.77.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
-# $Header: /var/cvsroot/gentoo-x86/app-text/docbook-dsssl-stylesheets/docbook-dsssl-stylesheets-1.77.ebuild,v 1.3 2002/08/16 02:42:01 murphy Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-text/docbook-dsssl-stylesheets/docbook-dsssl-stylesheets-1.77.ebuild,v 1.4 2002/09/12 07:20:18 satai Exp $
MY_P=${P/-stylesheets/}
S=${WORKDIR}/${MY_P}
@@ -45,11 +45,17 @@ pkg_postinst() {
pkg_prerm() {
if [ -x "/usr/bin/install-catalog" ] && [ "$ROOT" = "/" ]
then
- install-catalog --remove \
- /etc/sgml/dsssl-docbook-stylesheets.cat \
- /usr/share/sgml/docbook/dsssl-stylesheets-${PV}/catalog
- install-catalog --remove \
- /etc/sgml/sgml-docbook.cat \
- /etc/sgml/dsssl-docbook-stylesheets.cat
+ if [ -e /etc/sgml/dsssl-docbook-stylesheets.cat ]
+ then
+ install-catalog --remove \
+ /etc/sgml/dsssl-docbook-stylesheets.cat \
+ /usr/share/sgml/docbook/dsssl-stylesheets-${PV}/catalog
+ fi
+ if [ -e /etc/sgml/sgml-docbook.cat ]
+ then
+ install-catalog --remove \
+ /etc/sgml/sgml-docbook.cat \
+ /etc/sgml/dsssl-docbook-stylesheets.cat
+ fi
fi
}
diff --git a/app-text/docbook-sgml-dtd/ChangeLog b/app-text/docbook-sgml-dtd/ChangeLog
index 1307cd509b5f..201e441560aa 100644
--- a/app-text/docbook-sgml-dtd/ChangeLog
+++ b/app-text/docbook-sgml-dtd/ChangeLog
@@ -1,6 +1,26 @@
# ChangeLog for app-text/docbook-sgml-dtd
# Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL
-# $Header: /var/cvsroot/gentoo-x86/app-text/docbook-sgml-dtd/ChangeLog,v 1.3 2002/08/02 17:42:49 phoenix Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-text/docbook-sgml-dtd/ChangeLog,v 1.4 2002/09/12 07:20:19 satai Exp $
+
+*docbook-sgml-dtd-4.0.ebuild (12 Sep 2002)
+
+ 12 Sep 2002; satai <satai@gentoo.org> docbook-sgml-dtd-4.0.ebuild :
+ Added more robust file checking.
+
+*docbook-sgml-dtd-4.1.ebuild (12 Sep 2002)
+
+ 12 Sep 2002; satai <satai@gentoo.org> docbook-sgml-dtd-4.1.ebuild :
+ Added more robust file checking.
+
+*docbook-sgml-dtd-3.0.ebuild (12 Sep 2002)
+
+ 12 Sep 2002; satai <satai@gentoo.org> docbook-sgml-dtd-3.0.ebuild :
+ Added more robust file checking.
+
+*docbook-sgml-dtd-3.1.ebuild (12 Sep 2002)
+
+ 12 Sep 2002; satai <satai@gentoo.org> docbook-sgml-dtd-3.1.ebuild :
+ Added more robust file checking. Also added pkg_prerm.
*docbook-sgml-dtd-4.0.ebuild (2 August 2002)
diff --git a/app-text/docbook-sgml-dtd/docbook-sgml-dtd-3.0.ebuild b/app-text/docbook-sgml-dtd/docbook-sgml-dtd-3.0.ebuild
index 0be814f0dd1b..730c82a48db4 100644
--- a/app-text/docbook-sgml-dtd/docbook-sgml-dtd-3.0.ebuild
+++ b/app-text/docbook-sgml-dtd/docbook-sgml-dtd-3.0.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
-# $Header: /var/cvsroot/gentoo-x86/app-text/docbook-sgml-dtd/docbook-sgml-dtd-3.0.ebuild,v 1.8 2002/08/16 02:42:01 murphy Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-text/docbook-sgml-dtd/docbook-sgml-dtd-3.0.ebuild,v 1.9 2002/09/12 07:20:19 satai Exp $
MY_P="docbk30"
S=${WORKDIR}/${P}
@@ -42,11 +42,14 @@ pkg_postinst() {
}
pkg_prerm() {
if [ -x "/usr/bin/install-catalog" ] && [ "$ROOT" = "/" ] ; then
- install-catalog --remove \
- /etc/sgml/sgml-docbook-${PV}.cat \
- /usr/share/sgml/docbook/sgml-dtd-${PV}/catalog
- install-catalog --remove \
- /etc/sgml/sgml-docbook-${PV}.cat \
- /etc/sgml/sgml-docbook.cat
+ if [ -e /etc/sgml/sgml-docbook-${PV}.cat ]
+ then
+ install-catalog --remove \
+ /etc/sgml/sgml-docbook-${PV}.cat \
+ /usr/share/sgml/docbook/sgml-dtd-${PV}/catalog
+ install-catalog --remove \
+ /etc/sgml/sgml-docbook-${PV}.cat \
+ /etc/sgml/sgml-docbook.cat
+ fi
fi
}
diff --git a/app-text/docbook-sgml-dtd/docbook-sgml-dtd-3.1.ebuild b/app-text/docbook-sgml-dtd/docbook-sgml-dtd-3.1.ebuild
index 3f8c672091f2..4f0c9fdf855b 100644
--- a/app-text/docbook-sgml-dtd/docbook-sgml-dtd-3.1.ebuild
+++ b/app-text/docbook-sgml-dtd/docbook-sgml-dtd-3.1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
-# $Header: /var/cvsroot/gentoo-x86/app-text/docbook-sgml-dtd/docbook-sgml-dtd-3.1.ebuild,v 1.9 2002/08/16 02:42:01 murphy Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-text/docbook-sgml-dtd/docbook-sgml-dtd-3.1.ebuild,v 1.10 2002/09/12 07:20:19 satai Exp $
MY_P="docbk31"
S=${WORKDIR}/${P}
@@ -36,9 +36,23 @@ pkg_postinst() {
install-catalog --add \
/etc/sgml/sgml-docbook-${PV}.cat \
/usr/share/sgml/docbook/sgml-dtd-${PV}/catalog
-
- install-catalog --add \
+ nstall-catalog --add \
/etc/sgml/sgml-docbook-${PV}.cat \
/etc/sgml/sgml-docbook.cat
fi
}
+
+pkg_prerm() {
+ if [ -x "/usr/bin/install-catalog" ] && [ "$ROOT" = "/" ]
+ then
+ if [ -e /etc/sgml/sgml-docbook-${PV}.cat ]
+ then
+ install-catalog --remove \
+ /etc/sgml/sgml-docbook-${PV}.cat \
+ /usr/share/sgml/docbook/sgml-dtd-${PV}/catalog
+ install-catalog --remove \
+ /etc/sgml/sgml-docbook-${PV}.cat \
+ /etc/sgml/sgml-docbook.cat
+ fi
+ fi
+}
diff --git a/app-text/docbook-sgml-dtd/docbook-sgml-dtd-4.0.ebuild b/app-text/docbook-sgml-dtd/docbook-sgml-dtd-4.0.ebuild
index 33feb1e9125f..a8273afd12b2 100644
--- a/app-text/docbook-sgml-dtd/docbook-sgml-dtd-4.0.ebuild
+++ b/app-text/docbook-sgml-dtd/docbook-sgml-dtd-4.0.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
-# $Header: /var/cvsroot/gentoo-x86/app-text/docbook-sgml-dtd/docbook-sgml-dtd-4.0.ebuild,v 1.8 2002/08/16 02:42:01 murphy Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-text/docbook-sgml-dtd/docbook-sgml-dtd-4.0.ebuild,v 1.9 2002/09/12 07:20:19 satai Exp $
MY_P="docbk40"
S=${WORKDIR}/${P}
@@ -45,11 +45,14 @@ pkg_postinst() {
pkg_prerm() {
if [ -x "/usr/bin/install-catalog" ] && [ "$ROOT" = "/" ]
then
- install-catalog --remove \
- /etc/sgml/sgml-docbook-${PV}.cat \
- /usr/share/sgml/docbook/sgml-dtd-${PV}/catalog
- install-catalog --remove \
- /etc/sgml/sgml-docbook-${PV}.cat \
- /etc/sgml/sgml-docbook.cat
+ if [ -e /etc/sgml/sgml-docbook-${PV}.cat ]
+ then
+ install-catalog --remove \
+ /etc/sgml/sgml-docbook-${PV}.cat \
+ /usr/share/sgml/docbook/sgml-dtd-${PV}/catalog
+ install-catalog --remove \
+ /etc/sgml/sgml-docbook-${PV}.cat \
+ /etc/sgml/sgml-docbook.cat
+ fi
fi
}
diff --git a/app-text/docbook-sgml-dtd/docbook-sgml-dtd-4.1.ebuild b/app-text/docbook-sgml-dtd/docbook-sgml-dtd-4.1.ebuild
index 94481c1e52b4..af692bbcacf5 100644
--- a/app-text/docbook-sgml-dtd/docbook-sgml-dtd-4.1.ebuild
+++ b/app-text/docbook-sgml-dtd/docbook-sgml-dtd-4.1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
-# $Header: /var/cvsroot/gentoo-x86/app-text/docbook-sgml-dtd/docbook-sgml-dtd-4.1.ebuild,v 1.8 2002/08/16 02:42:01 murphy Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-text/docbook-sgml-dtd/docbook-sgml-dtd-4.1.ebuild,v 1.9 2002/09/12 07:20:19 satai Exp $
MY_P="docbk41"
S=${WORKDIR}/${P}
@@ -45,12 +45,14 @@ pkg_postinst() {
pkg_prerm() {
if [ -x "/usr/bin/install-catalog" ] && [ "$ROOT" = "/" ]
then
- install-catalog --remove \
- /etc/sgml/sgml-docbook-${PV}.cat \
- /usr/share/sgml/docbook/sgml-dtd-${PV}/catalog
-
- install-catalog --remove \
- /etc/sgml/sgml-docbook-${PV}.cat \
- /etc/sgml/sgml-docbook.cat
+ if [ -e /etc/sgml/sgml-docbook-${PV}.cat ]
+ then
+ install-catalog --remove \
+ /etc/sgml/sgml-docbook-${PV}.cat \
+ /usr/share/sgml/docbook/sgml-dtd-${PV}/catalog
+ install-catalog --remove \
+ /etc/sgml/sgml-docbook-${PV}.cat \
+ /etc/sgml/sgml-docbook.cat
+ fi
fi
}
diff --git a/app-text/gentoo-guide-xml-dtd/ChangeLog b/app-text/gentoo-guide-xml-dtd/ChangeLog
index 3c36f3257ca9..e7a257d21887 100644
--- a/app-text/gentoo-guide-xml-dtd/ChangeLog
+++ b/app-text/gentoo-guide-xml-dtd/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for app-text/gentoo-guide-xml-dtd
# Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL
-# $Header: /var/cvsroot/gentoo-x86/app-text/gentoo-guide-xml-dtd/ChangeLog,v 1.2 2002/08/02 17:42:49 phoenix Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-text/gentoo-guide-xml-dtd/ChangeLog,v 1.3 2002/09/12 07:20:19 satai Exp $
+
+*gentoo-guide-xml-dtd-2.1 (12 Sep 2002)
+
+ 12 Sep 2002; satai <satai@gentoo.org> gentoo-guide-xml-dtd-2.1.ebuild:
+ Added more robust file checking.
*gentoo-guide-xml-dtd-2.1 (1 Feb 2002)
diff --git a/app-text/gentoo-guide-xml-dtd/gentoo-guide-xml-dtd-2.1.ebuild b/app-text/gentoo-guide-xml-dtd/gentoo-guide-xml-dtd-2.1.ebuild
index 1db9272abf38..be354be83ba8 100644
--- a/app-text/gentoo-guide-xml-dtd/gentoo-guide-xml-dtd-2.1.ebuild
+++ b/app-text/gentoo-guide-xml-dtd/gentoo-guide-xml-dtd-2.1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
-# $Header: /var/cvsroot/gentoo-x86/app-text/gentoo-guide-xml-dtd/gentoo-guide-xml-dtd-2.1.ebuild,v 1.7 2002/08/16 02:42:01 murphy Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-text/gentoo-guide-xml-dtd/gentoo-guide-xml-dtd-2.1.ebuild,v 1.8 2002/09/12 07:20:19 satai Exp $
S=${WORKDIR}
DESCRIPTION="DTD for Gentoo-Guide Style XML Files"
@@ -30,5 +30,8 @@ pkg_postinst() {
}
pkg_prerm() {
- install-catalog --remove /etc/sgml/gentoo-guide.cat /usr/share/sgml/guide/catalog
+ if [ -e /etc/sgml/gentoo-guide.cat ]
+ then
+ install-catalog --remove /etc/sgml/gentoo-guide.cat /usr/share/sgml/guide/catalog
+ fi
}
diff --git a/app-text/sgml-common/ChangeLog b/app-text/sgml-common/ChangeLog
index 9fe61f96a4b4..a7a9c78f4ebb 100644
--- a/app-text/sgml-common/ChangeLog
+++ b/app-text/sgml-common/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for app-text/sgml-common
# Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL
-# $Header: /var/cvsroot/gentoo-x86/app-text/sgml-common/ChangeLog,v 1.7 2002/08/02 17:42:50 phoenix Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-text/sgml-common/ChangeLog,v 1.8 2002/09/12 07:20:19 satai Exp $
+
+*sgml-common-0.6.3-r2 (12 Sep 2002)
+ 12 Sep 2002; satai <satai@gentoo.org> sgml-common-0.6.3-r2.ebuild :
+ Added more robust file checking.
*sgml-common-0.6.3-r2 (12 Jul 2002)
diff --git a/app-text/sgml-common/sgml-common-0.6.3-r2.ebuild b/app-text/sgml-common/sgml-common-0.6.3-r2.ebuild
index c7459f98ec52..14556f3af5b2 100644
--- a/app-text/sgml-common/sgml-common-0.6.3-r2.ebuild
+++ b/app-text/sgml-common/sgml-common-0.6.3-r2.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
-# $Header: /var/cvsroot/gentoo-x86/app-text/sgml-common/sgml-common-0.6.3-r2.ebuild,v 1.4 2002/08/16 02:42:02 murphy Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-text/sgml-common/sgml-common-0.6.3-r2.ebuild,v 1.5 2002/09/12 07:20:19 satai Exp $
S=${WORKDIR}/${P}
DESCRIPTION="Base ISO character entities and utilities for SGML"
@@ -60,13 +60,19 @@ pkg_postrm() {
if [ ! -x "/usr/bin/install-catalog" ] && [ "$ROOT" = "/" ]
then
echo ">>> Removing Catalogs..."
+ if [ -e /etc/sgml/sgml-ent.cat ]
+ then
${T}/install-catalog --remove \
/etc/sgml/sgml-ent.cat \
/usr/share/sgml/sgml-iso-entities-8879.1986/catalog
+ fi
+ if [ -e /etc/sgml/sgml-docbook.cat ]
+ then
${T}/install-catalog --remove \
/etc/sgml/sgml-docbook.cat \
/etc/sgml/sgml-ent.cat
+ fi
fi
}
diff --git a/app-text/sgmltools-lite/ChangeLog b/app-text/sgmltools-lite/ChangeLog
index 37adeb9797cb..adb9007a3187 100644
--- a/app-text/sgmltools-lite/ChangeLog
+++ b/app-text/sgmltools-lite/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for app-text/sgmltools-lite
# Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL
-# $Header: /var/cvsroot/gentoo-x86/app-text/sgmltools-lite/ChangeLog,v 1.9 2002/09/03 02:25:19 satai Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-text/sgmltools-lite/ChangeLog,v 1.10 2002/09/12 07:20:19 satai Exp $
+
+*sgmltools-lite-3.0.3-r5 (12 Sep 2002)
+
+ 12 Sep 2002; satai <satai@gentoo.org> sgmltools-lite-3.0.3-r5.ebuild :
+ Added more robust file checking.
*sgmltools-lite-3.0.3-r5 (02 Sep 2002)
diff --git a/app-text/sgmltools-lite/sgmltools-lite-3.0.3-r5.ebuild b/app-text/sgmltools-lite/sgmltools-lite-3.0.3-r5.ebuild
index 4f6cc3bdd63a..0996163f018f 100644
--- a/app-text/sgmltools-lite/sgmltools-lite-3.0.3-r5.ebuild
+++ b/app-text/sgmltools-lite/sgmltools-lite-3.0.3-r5.ebuild
@@ -101,8 +101,11 @@ pkg_postinst() {
pkg_prerm() {
if [ -x "/usr/bin/install-catalog" ] && [ "$ROOT" = "/" ]
then
- install-catalog --remove \
- /etc/sgml/sgml-lite.cat \
- /usr/share/sgml/stylesheets/sgmltools/sgmltools.cat
+ if [ -e sgml-lite.cat ]
+ then
+ install-catalog --remove \
+ /etc/sgml/sgml-lite.cat \
+ /usr/share/sgml/stylesheets/sgmltools/sgmltools.cat
+ fi
fi
}