|
|
|
@ -65,8 +65,8 @@ while (<>) { |
|
|
|
|
print " $pkg $pkgName\n"; |
|
|
|
|
|
|
|
|
|
if (defined $pkgNames{$pkg}) { |
|
|
|
|
print " SKIPPING\n"; |
|
|
|
|
next; |
|
|
|
|
print " SKIPPING\n"; |
|
|
|
|
next; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
$pkgURLs{$pkg} = $tarball; |
|
|
|
@ -90,7 +90,7 @@ while (<>) { |
|
|
|
|
my $provides = `find $pkgDir -name "*.pc.in"`; |
|
|
|
|
my @provides2 = split '\n', $provides; |
|
|
|
|
my @requires = (); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
foreach my $pcFile (@provides2) { |
|
|
|
|
my $pc = $pcFile; |
|
|
|
|
$pc =~ s/.*\///; |
|
|
|
@ -111,7 +111,7 @@ while (<>) { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
close FOO; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
my $file; |
|
|
|
@ -129,7 +129,7 @@ while (<>) { |
|
|
|
|
if ($file =~ /zlib is required/ || $file =~ /AC_CHECK_LIB\(z\,/) { |
|
|
|
|
push @requires, "zlib"; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ($file =~ /Perl is required/) { |
|
|
|
|
push @requires, "perl"; |
|
|
|
|
} |
|
|
|
@ -151,9 +151,9 @@ while (<>) { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if ($file =~ /AC_PATH_PROG\(FCCACHE/) { |
|
|
|
|
# Don't run fc-cache. |
|
|
|
|
die if defined $extraAttrs{$pkg}; |
|
|
|
|
$extraAttrs{$pkg} = " preInstall = \"installFlags=(FCCACHE=true)\"; "; |
|
|
|
|
# Don't run fc-cache. |
|
|
|
|
die if defined $extraAttrs{$pkg}; |
|
|
|
|
$extraAttrs{$pkg} = " preInstall = \"installFlags=(FCCACHE=true)\"; "; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
my $isFont; |
|
|
|
@ -179,10 +179,10 @@ while (<>) { |
|
|
|
|
|
|
|
|
|
sub process { |
|
|
|
|
my $requires = shift; |
|
|
|
|
my $s = shift; |
|
|
|
|
$s =~ s/\[/\ /g; |
|
|
|
|
$s =~ s/\]/\ /g; |
|
|
|
|
$s =~ s/\,/\ /g; |
|
|
|
|
my $s = shift; |
|
|
|
|
$s =~ s/\[/\ /g; |
|
|
|
|
$s =~ s/\]/\ /g; |
|
|
|
|
$s =~ s/\,/\ /g; |
|
|
|
|
foreach my $req (split / /, $s) { |
|
|
|
|
next if $req eq ">="; |
|
|
|
|
#next if $req =~ /^\$/; |
|
|
|
@ -211,7 +211,7 @@ while (<>) { |
|
|
|
|
|
|
|
|
|
push @requires, "libxslt" if $pkg =~ /libxcb/; |
|
|
|
|
push @requires, "gperf", "m4", "xproto" if $pkg =~ /xcbutil/; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
print "REQUIRES $pkg => @requires\n"; |
|
|
|
|
$pkgRequires{$pkg} = \@requires; |
|
|
|
|
|
|
|
|
@ -234,6 +234,8 @@ let |
|
|
|
|
|
|
|
|
|
xorg = rec { |
|
|
|
|
|
|
|
|
|
inherit pixman; |
|
|
|
|
|
|
|
|
|
EOF |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -257,7 +259,7 @@ foreach my $pkg (sort (keys %pkgURLs)) { |
|
|
|
|
|
|
|
|
|
my $extraAttrs = $extraAttrs{"$pkg"}; |
|
|
|
|
$extraAttrs = "" unless defined $extraAttrs; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
print OUT <<EOF |
|
|
|
|
$pkg = (stdenv.mkDerivation ((if overrides ? $pkg then overrides.$pkg else x: x) { |
|
|
|
|
name = "$pkgNames{$pkg}"; |
|
|
|
@ -268,7 +270,7 @@ foreach my $pkg (sort (keys %pkgURLs)) { |
|
|
|
|
}; |
|
|
|
|
buildInputs = [pkgconfig $inputs];$extraAttrs |
|
|
|
|
})) // {inherit $inputs;}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
EOF |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|