[csw-devel] SF.net SVN: gar:[11633] csw/mgar/pkg/maven3/trunk/Makefile

dmichelsen at users.sourceforge.net dmichelsen at users.sourceforge.net
Mon Nov 15 22:24:47 CET 2010


Revision: 11633
          http://gar.svn.sourceforge.net/gar/?rev=11633&view=rev
Author:   dmichelsen
Date:     2010-11-15 21:24:47 +0000 (Mon, 15 Nov 2010)

Log Message:
-----------
maven3: Adjust build recipe

Modified Paths:
--------------
    csw/mgar/pkg/maven3/trunk/Makefile

Modified: csw/mgar/pkg/maven3/trunk/Makefile
===================================================================
--- csw/mgar/pkg/maven3/trunk/Makefile	2010-11-15 15:07:57 UTC (rev 11632)
+++ csw/mgar/pkg/maven3/trunk/Makefile	2010-11-15 21:24:47 UTC (rev 11633)
@@ -1,7 +1,6 @@
 GARNAME = maven3
 GARVERSION = 3.0
 CATEGORIES = devel
-GARCH = all
 
 DESCRIPTION = Java software project management and comprehension tool
 define BLURB
@@ -23,23 +22,29 @@
 endef
 
 MASTER_SITES = http://www.powertech.no/apache/dist/maven/binaries/
-DISTFILES  = apache-maven-$(GARVERSION)-bin.tar.gz
+DISTNAME = apache-maven-$(GARVERSION)
+DISTFILES  = $(DISTNAME)-bin.tar.gz
 
+LICENSE = LICENSE.txt
+
 # We define upstream file regex so we can be notifed of new upstream software release
 UFILES_REGEX = apache-maven-(\d+(?:\.\d+)*)-bin.tar.gz
 
 CONFIGURE_SCRIPTS =
 BUILD_SCRIPTS =
 TEST_SCRIPTS =
-INSTALL_SCRIPTS = common
+INSTALL_SCRIPTS = custom
 
+ARCHALL = 1
+
 include gar/category.mk
 
-install-common:
+install-custom: MAVENHOME=$(DESTDIR)$(sharedstatedir)/maven3/home
+install-custom:
 	mkdir -p $(DESTDIR)/opt/csw/bin
-	rm -rf $(DESTDIR)/opt/csw/share/maven3
-	mkdir -p $(DESTDIR)/opt/csw/share/maven3
-	cp -r $(WORKDIR)/apache-maven-$(GARVERSION)/ $(DESTDIR)/opt/csw/share/maven3/home
-	cp $(WORKDIR)/bin-mvn $(DESTDIR)/opt/csw/bin/mvn
-	chmod +x $(DESTDIR)/opt/csw/bin/mvn
+	rm -rf $(MAVENHOME)
+	mkdir -p $(MAVENHOME)
+	(cd $(WORKDIR)/$(DISTNAME); pax -r -w -s ',.*/\.git.*,,' . $(MAVENHOME))
+	#cp $(WORKDIR)/bin-mvn $(DESTDIR)/opt/csw/bin/mvn
+	#chmod +x $(DESTDIR)/opt/csw/bin/mvn
 	$(MAKECOOKIE)


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