mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-25 04:12:44 +03:00
* More dependencies.
svn path=/nixpkgs/trunk/; revision=4562
This commit is contained in:
parent
7bc09b8f2f
commit
43a679bab7
@ -2622,8 +2622,8 @@ rec {
|
||||
url = http://mirror.switch.ch/ftp/mirror/X11/pub/X11R7.0/src/everything/xorg-server-X11R7.0-1.0.1.tar.bz2;
|
||||
md5 = "0e7527480fb845a3c2e333bd0f47ff50";
|
||||
};
|
||||
buildInputs = [pkgconfig bigreqsproto compositeproto damageproto libdmx dmxproto evieext fixesproto fontcacheproto libfontenc fontsproto glproto inputproto liblbxutil libdrm printproto randrproto recordproto renderproto resourceproto scrnsaverproto trapproto videoproto libX11 libXau libXaw xcmiscproto libXdmcp libXext xextproto xf86bigfontproto xf86dgaproto xf86driproto xf86miscproto xf86vidmodeproto libXfont libXi xineramaproto libxkbfile libXmu libXpm xproto libXrender libXres libXt xtrans libXtst ];
|
||||
}) // {inherit bigreqsproto compositeproto damageproto libdmx dmxproto evieext fixesproto fontcacheproto libfontenc fontsproto glproto inputproto liblbxutil libdrm printproto randrproto recordproto renderproto resourceproto scrnsaverproto trapproto videoproto libX11 libXau libXaw xcmiscproto libXdmcp libXext xextproto xf86bigfontproto xf86dgaproto xf86driproto xf86miscproto xf86vidmodeproto libXfont libXi xineramaproto libxkbfile libXmu libXpm xproto libXrender libXres libXt xtrans libXtst ;};
|
||||
buildInputs = [pkgconfig bigreqsproto compositeproto damageproto libdmx dmxproto evieext fixesproto fontcacheproto libfontenc fontsproto glproto inputproto liblbxutil libdrm mesa perl printproto randrproto recordproto renderproto resourceproto scrnsaverproto trapproto videoproto libX11 libXau libXaw xcmiscproto libXdmcp libXext xextproto xf86bigfontproto xf86dgaproto xf86driproto xf86miscproto xf86vidmodeproto libXfont libXi xineramaproto libxkbfile libxkbui libXmu libXpm xproto libXrender libXres libXt xtrans libXtst libXxf86misc libXxf86vm zlib ];
|
||||
}) // {inherit bigreqsproto compositeproto damageproto libdmx dmxproto evieext fixesproto fontcacheproto libfontenc fontsproto glproto inputproto liblbxutil libdrm mesa perl printproto randrproto recordproto renderproto resourceproto scrnsaverproto trapproto videoproto libX11 libXau libXaw xcmiscproto libXdmcp libXext xextproto xf86bigfontproto xf86dgaproto xf86driproto xf86miscproto xf86vidmodeproto libXfont libXi xineramaproto libxkbfile libxkbui libXmu libXpm xproto libXrender libXres libXt xtrans libXtst libXxf86misc libXxf86vm zlib ;};
|
||||
|
||||
xorgsgmldoctools = (stdenv.mkDerivation {
|
||||
name = "xorg-sgml-doctools-1.0.1";
|
||||
|
@ -27,9 +27,10 @@ $pcMap{"freetype2"} = "freetype";
|
||||
$pcMap{"fontconfig"} = "fontconfig";
|
||||
$pcMap{"libpng12"} = "libpng";
|
||||
$pcMap{"libdrm"} = "libdrm";
|
||||
$pcMap{"libdrm"} = "libdrm";
|
||||
$pcMap{"libXaw"} = "libXaw";
|
||||
$pcMap{"zlib"} = "zlib";
|
||||
$pcMap{"perl"} = "perl";
|
||||
$pcMap{"mesa"} = "mesa";
|
||||
|
||||
|
||||
$extraAttrs{"imake"} = " inherit xorgcffiles; x11BuildHook = ./imake.sh; patches = [./imake.patch]; ";
|
||||
@ -54,6 +55,7 @@ while (<>) {
|
||||
die unless defined $1;
|
||||
my $pkg = $1;
|
||||
$pkg =~ s/-//g;
|
||||
# next unless $pkg eq "xorgserverX11R7";
|
||||
print "$pkg\n";
|
||||
$pkg =~ s/$version//g if $version ne "";
|
||||
$pkgURLs{$pkg} = $tarball;
|
||||
@ -90,19 +92,28 @@ while (<>) {
|
||||
}
|
||||
|
||||
my @requires = ();
|
||||
my $file;
|
||||
{
|
||||
local $/;
|
||||
open FOO, "cd '$tmpDir'/* && cat configure.ac |";
|
||||
while (<FOO>) {
|
||||
if (/XAW_CHECK_XPRINT_SUPPORT/) {
|
||||
$file = <FOO>;
|
||||
close FOO;
|
||||
}
|
||||
|
||||
if ($file =~ /XAW_CHECK_XPRINT_SUPPORT/) {
|
||||
push @requires, "libXaw";
|
||||
}
|
||||
if (/zlib is required/ || /AC_CHECK_LIB\(z\,/) {
|
||||
|
||||
if ($file =~ /zlib is required/ || $file =~ /AC_CHECK_LIB\(z\,/) {
|
||||
push @requires, "zlib";
|
||||
}
|
||||
if (/PKG_CHECK_MODULES\([^,]*,\s*\[?([^\),\]]*)/ ||
|
||||
/MODULES=\"(.*)\"/ ||
|
||||
/REQUIRED_LIBS=\"(.*)\"/ ||
|
||||
/REQUIRES=\"(.*)\"/)
|
||||
{
|
||||
|
||||
if ($file =~ /Perl is required/) {
|
||||
push @requires, "perl";
|
||||
}
|
||||
|
||||
sub process {
|
||||
my $requires = shift;
|
||||
foreach my $req (split / /, $1) {
|
||||
next if $req eq ">=";
|
||||
next if $req =~ /^\$/;
|
||||
@ -110,11 +121,19 @@ while (<>) {
|
||||
$req =~ s/\[//g;
|
||||
$req =~ s/\]//g;
|
||||
print "REQUIRE: $req\n";
|
||||
push @requires, $req;
|
||||
push @{$requires}, $req;
|
||||
}
|
||||
}
|
||||
}
|
||||
print "REQUIRES @requires\n";
|
||||
|
||||
process \@requires, $1 while $file =~ /PKG_CHECK_MODULES\([^,]*,\s*\[?([^\),\]]*)/g;
|
||||
process \@requires, $1 while $file =~ /MODULES=\"(.*)\"/g;
|
||||
process \@requires, $1 while $file =~ /REQUIRED_LIBS=\"(.*)\"/g;
|
||||
process \@requires, $1 while $file =~ /REQUIRES=\"(.*)\"/g;
|
||||
|
||||
push @requires, "mesa" if $pkg =~ /xorgserver/;
|
||||
push @requires, "zlib" if $pkg =~ /xorgserver/;
|
||||
|
||||
print "REQUIRES @requires => $pkg\n";
|
||||
$pkgRequires{$pkg} = \@requires;
|
||||
|
||||
print "done\n";
|
||||
|
Loading…
Reference in New Issue
Block a user