math/octave-forge-base: Allow arbitrary case in Depends fields.

Update to 1.9.
This commit is contained in:
Stephen Montgomery-Smith 2023-01-13 12:36:13 -06:00
parent 18999e9e85
commit 7149bc44df
2 changed files with 3 additions and 3 deletions

View file

@ -1,5 +1,5 @@
PORTNAME= octave-forge-base
PORTVERSION= 1.8
PORTVERSION= 1.9
CATEGORIES= math
MASTER_SITES= #none
DISTFILES= #none

View file

@ -98,7 +98,7 @@ while (my $p = <$install_prefix/*>) {
$p =~ s+.*/++;
open(D,"$install_prefix/$p/packinfo/DESCRIPTION") || die $!;
foreach my $l (<D>) {
if ($l=~s/^Depends:\s*//) {
if ($l=~s/^Depends:\s*//i) {
foreach my $ll (split ",",$l) {
chomp($ll);
$ll = lc($ll);
@ -195,7 +195,7 @@ foreach my $n (keys %in_tarballs) {
die if $#list_of_files!=0;
my $descr = $tar->get_content($list_of_files[0]);
foreach my $l (split /\n/,$descr) {
if ($l=~s/^Depends:\s*//) {
if ($l=~s/^Depends:\s*//i) {
foreach my $ll (split ",",$l) {
$ll = lc($ll);
$ll =~ s/^\s+//;