Revision: 3496
          http://gar.svn.sourceforge.net/gar/?rev=3496&view=rev
Author:   wbonnet
Date:     2009-02-25 22:17:31 +0000 (Wed, 25 Feb 2009)

Log Message:
-----------
newpkgs creation use GAR v2 by default

Added Paths:
-----------
    csw/mgar/pkg/x11/Makefile

Added: csw/mgar/pkg/x11/Makefile
===================================================================
--- csw/mgar/pkg/x11/Makefile                           (rev 0)
+++ csw/mgar/pkg/x11/Makefile   2009-02-25 22:17:31 UTC (rev 3496)
@@ -0,0 +1,63 @@
+# vim: ft=make ts=4 sw=4 noet
+# This makefile is to be included from Makefiles in each category
+# directory.
+
+default:
+       @echo "You are in the pkg/x11 directory."
+
+%:
+       @for i in $(filter-out CVS/,$(wildcard */)) ; do \
+               $(MAKE) -C $$i $* ; \
+       done
+
+paranoid-%:
+       @for i in $(filter-out CVS/,$(wildcard */)) ; do \
+               $(MAKE) -C $$i $* || exit 2; \
+       done
+
+export BUILDLOG ?= $(shell pwd)/buildlog.txt
+
+report-%:
+       @for i in $(filter-out CVS/,$(wildcard */)) ; do \
+               $(MAKE) -C $$i $* || echo "     *** make $* in $$i failed ***" 
>> $(BUILDLOG); \
+       done
+
+newpkg-%:
+       @svn mkdir $* $*/tags $*/branches $*/trunk $*/trunk/files
+       @(echo "GARNAME = package";                                     \
+       echo "GARVERSION = 1.0";                                        \
+       echo "CATEGORIES = category";                                   \
+       echo "";                                                        \
+       echo "DESCRIPTION = Brief description";                         \
+       echo "define BLURB";                                            \
+       echo "  Long description";                                      \
+       echo "endef";                                                   \
+       echo "";                                                        \
+       echo "MASTER_SITES = ";                                         \
+       echo "DISTFILES  = $$(GARNAME)-$$(GARVERSION).tar.gz";          \
+       echo "DISTFILES += $$(call admfiles,CSWpackage,)";              \
+       echo "";                                                                
                                                        \
+       echo "# We define upstream file regex so we can be notifed of new 
upstream software release";   \
+       echo "UFILES_REGEX = $(GARNAME)-(\d+(?:\.\d+)*).tar.gz";                
                                                                \
+       echo "";                                                                
                                                        \
+       echo "# If the url used to check for software update is different of 
MASTER_SITES, then ";      \
+       echo "# uncomment the next line. Otherwise it is set by default to the 
value of MASTER_SITES";  \
+       echo "# UPSTREAM_MASTER_SITES = ";                                      
                                                \
+       echo "";                                                        \
+       echo "CONFIGURE_ARGS = $$(DIRPATHS)";                           \
+       echo "";                                                        \
+       echo "include gar/category.mk";                                 \
+       ) > $*/trunk/Makefile
+       @svn add $*/trunk/Makefile
+       @(echo "%var            bitname package";                       \
+       echo "%var            pkgname CSWpackage";                      \
+       echo "%include        url file://%{PKGLIB}/csw_dyndepend.gspec";\
+       echo "%copyright      url file://%{WORKSRC}/LICENSE";           \
+       ) > $*/trunk/files/CSWpackage.gspec
+       @echo "cookies\ndownload\nwork\n" | svn propset svn:ignore -F /dev/fd/0 
$*/trunk
+       @echo "gar https://gar.svn.sf.net/svnroot/gar/csw/mgar/gar/v2"; | svn 
propset svn:externals -F /dev/fd/0 $*/trunk
+       @svn co https://gar.svn.sf.net/svnroot/gar/csw/mgar/gar/v2 $*/trunk/gar
+       @echo
+       @echo "Your package is set up for editing at $*/trunk"
+       @echo "Please don't forget to add the gspec-file!"
+


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

Reply via email to