1. Summary
  2. Files
  3. Support
  4. Report Spam
  5. Create account
  6. Log in

Changeset 4756

Show
Ignore:
Timestamp:
05/07/09 21:09:57 (4 years ago)
Author:
dmichelsen
Message:

cpan/Makefile: Update newpkg-% template

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • csw/mgar/pkg/cpan/Makefile

    r3945 r4756  
    2525newpkg-%: 
    2626        @svn mkdir $* $*/tags $*/branches $*/trunk $*/trunk/files 
    27         @(echo "GARNAME = package";                                     \ 
     27        @(echo "GARNAME = Type-Package";                                \ 
    2828        echo "GARVERSION = 1.0";                                        \ 
    29         echo "CATEGORIES = category";                                   \ 
     29        echo "CATEGORIES = cpan";                                       \ 
     30        echo "AUTHOR = MYSELF";                                         \ 
    3031        echo "";                                                        \ 
    3132        echo "DESCRIPTION = Brief description";                         \ 
     
    3435        echo "endef";                                                   \ 
    3536        echo "";                                                        \ 
    36         echo "MASTER_SITES = ";                                         \ 
    37         echo "DISTFILES  = $$(GARNAME)-$$(GARVERSION).tar.gz";          \ 
    38         echo "DISTFILES += $$(call admfiles,CSWpackage,)";              \ 
    39         echo "";                                                                                                                        \ 
    40         echo "# We define upstream file regex so we can be notifed of new upstream software release";   \ 
    41         echo "UFILES_REGEX = $(GARNAME)-(\d+(?:\.\d+)*).tar.gz";                                                                                \ 
    42         echo "";                                                                                                                        \ 
    43         echo "# If the url used to check for software update is different of MASTER_SITES, then ";      \ 
    44         echo "# uncomment the next line. Otherwise it is set by default to the value of MASTER_SITES";  \ 
    45         echo "# UPSTREAM_MASTER_SITES = ";                                                                                      \ 
    46         echo "";                                                        \ 
    47         echo "CONFIGURE_ARGS = $$(DIRPATHS)";                           \ 
    48         echo "";                                                        \ 
     37        echo "PACKAGES = CSWpmmymodule";                                \ 
     38        echo "CATALOGNAME = pm_mymodule";                               \ 
    4939        echo "include gar/category.mk";                                 \ 
    5040        ) > $*/trunk/Makefile 
    51         @svn add $*/trunk/Makefile 
    52         @(echo "%var            bitname package";                       \ 
    53         echo "%var            pkgname CSWpackage";                      \ 
    54         echo "%include        url file://%{PKGLIB}/csw_dyndepend.gspec";\ 
    55         echo "%copyright      url file://%{WORKSRC}/LICENSE";           \ 
    56         ) > $*/trunk/files/CSWpackage.gspec 
     41        @touch $*/trunk/checksums 
     42        @svn add $*/trunk/Makefile $*/trunk/checksums 
    5743        @echo "cookies\ndownload\nwork\n" | svn propset svn:ignore -F /dev/fd/0 $*/trunk 
    5844        @echo "gar https://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2" | svn propset svn:externals -F /dev/fd/0 $*/trunk 
    59         @svn co https://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2 $*/trunk/gar 
     45        @if [ -d ../../gar/v2 ]; then \ 
     46          ln -s ../../../../gar/v2 $*/trunk/gar; \ 
     47        else \ 
     48          svn co https://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2 $*/trunk/gar; \ 
     49        fi 
    6050        @echo 
    6151        @echo "Your package is set up for editing at $*/trunk"