2009-11-05 22:53:37 +01:00
|
|
|
a :
|
|
|
|
let
|
|
|
|
buildInputs = with a; [
|
2010-07-06 18:48:03 +02:00
|
|
|
mpfr m4 binutils emacs gmp
|
2009-11-06 10:44:03 +01:00
|
|
|
libX11 xproto inputproto libXi
|
|
|
|
libXext xextproto libXt libXaw libXmu
|
2010-07-06 18:48:03 +02:00
|
|
|
zlib which
|
2009-11-05 22:53:37 +01:00
|
|
|
];
|
|
|
|
in
|
|
|
|
rec {
|
2009-11-06 10:44:03 +01:00
|
|
|
src = a.fetchcvs {
|
|
|
|
cvsRoot = ":pserver:anonymous@cvs.sv.gnu.org:/sources/gcl";
|
|
|
|
module = "gcl";
|
2010-07-06 18:48:03 +02:00
|
|
|
# tag = "Version_2_6_8pre";
|
|
|
|
date = "2010-07-01";
|
|
|
|
sha256 = "a61d1bf669fd11d13050e8e1ab850a5eecb38126b47c744c3e21646773c4fb4d";
|
2009-11-06 10:44:03 +01:00
|
|
|
};
|
2009-11-05 22:53:37 +01:00
|
|
|
|
2009-11-06 10:44:03 +01:00
|
|
|
name = "gcl-2.6.8pre";
|
2009-11-05 22:53:37 +01:00
|
|
|
inherit buildInputs;
|
2010-07-06 22:27:48 +02:00
|
|
|
configureFlags = [
|
|
|
|
"--enable-xgcl=yes"
|
|
|
|
"--enable-ansi"
|
|
|
|
];
|
2009-11-05 22:53:37 +01:00
|
|
|
|
2010-07-06 21:59:10 +02:00
|
|
|
# Upstream bug submitted - http://savannah.gnu.org/bugs/index.php?30371
|
|
|
|
# $TMPDIR must have no extension
|
|
|
|
setVars = a.noDepEntry ''
|
|
|
|
export TMPDIR="''${TMPDIR:-''${TMP:-''${TEMP}}}/tmp-for-gcl"
|
|
|
|
mkdir -p "$TMPDIR"
|
|
|
|
'';
|
|
|
|
|
2009-11-06 10:44:03 +01:00
|
|
|
preBuild = a.fullDepEntry (''
|
2010-07-06 18:48:03 +02:00
|
|
|
sed -re "s@/bin/cat@$(which cat)@g" -i configure */configure
|
|
|
|
sed -re "s@if test -d /proc/self @if false @" -i configure
|
|
|
|
sed -re 's^([ \t])cpp ^\1cpp -I${a.stdenv.gcc.gcc}/include -I${a.stdenv.gcc.libc}/include ^g' -i makefile
|
2009-11-06 10:44:03 +01:00
|
|
|
'') ["minInit" "doUnpack"];
|
|
|
|
|
2009-11-05 22:53:37 +01:00
|
|
|
/* doConfigure should be removed if not needed */
|
2010-07-06 22:27:48 +02:00
|
|
|
phaseNames = ["setVars" "doUnpack" "preBuild"
|
2010-07-06 18:48:03 +02:00
|
|
|
"doConfigure" "doMakeInstall"];
|
2009-11-05 22:53:37 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "GNU Common Lisp compiler working via GCC";
|
|
|
|
maintainers = [
|
|
|
|
a.lib.maintainers.raskin
|
|
|
|
];
|
|
|
|
platforms = with a.lib.platforms;
|
|
|
|
all;
|
|
|
|
};
|
|
|
|
}
|