Changeset 916 in ProjectBuilder for devel/pb/lib/ProjectBuilder/Env.pm


Ignore:
Timestamp:
Nov 29, 2009, 3:12:56 AM (14 years ago)
Author:
Bruno Cornec
Message:
  • Improves Debian support by a/ allowing PBDESC to be used in control file with space prepended. b/ prepend 0 to non digit versions such as devel. c/ creating debian pbfilter files for PBDEBSTD and PBDEBCOMP macros used in control.
  • Uses pbtag for ebuild and pkg packages
  • Improves pb Solaris pkgs
  • Improves pb Debian pkgs (only some warnings remaining for lintian)
  • Adds a PBSUMMARY macro and use it. Now also generated for newproj.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/pb/lib/ProjectBuilder/Env.pm

    r904 r916  
    533533filter PBDATE = \$pb->{'date'}
    534534
    535 # PBLOG is replaced by the changelog if value is yes
    536 #filter PBLOG = yes
    537 
    538535# PBPATCHSRC is replaced by the patches names if value is yes
    539536#filter PBPATCHSRC = yes
     
    563560#filter PBDESC = "Bla-Bla"
    564561
     562# PBSUMMARY contains a short single line description of the package
     563#filter PBSUMMARY = "Bla"
     564
    565565# PBURL contains the URL of the Web site of the project
    566566#filter PBURL = http://www.$ENV{'PBPROJ'}.org
     567
     568# PBLOG is replaced by the changelog if value is yes
     569# and should be last as when used we need the %pb hash filled
     570#filter PBLOG = yes
     571
    567572EOF
    568573            close(CONF);
     
    656661# PBREC is replaced by the list of recommandations
    657662#filter PBREC =
     663
     664EOF
     665            close(CONF);
     666            open(CONF,"> $ENV{'PBROOTDIR'}/pbfilter/debian-4.0.pbf") || die "Unable to create $ENV{'PBROOTDIR'}/pbfilter/debian-4.0.pbf";
     667            print CONF << "EOF";
     668#
     669# \$Id\$
     670#
     671# Filter for debian build
     672#
     673# PBDEBSTD is replaced by the Debian standard version
     674filter PBDEBSTD = 3.6.1
     675
     676# PBDEBCOMP is replaced by the Debian Compatibility value
     677filter PBDEBCOMP = 5
     678
     679EOF
     680            close(CONF);
     681            open(CONF,"> $ENV{'PBROOTDIR'}/pbfilter/debian-5.0.pbf") || die "Unable to create $ENV{'PBROOTDIR'}/pbfilter/debian-5.0.pbf";
     682            print CONF << "EOF";
     683#
     684# \$Id\$
     685#
     686# Filter for debian build
     687#
     688# PBDEBSTD is replaced by the Debian standard version
     689filter PBDEBSTD = 3.8.0
     690
     691# PBDEBCOMP is replaced by the Debian Compatibility value
     692filter PBDEBCOMP = 7
    658693
    659694EOF
     
    688723                print CONF << "EOF";
    689724Source: PBPKG
     725# http://www.debian.org/doc/debian-policy/ch-archive.html#s-subsections
    690726Section: PBGRP
    691727Priority: optional
    692728Maintainer: PBPACKAGER
    693729Build-Depends: debhelper (>= 4.2.20), PBDEP
    694 Standards-Version: 3.6.1
     730Standards-Version: PBDEBSTD
     731Vcs-Svn: svn://svn.PBPROJ.org/svn/PBVER/PBPKG
     732Vcs-Browser: http://trac.PBPROJ.org/browser/PBVER/PBPKG
     733Homepage: PBURL
    695734
    696735Package: PBPKG
    697736Architecture: amd64 i386 ia64
     737# http://www.debian.org/doc/debian-policy/ch-archive.html#s-subsections
    698738Section: PBGRP
    699739Priority: optional
     
    701741Recommends: PBREC
    702742Suggests: PBSUG
    703 Description:
     743Description: PBSUMMARY
    704744 PBDESC
    705745 .
    706  Homepage: PBURL
    707746
    708747EOF
     
    746785                open(CONF,"> $ENV{'PBROOTDIR'}/$pp/deb/compat") || die "Unable to create $ENV{'PBROOTDIR'}/$pp/deb/compat";
    747786                print CONF << "EOF";
    748 4
     787DBDEBCOMP
    749788EOF
    750789                close(CONF);
     
    908947#%define srcname    PBPKG
    909948
    910 Summary:        bla-bla
     949Summary:        PBSUMMARY
    911950Summary(fr):    french bla-bla
    912951
Note: See TracChangeset for help on using the changeset viewer.