diff options
Diffstat (limited to 'app-text')
-rw-r--r-- | app-text/openjade/openjade-1.3-r1.ebuild | 5 | ||||
-rw-r--r-- | app-text/sgml-common/sgml-common-0.6.1.ebuild | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/app-text/openjade/openjade-1.3-r1.ebuild b/app-text/openjade/openjade-1.3-r1.ebuild index 3550be49eb08..a121bfe17d24 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.7 2001/03/19 21:00:02 achim Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-text/openjade/openjade-1.3-r1.ebuild,v 1.8 2001/05/16 11:36:45 achim Exp $ P=openjade-1.3 A=${P}.tar.gz @@ -76,13 +76,16 @@ pkg_postinst() { 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 } pkg_prerm() { + if [ "$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 } diff --git a/app-text/sgml-common/sgml-common-0.6.1.ebuild b/app-text/sgml-common/sgml-common-0.6.1.ebuild index 961436473e5b..e5e6c0e11eb0 100644 --- a/app-text/sgml-common/sgml-common-0.6.1.ebuild +++ b/app-text/sgml-common/sgml-common-0.6.1.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/sgml-common/sgml-common-0.6.1.ebuild,v 1.2 2001/03/19 21:00:02 achim Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-text/sgml-common/sgml-common-0.6.1.ebuild,v 1.3 2001/05/16 11:36:45 achim Exp $ A=${P}.tgz S=${WORKDIR}/${P} @@ -33,6 +33,8 @@ pkg_postinst() { } pkg_prerm() { + if [ "$ROOT" = "/" ] ; then install-catalog --remove /etc/sgml/sgml-ent.cat /usr/share/sgml/sgml-iso-entities-8879.1986/catalog install-catalog --add /etc/sgml/sgml-docbook.cat /etc/sgml/sgml-ent.cat + fi }
\ No newline at end of file |