summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAchim Gottinger <achim@gentoo.org>2001-06-08 01:08:06 +0000
committerAchim Gottinger <achim@gentoo.org>2001-06-08 01:08:06 +0000
commite7e68aa83ec3944debaf1ff1413a1f6f14a6b58e (patch)
tree07ba6e0978116ce40b8eb6701f368369ed5fadbc /app-text/openjade
parent*** empty log message *** (diff)
downloadgentoo-2-e7e68aa83ec3944debaf1ff1413a1f6f14a6b58e.tar.gz
gentoo-2-e7e68aa83ec3944debaf1ff1413a1f6f14a6b58e.tar.bz2
gentoo-2-e7e68aa83ec3944debaf1ff1413a1f6f14a6b58e.zip
*** empty log message ***
Diffstat (limited to 'app-text/openjade')
-rw-r--r--app-text/openjade/openjade-1.3-r1.ebuild11
1 files changed, 7 insertions, 4 deletions
diff --git a/app-text/openjade/openjade-1.3-r1.ebuild b/app-text/openjade/openjade-1.3-r1.ebuild
index a121bfe17d24..b1d1a1cf57e4 100644
--- a/app-text/openjade/openjade-1.3-r1.ebuild
+++ b/app-text/openjade/openjade-1.3-r1.ebuild
@@ -1,7 +1,7 @@
# Copyright 1999-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Achim Gottinger <achim@gentoo.org>
-# $Header: /var/cvsroot/gentoo-x86/app-text/openjade/openjade-1.3-r1.ebuild,v 1.8 2001/05/16 11:36:45 achim Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-text/openjade/openjade-1.3-r1.ebuild,v 1.9 2001/06/08 01:08:06 achim Exp $
P=openjade-1.3
A=${P}.tar.gz
@@ -72,20 +72,23 @@ src_install() {
}
pkg_postinst() {
+ if [ -x "/usr/bin/install-catalog" ] && [ "$ROOT" = "/" ] ; then
install-catalog --add /etc/sgml/${P}.cat /usr/share/sgml/openjade-1.3/catalog
install-catalog --add /etc/sgml/${P}.cat /usr/share/sgml/openjade-1.3/dsssl/catalog
install-catalog --add /etc/sgml/${P}.cat /usr/share/sgml/openjade-1.3/unicode/catalog
install-catalog --add /etc/sgml/sgml-docbook.cat /etc/sgml/${P}.cat
- echo
+ fi
}
pkg_prerm() {
- if [ "$ROOT" ="/" ] ; then
+ if [ -x "/usr/bin/install-catalog" ] && [ "$ROOT" = "/" ] ; then
+
install-catalog --remove /etc/sgml/${P}.cat /usr/share/sgml/openjade-1.3/catalog
install-catalog --remove /etc/sgml/${P}.cat /usr/share/sgml/openjade-1.3/dsssl/catalog
install-catalog --remove /etc/sgml/${P}.cat /usr/share/sgml/openjade-1.3/unicode/catalog
install-catalog --add /etc/sgml/sgml-docbook.cat /etc/sgml/${P}.cat
- fi
+
+ fi
}