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


Ignore:
Timestamp:
Aug 3, 2008, 1:20:30 PM (16 years ago)
Author:
Bruno Cornec
Message:
  • Working patch support added to pb (tested with buffer)
  • Filtering functions now handle also pointer on hashes (such as the new pb hash)
  • Filtering functions support new macro for patch support (PBPATCHSRC and PBPATCHCMD)
  • Env.pm now generates correct templates for patch support and uses the new pb hash
  • pb_cms_export extended to support file:// URI, and also supports an undef second param (no local export available)
  • In pb, hashes now include also the arch (for better patch support)
  • pb supports local CMS based patches, as well as external references (not tested yet)
  • New pb_get_arch function provided
  • New parameters for pb_system (mayfail and quiet)
File:
1 edited

Legend:

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

    r484 r500  
    477477#
    478478# PBREPO is replaced by the root URL to access the repository
    479 filter PBREPO = \$pbrepo
     479filter PBREPO = \$pb->{'repo'}
    480480
    481481# PBSRC is replaced by the source package location after the repo
    482482#filter PBSRC = src/%{name}-%{version}.tar.gz
    483483
    484 # PBVER is replaced by the version (\$pbver in code)
    485 filter PBVER = \$pbver
    486 
    487 # PBDATE is replaced by the date (\$pbdate in code)
    488 filter PBDATE = \$pbdate
     484# PBVER is replaced by the version (\$pb->{'ver'} in code)
     485filter PBVER = \$pb->{'ver'}
     486
     487# PBDATE is replaced by the date (\$pb->{'date'} in code)
     488filter PBDATE = \$pb->{'date'}
    489489
    490490# PBLOG is replaced by the changelog if value is yes
    491491#filter PBLOG = yes
    492492
    493 # PBTAG is replaced by the tag (\$pbtag in code)
    494 filter PBTAG = \$pbtag
    495 
    496 # PBREV is replaced by the revision (\$pbrev in code)
    497 filter PBREV = \$pbrev
    498 
    499 # PBPKG is replaced by the package name (\$pbpkg in code)
    500 filter PBPKG = \$pbpkg
    501 
    502 # PBPACKAGER is replaced by the packager name (\$pbpackager in code)
    503 filter PBPACKAGER = \$pbpackager
     493# PBPATCHSRC is replaced by the patches names if value is yes
     494#filter PBPATCHSRC = yes
     495
     496# PBPATCHCMD is replaced by the patches commands if value is yes
     497#filter PBPATCHCMD = yes
     498
     499# PBTAG is replaced by the tag (\$pb->{'tag'} in code)
     500filter PBTAG = \$pb->{'tag'}
     501
     502# PBREV is replaced by the revision (\$pb->{'rev'} in code)
     503filter PBREV = \$pb->{'rev'}
     504
     505# PBPKG is replaced by the package name (\$pb->{'pkg'} in code)
     506filter PBPKG = \$pb->{'pkg'}
     507
     508# PBPACKAGER is replaced by the packager name (\$pb->{'packager'} in code)
     509filter PBPACKAGER = \$pb->{'packager'}
    504510
    505511# PBDESC contains the description of the package
     
    527533#filter PBDEP =
    528534
    529 # PBSUF is replaced by the package suffix (\$pbsuf in code)
    530 filter PBSUF = \$pbsuf
     535# PBSUF is replaced by the package suffix (\$pb->{'suf'} in code)
     536filter PBSUF = \$pb->{'suf'}
    531537
    532538# PBOBS is replaced by the Obsolete line
     
    554560#filter PBDEP =
    555561
    556 # PBSUF is replaced by the package suffix (\$pbsuf in code)
     562# PBSUF is replaced by the package suffix (\$pbsuf'} in code)
    557563filter PBSUF = %{dist}
    558564
     
    844850Url:            PBURL
    845851Source:         PBREPO/PBSRC
     852#PBPATCHSRC
    846853BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -u -n)
    847854#Requires:       PBDEP
     
    855862%prep
    856863%setup -q
     864#PBPATCHCMD
    857865
    858866%build
Note: See TracChangeset for help on using the changeset viewer.