summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Schlemmer <azarah@gentoo.org>2002-06-29 23:16:19 +0000
committerMartin Schlemmer <azarah@gentoo.org>2002-06-29 23:16:19 +0000
commit6e7abd78a9ced72eb43bd3115c69528235a2d6f8 (patch)
tree5f5fae877d40592e56002973ad25296a363913ea /app-text/sgml-common
parentnew version (diff)
downloadgentoo-2-6e7abd78a9ced72eb43bd3115c69528235a2d6f8.tar.gz
gentoo-2-6e7abd78a9ced72eb43bd3115c69528235a2d6f8.tar.bz2
gentoo-2-6e7abd78a9ced72eb43bd3115c69528235a2d6f8.zip
fix unmerge
Diffstat (limited to 'app-text/sgml-common')
-rw-r--r--app-text/sgml-common/ChangeLog6
-rw-r--r--app-text/sgml-common/files/digest-sgml-common-0.6.3-r11
-rw-r--r--app-text/sgml-common/sgml-common-0.6.3-r1.ebuild71
3 files changed, 77 insertions, 1 deletions
diff --git a/app-text/sgml-common/ChangeLog b/app-text/sgml-common/ChangeLog
index 0bad591b5b5b..d42719f9335b 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.3 2002/05/07 10:31:40 spider Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-text/sgml-common/ChangeLog,v 1.4 2002/06/29 23:16:19 azarah Exp $
+
+*sgml-common-0.6.3-r1 (30 Jun 2002)
+ 30 Jun 2002; Martin Schlemmer <azarah@gentoo.org> :
+ Fix pkg_postrm() and pkg_prerm() to actually work.
*sgml-common-0.6.3 (08 May 2002)
08 May 2002; Spider <spider@gentoo.org> sgml-common-0.6.3.ebuild:
diff --git a/app-text/sgml-common/files/digest-sgml-common-0.6.3-r1 b/app-text/sgml-common/files/digest-sgml-common-0.6.3-r1
new file mode 100644
index 000000000000..876e0934660f
--- /dev/null
+++ b/app-text/sgml-common/files/digest-sgml-common-0.6.3-r1
@@ -0,0 +1 @@
+MD5 103c9828f24820df86e55e7862e28974 sgml-common-0.6.3.tgz 76783
diff --git a/app-text/sgml-common/sgml-common-0.6.3-r1.ebuild b/app-text/sgml-common/sgml-common-0.6.3-r1.ebuild
new file mode 100644
index 000000000000..88fe7c44c7fd
--- /dev/null
+++ b/app-text/sgml-common/sgml-common-0.6.3-r1.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2002 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.3-r1.ebuild,v 1.1 2002/06/29 23:16:19 azarah Exp $
+
+S=${WORKDIR}/${P}
+DESCRIPTION="Base ISO character entities and utilities for SGML"
+SRC_URI="ftp://ftp.kde.org/pub/kde/devel/docbook/SOURCES/${P}.tgz
+ http://download.sourceforge.net/pub/mirrors/kde/devel/docbook/SOURCES/${P}.tgz"
+HOMEPAGE="http://www.iso.ch/cate/3524030.html"
+
+src_unpack() {
+
+ unpack ${A}
+ # We use a hacked version of install-catalog that supports the ROOT variable
+ cp ${FILESDIR}/${P}-install-catalog.in ${S}/bin
+}
+
+src_compile() {
+ ./configure \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man || die
+
+ emake || die
+}
+
+src_install () {
+ make \
+ prefix=${D}/usr \
+ sysconfdir=${D}/etc \
+ mandir=${D}/usr/share/man \
+ docdir=${D}/usr/share/doc \
+ install || die
+
+}
+
+pkg_postinst() {
+ if [ -x "/usr/bin/install-catalog" ] && [ "$ROOT" = "/" ]
+ then
+ echo ">>> Installing Catalogs..."
+ install-catalog --add \
+ /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
+ else
+ echo "install-catalog not found!"
+ fi
+}
+
+pkg_prerm() {
+ cp /usr/bin/install-catalog ${T}
+}
+
+pkg_postrm() {
+ if [ ! -x "/usr/bin/install-catalog" ] && [ "$ROOT" = "/" ]
+ then
+ echo ">>> Removing Catalogs..."
+ ${T}/install-catalog --remove \
+ /etc/sgml/sgml-ent.cat \
+ /usr/share/sgml/sgml-iso-entities-8879.1986/catalog
+
+ ${T}/install-catalog --remove \
+ /etc/sgml/sgml-docbook.cat \
+ /etc/sgml/sgml-ent.cat
+ fi
+}
+