2009-07-03 13:31:33 +02:00
|
|
|
{ stdenv, fetchurl, flex, bison, ncurses, buddy, tecla, libsigsegv, gmpxx, makeWrapper }:
|
2008-07-15 11:58:30 +02:00
|
|
|
|
2008-07-18 22:11:25 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2008-11-13 20:35:48 +01:00
|
|
|
name = "maude-2.4";
|
2010-04-12 13:21:42 +02:00
|
|
|
|
2008-07-18 22:11:25 +02:00
|
|
|
meta = {
|
2008-07-15 11:58:30 +02:00
|
|
|
homepage = "http://maude.cs.uiuc.edu/";
|
|
|
|
description = "Maude -- a high-level specification language";
|
|
|
|
license = "GPLv2";
|
|
|
|
};
|
2010-04-12 13:21:42 +02:00
|
|
|
|
2008-07-18 22:11:25 +02:00
|
|
|
src = fetchurl {
|
2008-11-13 20:35:48 +01:00
|
|
|
url = "http://maude.cs.uiuc.edu/download/current/Maude-2.4.tar.gz";
|
|
|
|
sha256 = "0bydkf8fd5v267bfak4mm5lmm3vvnr6ir1jr7gimgyzqygdk0in2";
|
|
|
|
};
|
2010-04-12 13:21:42 +02:00
|
|
|
|
2008-11-13 20:35:48 +01:00
|
|
|
fullMaude = fetchurl {
|
2008-11-14 23:53:09 +01:00
|
|
|
url = "http://maude.cs.uiuc.edu/download/current/FM2.4/full-maude24.maude";
|
2009-02-17 13:51:04 +01:00
|
|
|
sha256 = "9e4ebdc717dc968d0b6c1179f360e60b3a39ea8cecc1a7fa49f2105bbddc48c4";
|
2008-07-15 11:58:30 +02:00
|
|
|
};
|
2010-04-12 13:21:42 +02:00
|
|
|
|
2008-07-18 22:11:25 +02:00
|
|
|
docs = fetchurl {
|
2008-07-15 11:58:30 +02:00
|
|
|
url = "http://mirror.switch.ch/mirror/gentoo/distfiles/maude-2.3.0-extras.tar.bz2";
|
|
|
|
sha256 = "0kd5623k1wwj1rk4b6halrm3sdvd9kbiwg1hi2c3qim1nlfdgl0d";
|
|
|
|
};
|
2010-04-12 13:21:42 +02:00
|
|
|
|
2009-07-03 13:31:33 +02:00
|
|
|
buildInputs = [flex bison ncurses buddy tecla gmpxx libsigsegv makeWrapper];
|
2010-04-12 13:21:42 +02:00
|
|
|
|
2008-11-14 23:53:09 +01:00
|
|
|
configurePhase = ''./configure --disable-dependency-tracking --prefix=$out --datadir=$out/share/maude TECLA_LIBS="-ltecla -lncursesw" CFLAGS="-O3" CXXFLAGS="-O3"'';
|
2010-04-12 13:21:42 +02:00
|
|
|
|
2008-11-13 20:35:48 +01:00
|
|
|
doCheck = true;
|
2010-04-12 13:21:42 +02:00
|
|
|
|
2008-07-15 11:58:30 +02:00
|
|
|
postInstall =
|
|
|
|
''
|
2008-11-14 23:53:09 +01:00
|
|
|
for n in $out/bin/*; do wrapProgram "$n" --suffix MAUDE_LIB ':' "$out/share/maude"; done
|
2008-07-15 11:58:30 +02:00
|
|
|
ensureDir $out/share/maude
|
2008-11-14 23:53:09 +01:00
|
|
|
cp ${fullMaude} $out/share/maude/full-maude.maude
|
2008-11-13 20:35:48 +01:00
|
|
|
|
2008-07-15 11:58:30 +02:00
|
|
|
ensureDir $out/share/doc/maude
|
|
|
|
tar xf ${docs}
|
2008-11-13 20:35:48 +01:00
|
|
|
rm -f maude-2.3.0-extras/full-maude.maude
|
2008-07-15 11:58:30 +02:00
|
|
|
mv maude-2.3.0-extras/pdfs $out/share/doc/maude/pdf
|
|
|
|
mv maude-2.3.0-extras/* $out/share/doc/maude/
|
|
|
|
'';
|
2010-04-12 13:21:42 +02:00
|
|
|
|
|
|
|
maintainers = [ stdenv.lib.maintainers.simons ];
|
2008-07-15 11:58:30 +02:00
|
|
|
}
|