summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Turk <satai@gentoo.org>2002-09-03 02:24:23 +0000
committerMatthew Turk <satai@gentoo.org>2002-09-03 02:24:23 +0000
commit76ce497aeb0901379491031466dc3ce1f033f2ce (patch)
tree03fd3721b0b6bc59588e641cf4602d2c318a14fa /app-text
parentsee changelog (diff)
downloadhistorical-76ce497aeb0901379491031466dc3ce1f033f2ce.tar.gz
historical-76ce497aeb0901379491031466dc3ce1f033f2ce.tar.bz2
historical-76ce497aeb0901379491031466dc3ce1f033f2ce.zip
Fixing bug 3026 by adding catalog installation.
Diffstat (limited to 'app-text')
-rw-r--r--app-text/sgmltools-lite/files/digest-sgmltools-lite-3.0.3-r52
-rw-r--r--app-text/sgmltools-lite/sgmltools-lite-3.0.3-r5.ebuild108
2 files changed, 110 insertions, 0 deletions
diff --git a/app-text/sgmltools-lite/files/digest-sgmltools-lite-3.0.3-r5 b/app-text/sgmltools-lite/files/digest-sgmltools-lite-3.0.3-r5
new file mode 100644
index 000000000000..caf2a88ba3cb
--- /dev/null
+++ b/app-text/sgmltools-lite/files/digest-sgmltools-lite-3.0.3-r5
@@ -0,0 +1,2 @@
+MD5 dab77d3d751ca381a95ccebd88480a85 sgmltools-lite-3.0.3.tar.gz 61342
+MD5 d1faad065777a538ac09691761577b26 nw-eps-icons-0.0.1.tar.gz 8733
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
new file mode 100644
index 000000000000..560e1435179c
--- /dev/null
+++ b/app-text/sgmltools-lite/sgmltools-lite-3.0.3-r5.ebuild
@@ -0,0 +1,108 @@
+# Copyright 1999-2002 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License, v2 or later
+# $Header:
+/home/cvsroot/gentoo-x86/app-text/sgmltools-lite/sgmltools-lite-3.0.3-r4.ebuild,v 1.7 2002/08/16 02:42:02 murphy Exp $
+
+S=${WORKDIR}/${P}
+SRC_URI="mirror://sourceforge/sgmltools-lite/${P}.tar.gz
+ mirror://sourceforge/sgmltools-lite/nw-eps-icons-0.0.1.tar.gz"
+HOMEPAGE="sgmltools-lite.sourceforge.net"
+SLOT="0"
+LICENSE="GPL-2"
+LICENSE="|"
+LICENSE="as-is"
+DESCRIPTION="Python interface to SGML software specificially in a
+DocBook/OpenJade environment. Provides sgml2{html,txt,rtf,dvi,ps}"
+
+DEPEND="virtual/python
+ app-text/sgml-common
+ =app-text/docbook-sgml-dtd-3.1
+ app-text/docbook-dsssl-stylesheets
+ app-text/jadetex
+ app-text/openjade
+ net-www/lynx"
+
+KEYWORDS="x86 ppc sparc sparc64"
+
+src_compile() {
+ ./configure \
+ --prefix=/usr \
+ --exec-prefix=/usr \
+ --bindir=/usr/bin \
+ --sbindir=/usr/sbin \
+ --datadir=/usr/share \
+ --mandir=/usr/share/man || die
+
+ make || die
+
+ #remove CVS directories from the tree
+ for dirs in bin doc dsssl dtd man python rpm
+ do
+ rm -rf ${dirs}/CVS
+ done
+
+}
+
+src_install() {
+ make \
+ prefix=${D}/usr \
+ exec-prefix=${D}/usr \
+ datadir=${D}/usr/share \
+ bindir=${D}/usr/bin \
+ sysconfdir=${D}/etc \
+ mandir=${D}/usr/share/man \
+ etcdir=${D}/etc/sgml \
+ install || die
+
+ dodoc COPYING ChangeLog POSTINSTALL README*
+ dohtml -r .
+
+ cd ${WORKDIR}/nw-eps-icons-0.0.1/images
+ insinto /usr/share/sgml/docbook/dsssl-stylesheets/images
+ doins *.eps
+
+ cd callouts
+ insinto /usr/share/sgml/docbook/dsssl-stylesheets/images/callouts
+ doins *.eps
+
+ rm ${D}/etc/sgml/catalog.{suse,rh62}
+
+ # Create simple alias scripts that people are used to
+ # And make the manpages for those link to the sgmltools-lite manpage
+ mandir=${D}/usr/share/man/man1
+ ScripTEXT="/usr/bin/sgmltools --backend="
+ for back in html ps dvi rtf txt
+ do
+ echo "${ScripTEXT}${back}" > sgml2${back}
+ exeinto /usr/bin
+ doexe sgml2${back}
+
+ cd ${mandir}
+ ln -sf sgmltools-lite.1.gz sgml2${back}.1.gz
+ cd ${S}
+ done
+
+
+}
+
+pkg_postinst() {
+
+ gensgmlenv
+ grep -v export /etc/sgml/sgml.env > /etc/env.d/93sgmltools-lite
+
+ if [ -x "/usr/bin/install-catalog" ] && [ "$ROOT" = "/" ]
+ then
+ install-catalog --add \
+ /etc/sgml/sgml-lite.cat
+ /usr/share/sgml/stylesheets/sgmltools/sgmltools.cat
+ fi
+}
+
+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
+ fi
+}