[csw-devel] SF.net SVN: gar:[3114] csw/mgar/gar/v2/gar.pkg.mk

dmichelsen at users.sourceforge.net dmichelsen at users.sourceforge.net
Sun Feb 15 15:22:54 CET 2009


Revision: 3114
          http://gar.svn.sourceforge.net/gar/?rev=3114&view=rev
Author:   dmichelsen
Date:     2009-02-15 14:22:54 +0000 (Sun, 15 Feb 2009)

Log Message:
-----------
mGAR v2: Fix overriding of SPKG variables in pkginfo

Modified Paths:
--------------
    csw/mgar/gar/v2/gar.pkg.mk

Modified: csw/mgar/gar/v2/gar.pkg.mk
===================================================================
--- csw/mgar/gar/v2/gar.pkg.mk	2009-02-15 12:34:39 UTC (rev 3113)
+++ csw/mgar/gar/v2/gar.pkg.mk	2009-02-15 14:22:54 UTC (rev 3114)
@@ -339,17 +339,21 @@
 )
 endef
 
+define pkgvar
+$(if $($(1)_$(2)),$($(1)_$(2)),$($(1)))
+endef
+
 .PRECIOUS: $(WORKDIR)/%.pkginfo
 $(WORKDIR)/%.pkginfo: $(WORKDIR)
 	$(_DBG)(echo "PKG=$*"; \
-	echo "NAME=$(call catalogname,$*) - $(SPKG_DESC)"; \
-	echo "ARCH=$(GARCH)"; \
-	echo "VERSION=$(SPKG_VERSION)$(SPKG_REVSTAMP)"; \
-	echo "CATEGORY=$(SPKG_CATEGORY)"; \
-	echo "VENDOR=$(SPKG_VENDOR)"; \
-	echo "EMAIL=$(SPKG_EMAIL)"; \
+	echo "NAME=$(call catalogname,$*) - $(call pkgvar,SPKG_DESC,$*)"; \
+	echo "ARCH=$(call pkgvar,GARCH,$*)"; \
+	echo "VERSION=$(call pkgvar,SPKG_VERSION,$*)$(call pkgvar,SPKG_REVSTAMP,$*)"; \
+	echo "CATEGORY=$(call pkgvar,SPKG_CATEGORY,$*)"; \
+	echo "VENDOR=$(call pkgvar,SPKG_VENDOR,$*)"; \
+	echo "EMAIL=$(call pkgvar,SPKG_EMAIL,$*)"; \
 	echo "PSTAMP=$(LOGNAME)@$(shell hostname)-$(shell date '+%Y%m%d%H%M%S')"; \
-	echo "CLASSES=$(SPKG_CLASSES)"; \
+	echo "CLASSES=$(call pkgvar,SPKG_CLASSES,$*)"; \
 	echo "HOTLINE=http://www.opencsw.org/bugtrack/"; \
 	echo "OPENCSW_REPOSITORY=$(call _URL)@$(call _REVISION)"; \
 	echo "OPENCSW_MODE64=$(call mode64,$*)"; \


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