Revision: 4305
          http://gar.svn.sourceforge.net/gar/?rev=4305&view=rev
Author:   bdwalton
Date:     2009-04-14 15:01:13 +0000 (Tue, 14 Apr 2009)

Log Message:
-----------
use post-extract-modulated to correct directory name instead of modifying 
WORKSRC (cleaner for other things)

Modified Paths:
--------------
    csw/mgar/pkg/docbook-style-xsl/trunk/Makefile

Modified: csw/mgar/pkg/docbook-style-xsl/trunk/Makefile
===================================================================
--- csw/mgar/pkg/docbook-style-xsl/trunk/Makefile       2009-04-14 15:00:11 UTC 
(rev 4304)
+++ csw/mgar/pkg/docbook-style-xsl/trunk/Makefile       2009-04-14 15:01:13 UTC 
(rev 4305)
@@ -51,11 +51,16 @@
 
 INSTALL_ARGS = DESTDIR=$(DESTDIR)
 
-#to make the package extraction happy...(we don't use the - separator)
-WORKSRC = $(WORKDIR)/docbook-xsl-$(GARVERSION)
-
 include gar/category.mk
 
+post-extract-modulated: WRONGDIR=docbook-xsl-$(GARVERSION)
+post-extract-modulated:
+       @( cd $(WORKDIR); \
+               if test -d $(WRONGDIR); then \
+                       mv $(WRONGDIR) $(DISTNAME); \
+               fi; )
+       @$(MAKECOOKIE)
+
 install-%/Makefile.csw:
        @echo " ==> Running make install in $*"
        @$(INSTALL_ENV) $(MAKE) -f Makefile.csw DESTDIR=$(DESTDIR) $(foreach 
TTT,$(INSTALL_OVERRIDE_DIRS),$(TTT)="$(DESTDIR)$($(TTT))") -C $* 
$(INSTALL_ARGS) install


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.
_______________________________________________
devel mailing list
devel@lists.opencsw.org
https://lists.opencsw.org/mailman/listinfo/devel

Reply via email to