[csw-devel] SF.net SVN: gar:[4756] csw/mgar/pkg/cpan/Makefile

dmichelsen at users.sourceforge.net dmichelsen at users.sourceforge.net
Thu May 7 23:09:57 CEST 2009


Revision: 4756
          http://gar.svn.sourceforge.net/gar/?rev=4756&view=rev
Author:   dmichelsen
Date:     2009-05-07 21:09:57 +0000 (Thu, 07 May 2009)

Log Message:
-----------
cpan/Makefile: Update newpkg-% template

Modified Paths:
--------------
    csw/mgar/pkg/cpan/Makefile

Modified: csw/mgar/pkg/cpan/Makefile
===================================================================
--- csw/mgar/pkg/cpan/Makefile	2009-05-07 20:41:24 UTC (rev 4755)
+++ csw/mgar/pkg/cpan/Makefile	2009-05-07 21:09:57 UTC (rev 4756)
@@ -24,39 +24,29 @@
 
 newpkg-%:
 	@svn mkdir $* $*/tags $*/branches $*/trunk $*/trunk/files
-	@(echo "GARNAME = package";                                     \
+	@(echo "GARNAME = Type-Package";                                \
 	echo "GARVERSION = 1.0";                                        \
-	echo "CATEGORIES = category";                                   \
+	echo "CATEGORIES = cpan";                                       \
+	echo "AUTHOR = MYSELF";                                         \
 	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 "PACKAGES = CSWpmmymodule";                                \
+	echo "CATALOGNAME = pm_mymodule";                               \
 	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
+	@touch $*/trunk/checksums
+	@svn add $*/trunk/Makefile $*/trunk/checksums
 	@echo "cookies\ndownload\nwork\n" | svn propset svn:ignore -F /dev/fd/0 $*/trunk
 	@echo "gar https://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2" | svn propset svn:externals -F /dev/fd/0 $*/trunk
-	@svn co https://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2 $*/trunk/gar
+	@if [ -d ../../gar/v2 ]; then \
+	  ln -s ../../../../gar/v2 $*/trunk/gar; \
+	else \
+	  svn co https://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2 $*/trunk/gar; \
+	fi
 	@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.



More information about the devel mailing list