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

bdwalton at users.sourceforge.net bdwalton at users.sourceforge.net
Tue Dec 30 19:55:26 CET 2008


Revision: 2714
          http://gar.svn.sourceforge.net/gar/?rev=2714&view=rev
Author:   bdwalton
Date:     2008-12-30 18:55:26 +0000 (Tue, 30 Dec 2008)

Log Message:
-----------
install works; set arch=all; patch in a Makefile to install files

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/CSWdocbookdsssl.gspec

Added Paths:
-----------
    csw/mgar/pkg/docbook-style-dsssl/trunk/files/add_makefile.patch

Modified: csw/mgar/pkg/docbook-style-dsssl/trunk/Makefile
===================================================================
--- csw/mgar/pkg/docbook-style-dsssl/trunk/Makefile	2008-12-30 17:06:57 UTC (rev 2713)
+++ csw/mgar/pkg/docbook-style-dsssl/trunk/Makefile	2008-12-30 18:55:26 UTC (rev 2714)
@@ -14,6 +14,7 @@
 MASTER_SITES = $(SF_MIRRORS)
 DISTFILES = docbook-dsssl-$(GARVERSION).tar.gz
 DISTFILES += $(call admfiles,CSWdocbookdsssl,)
+PATCHFILES = add_makefile.patch
 
 REQUIRED_PKGS = CSWdocbookdtds CSWsgmlcommon CSWopenjade
 
@@ -24,11 +25,23 @@
 # uncomment the next line. Otherwise it is set by default to the value of MASTER_SITES
 # UPSTREAM_MASTER_SITES = 
 
+tar-gz-extract-docbook-dsssl-$(GARVERSION).tar.gz:
+	@echo " ==> Extracting $(DOWNLOADDIR)/docbook-dsssl-$(GARVERSION).tar.gz"
+	@mkdir -p $(WORKSRC)
+	gzip -dc $(DOWNLOADDIR)/docbook-dsssl-$(GARVERSION).tar.gz | gtar $(TAR_ARGS) -xf - -C $(WORKSRC) --strip-components 1
+	@$(MAKECOOKIE)
+
 #nothing to configure or test
 CONFIGURE_SCRIPTS =
+BUILD_SCRIPTS =
 TEST_SCRIPTS =
 
-BUILD_ARGS = DESTDIR=$(DESTDIR) VERSION=$(GARVERSION)-$(PATCHLEVEL)
-BUILD_ARGS += bindir=$(bindir) datadir=$(datadir)
+INSTALL_ARGS = DESTDIR=$(DESTDIR) VERSION=$(GARVERSION)
+INSTALL_ARGS += bindir=$(bindir) datadir=$(datadir)
 
+post-install-modulated:
+	@echo "Symlinking dsssl-stylesheets"
+	@(cd $(INSTALLISADIR)/$(datadir)/sgml/docbook; \
+		ln -s dsssl-stylesheets-$(GARVERSION) dsssl-stylesheets )
+
 include gar/category.mk

Modified: csw/mgar/pkg/docbook-style-dsssl/trunk/checksums
===================================================================
--- csw/mgar/pkg/docbook-style-dsssl/trunk/checksums	2008-12-30 17:06:57 UTC (rev 2713)
+++ csw/mgar/pkg/docbook-style-dsssl/trunk/checksums	2008-12-30 18:55:26 UTC (rev 2714)
@@ -1,2 +1,3 @@
 8459913bbd8a5724a6fe4b9ed5bab5af  download/docbook-dsssl-1.79.tar.gz
-a5f6d634639ce7d3259c07d0a68734da  download/CSWdocbookdsssl.gspec
+02510cf81c864e00a76bcda6c479341b  download/CSWdocbookdsssl.gspec
+08e9e44df56f41c8f5f700114fe69b58  download/add_makefile.patch

Modified: csw/mgar/pkg/docbook-style-dsssl/trunk/files/CSWdocbookdsssl.gspec
===================================================================
--- csw/mgar/pkg/docbook-style-dsssl/trunk/files/CSWdocbookdsssl.gspec	2008-12-30 17:06:57 UTC (rev 2713)
+++ csw/mgar/pkg/docbook-style-dsssl/trunk/files/CSWdocbookdsssl.gspec	2008-12-30 18:55:26 UTC (rev 2714)
@@ -1,4 +1,5 @@
 %var            bitname docbookdsssl
 %var            pkgname CSWdocbookdsssl
+%var		arch all
 %include        url file://%{PKGLIB}/csw_dyndepend.gspec
 

Added: csw/mgar/pkg/docbook-style-dsssl/trunk/files/add_makefile.patch
===================================================================
--- csw/mgar/pkg/docbook-style-dsssl/trunk/files/add_makefile.patch	                        (rev 0)
+++ csw/mgar/pkg/docbook-style-dsssl/trunk/files/add_makefile.patch	2008-12-30 18:55:26 UTC (rev 2714)
@@ -0,0 +1,55 @@
+--- /dev/null	2008-12-30 05:37:09.000000000 +0100
++++ docbook-dsssl-1.79/Makefile	2008-12-30 05:40:27.256449575 +0100
+@@ -0,0 +1,52 @@
++BINDIR = $(DESTDIR)/$(bindir)
++DEST = $(DESTDIR)/$(datadir)/sgml/docbook/dsssl-stylesheets-$(VERSION)
++DOCS = $(DESTDIR)/$(datadir)/doc/docbookdsssl-$(VERSION)
++
++INSTALLDATA = ginstall -c -m 0644
++INSTALLDIR = ginstall -c -m 0755 -d
++
++all: install
++
++install: install-bin install-dtd install-dsl install-img install-misc install-doc
++
++install-doc:
++	$(INSTALLDIR) $(DOCS)
++	$(INSTALLDATA) BUGS ChangeLog README WhatsNew $(DOCS)
++	
++install-bin:
++	$(INSTALLDIR) $(BINDIR)
++	$(INSTALLDATA) bin/collateindex.pl $(BINDIR)
++	chmod 755 $(BINDIR)/*
++
++install-dtd:
++	for d in decls dbdsssl html imagelib olink; do \
++	    $(INSTALLDIR) $(DEST)/dtds/$$d; \
++	done
++	$(INSTALLDATA) dtds/decls/docbook.dcl $(DEST)/dtds/decls
++	$(INSTALLDATA) dtds/decls/xml.dcl $(DEST)/dtds/decls
++	$(INSTALLDATA) dtds/dbdsssl/dbdsssl.dtd $(DEST)/dtds/dbdsssl
++	$(INSTALLDATA) dtds/html/dbhtml.dtd $(DEST)/dtds/html
++	$(INSTALLDATA) dtds/html/ISOlat1.gml $(DEST)/dtds/html
++	$(INSTALLDATA) dtds/imagelib/imagelib.dtd $(DEST)/dtds/imagelib
++	$(INSTALLDATA) dtds/olink/olinksum.dtd $(DEST)/dtds/olink
++
++install-dsl:
++	@for d in lib common html print olink; do \
++		$(INSTALLDIR) $(DEST)/$$d; \
++	done
++	$(INSTALLDATA) lib/dblib.dsl $(DEST)/lib
++	$(INSTALLDATA) common/*.dsl $(DEST)/common
++	$(INSTALLDATA) common/*.ent $(DEST)/common
++	$(INSTALLDATA) html/*.dsl $(DEST)/html
++	$(INSTALLDATA) lib/dblib.dsl $(DEST)/lib
++	$(INSTALLDATA) print/*.dsl $(DEST)/print
++	$(INSTALLDATA) olink/*.dsl $(DEST)/olink
++
++install-img:
++	$(INSTALLDIR) $(DEST)/images/callouts
++	$(INSTALLDATA) images/*.gif $(DEST)/images
++	$(INSTALLDATA) images/callouts/*.gif $(DEST)/images/callouts
++
++install-misc:
++	$(INSTALLDATA) catalog $(DEST)
++	$(INSTALLDATA) VERSION $(DEST)


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