* ATK and GLib need Perl.

TODO: clean up the Perl build.  Currently it's still using some external
  libraries, and it doesn't pass all its unit tests.

svn path=/nixpkgs/trunk/; revision=326
This commit is contained in:
Eelco Dolstra 2003-08-19 14:52:52 +00:00
parent 0dc6fd3204
commit 4ec5cab7a5
6 changed files with 33 additions and 2 deletions

View File

@ -2,7 +2,7 @@
envpkgs=$glib
. $stdenv/setup || exit 1
export PATH=$pkgconfig/bin:$PATH
export PATH=$pkgconfig/bin:$perl/bin:$PATH
tar xvfj $src || exit 1
cd atk-* || exit 1

View File

@ -11,5 +11,6 @@ Package(
, ("stdenv", IncludeFix("stdenv/stdenv.fix"))
, ("pkgconfig", IncludeFix("pkgconfig/pkgconfig.fix"))
, ("glib", IncludeFix("glib/glib.fix"))
, ("perl", IncludeFix("perl/perl.fix"))
]
)

View File

@ -1,7 +1,7 @@
#! /bin/sh
. $stdenv/setup || exit 1
export PATH=$pkgconfig/bin:$gettext/bin:$PATH
export PATH=$pkgconfig/bin:$gettext/bin:$perl/bin:$PATH
tar xvfj $src || exit 1
cd glib-* || exit 1

View File

@ -11,5 +11,6 @@ Package(
, ("stdenv", IncludeFix("stdenv/stdenv.fix"))
, ("pkgconfig", IncludeFix("pkgconfig/pkgconfig.fix"))
, ("gettext", IncludeFix("gettext/gettext.fix"))
, ("perl", IncludeFix("perl/perl.fix"))
]
)

16
pkgs/perl/perl-build.sh Executable file
View File

@ -0,0 +1,16 @@
#! /bin/sh
. $stdenv/setup || exit 1
tar xvfz $src || exit 1
cd perl-* || exit 1
# Perl's Configure messes with PATH. We can't have that, so we patch it.
# Yeah, this is an ugly hack.
grep -v '^paths=' Configure > Configure.tmp || exit 1
mv Configure.tmp Configure || exit 1
chmod +x Configure || exit 1
./Configure -de -Dcc=gcc -Dprefix=$out -Uinstallusrbinperl || exit 1
make || exit 1
make install || exit 1

13
pkgs/perl/perl.fix Normal file
View File

@ -0,0 +1,13 @@
Package(
[ ("name", "perl-5.8.0")
, ("build", Relative("perl/perl-build.sh"))
, ("src", Call(IncludeFix("fetchurl/fetchurl.fix"),
[ ("url", "http://www.perl.com/CPAN/src/5.0/perl-5.8.0.tar.gz")
, ("md5", "d9bdb180620306023fd35901a2878b62")
]))
, ("stdenv", IncludeFix("stdenv/stdenv.fix"))
]
)