Changeset 2334 in ProjectBuilder for devel/pb-modules/lib/ProjectBuilder


Ignore:
Timestamp:
Oct 25, 2017, 12:01:59 AM (6 years ago)
Author:
Bruno Cornec
Message:

Greatly improve apk build (still not finished however)

Location:
devel/pb-modules/lib/ProjectBuilder
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • devel/pb-modules/lib/ProjectBuilder/Distribution.pm

    r2333 r2334  
    413413    $regexp = '^Build-Depends:(.*)$';
    414414} elsif ($pbos->{'type'} eq "apk") {
    415     # TODO
    416     $regexp = 'TODO\n';
     415    $regexp = '^makedepends=(.*)$';
    417416} elsif ($pbos->{'type'} eq "ebuild") {
    418417    $sep = '"'.$/;
     
    527526        pb_log(1, "INFO: missing dependency $p\n");
    528527    } elsif ($pbos->{'type'} eq "ebuild") {
     528    } elsif ($pbos->{'type'} eq "apk") {
     529        my $res = pb_system("apk info $p","Looking for $p","mayfail");
     530        next if ($res eq 0);
     531        pb_log(1, "INFO: missing dependency $p\n");
    529532    } else {
    530533        # Not reached
  • devel/pb-modules/lib/ProjectBuilder/Env.pm

    r2320 r2334  
    266266pb_log(1,"PBDESTDIR: $ENV{'PBDESTDIR'}\n");
    267267#
    268 # Removes all directory existing below the delivery dir
     268# Removes all directories existing below the delivery dir
    269269# as they are temp dir only except when called from a pbinit script
    270270# Files stay and have to be cleaned up manually if needed
Note: See TracChangeset for help on using the changeset viewer.