X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/5b6977f54e7aa62bee8851fc8df40bf631f10c2d..18804bfb8b31026c0ad960739971fbde4d7d7421:/scripts/metadata.pm diff --git a/scripts/metadata.pm b/scripts/metadata.pm index 8302728be..5efef4692 100644 --- a/scripts/metadata.pm +++ b/scripts/metadata.pm @@ -66,6 +66,7 @@ sub parse_package_metadata($) { $pkg->{title} = ""; $pkg->{default} = "m if ALL"; $pkg->{depends} = []; + $pkg->{mdepends} = []; $pkg->{builddepends} = []; $pkg->{buildtypes} = []; $pkg->{subdir} = $subdir; @@ -111,7 +112,10 @@ sub parse_package_metadata($) { push @{$package{$vpkg}->{vdepends}}, $pkg->{name}; } }; + /^Menu-Depends: \s*(.+)\s*$/ and $pkg->{mdepends} = [ split /\s+/, $1 ]; /^Depends: \s*(.+)\s*$/ and $pkg->{depends} = [ split /\s+/, $1 ]; + /^Hidden: \s*(.+)\s*$/ and $pkg->{hidden} = 1; + /^Build-Variant: \s*([\w\-]+)\s*/ and $pkg->{variant} = $1; /^Build-Only: \s*(.+)\s*$/ and $pkg->{buildonly} = 1; /^Build-Depends: \s*(.+)\s*$/ and $pkg->{builddepends} = [ split /\s+/, $1 ]; /^Build-Depends\/(\w+): \s*(.+)\s*$/ and $pkg->{"builddepends/$1"} = [ split /\s+/, $2 ];