[csw-devel] SF.net SVN: gar:[2759] csw/mgar/pkg/docbook-style-dsssl/trunk

bdwalton at users.sourceforge.net bdwalton at users.sourceforge.net
Thu Jan 8 18:41:32 CET 2009


Revision: 2759
          http://gar.svn.sourceforge.net/gar/?rev=2759&view=rev
Author:   bdwalton
Date:     2009-01-08 17:41:32 +0000 (Thu, 08 Jan 2009)

Log Message:
-----------
include a preremove script; skip using VERSION in install paths.

Modified Paths:
--------------
    csw/mgar/pkg/docbook-style-dsssl/trunk/Makefile
    csw/mgar/pkg/docbook-style-dsssl/trunk/checksums
    csw/mgar/pkg/docbook-style-dsssl/trunk/files/add_makefile.patch

Added Paths:
-----------
    csw/mgar/pkg/docbook-style-dsssl/trunk/files/CSWdocbookdsssl.preremove

Modified: csw/mgar/pkg/docbook-style-dsssl/trunk/Makefile
===================================================================
--- csw/mgar/pkg/docbook-style-dsssl/trunk/Makefile	2009-01-08 00:40:17 UTC (rev 2758)
+++ csw/mgar/pkg/docbook-style-dsssl/trunk/Makefile	2009-01-08 17:41:32 UTC (rev 2759)
@@ -13,7 +13,7 @@
 SF_PROJ = docbook
 MASTER_SITES = $(SF_MIRRORS)
 DISTFILES = docbook-dsssl-$(GARVERSION).tar.gz
-DISTFILES += $(call admfiles,CSWdocbookdsssl,postinstall)
+DISTFILES += $(call admfiles,CSWdocbookdsssl,postinstall preremove)
 PATCHFILES = add_makefile.patch fix_perl_path.patch
 
 REQUIRED_PKGS = CSWdocbookdtds CSWsgmlcommon CSWopenjade CSWperl
@@ -36,7 +36,7 @@
 BUILD_SCRIPTS =
 TEST_SCRIPTS =
 
-INSTALL_ARGS = DESTDIR=$(DESTDIR) VERSION=$(GARVERSION)
+INSTALL_ARGS = DESTDIR=$(DESTDIR)
 INSTALL_ARGS += bindir=$(bindir) datadir=$(datadir)
 
 post-install-modulated:

Modified: csw/mgar/pkg/docbook-style-dsssl/trunk/checksums
===================================================================
--- csw/mgar/pkg/docbook-style-dsssl/trunk/checksums	2009-01-08 00:40:17 UTC (rev 2758)
+++ csw/mgar/pkg/docbook-style-dsssl/trunk/checksums	2009-01-08 17:41:32 UTC (rev 2759)
@@ -1,5 +1,6 @@
 8459913bbd8a5724a6fe4b9ed5bab5af  download/docbook-dsssl-1.79.tar.gz
 02510cf81c864e00a76bcda6c479341b  download/CSWdocbookdsssl.gspec
 ca3151dd10e081a972d51cd1421ec933  download/CSWdocbookdsssl.postinstall
-0ef217556ebfc23d51bc90684464dd6e  download/add_makefile.patch
+df867c379a285965e1192907439d9b90  download/CSWdocbookdsssl.preremove
+6cb0e57eb959e159fb4677fc6c945d63  download/add_makefile.patch
 bcd9c3faeba3e034152c26b489f2abcc  download/fix_perl_path.patch

Added: csw/mgar/pkg/docbook-style-dsssl/trunk/files/CSWdocbookdsssl.preremove
===================================================================
--- csw/mgar/pkg/docbook-style-dsssl/trunk/files/CSWdocbookdsssl.preremove	                        (rev 0)
+++ csw/mgar/pkg/docbook-style-dsssl/trunk/files/CSWdocbookdsssl.preremove	2009-01-08 17:41:32 UTC (rev 2759)
@@ -0,0 +1,25 @@
+#!/bin/sh
+
+PATH=/opt/csw/bin:$PATH
+export PATH
+
+case "$PKG_INSTALL_ROOT" in
+    ""|"/") PREFIX= ;;
+    *) PREFIX="chroot $PKG_INSTALL_ROOT";;
+esac
+
+# set SGML_BASE_DIR and SGML_CATALOGS_DIR
+. `$PKG_INSTALL_ROOT/opt/csw/bin/sgmlwhich`
+
+dsssldir=$SGML_BASE_DIR/docbook/dsssl-stylesheets
+ojadedir=`$PREFIX echo $SGML_BASE_DIR/openjade-*`
+
+for cat in $PKG_INSTALL_ROOT/$SGML_CATALOGS_DIR/sgml/*-docbook-*.cat; do
+    if [ "x$PKG_INSTALL_ROOT" != "x" ]; then
+	cat=`echo $cat | sed "s#$PKG_INSTALL_ROOT##"`
+    fi
+    catalog=`echo $cat | sed 's#//#/#g'`
+    
+    $PREFIX install-catalog --remove $catalog $ojadedir/catalog
+    $PREFIX install-catalog --remove $catalog $dsssldir/catalog
+done

Modified: csw/mgar/pkg/docbook-style-dsssl/trunk/files/add_makefile.patch
===================================================================
--- csw/mgar/pkg/docbook-style-dsssl/trunk/files/add_makefile.patch	2009-01-08 00:40:17 UTC (rev 2758)
+++ csw/mgar/pkg/docbook-style-dsssl/trunk/files/add_makefile.patch	2009-01-08 17:41:32 UTC (rev 2759)
@@ -2,8 +2,8 @@
 +++ docbook-dsssl-1.79/Makefile	2008-12-30 05:40:27.256449575 +0100
 @@ -0,0 +1,54 @@
 +BINDIR = $(DESTDIR)/$(bindir)
-+DEST = $(DESTDIR)/$(datadir)/sgml/docbook/dsssl-stylesheets-$(VERSION)
-+DOCS = $(DESTDIR)/$(datadir)/doc/docbookdsssl-$(VERSION)
++DEST = $(DESTDIR)/$(datadir)/sgml/docbook/dsssl-stylesheets
++DOCS = $(DESTDIR)/$(datadir)/doc/docbookdsssl
 +
 +INSTALLDATA = ginstall -c -m 0644
 +INSTALLDIR = ginstall -c -m 0755 -d


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list