2010-08-04 14:36:35 +02:00
|
|
|
{ fetchurl, stdenv, gmpxx, perl, gnum4, static ? false }:
|
2009-07-18 23:22:13 +02:00
|
|
|
|
2010-08-04 14:36:35 +02:00
|
|
|
let
|
|
|
|
version = "0.10.2";
|
2011-04-05 18:14:23 +02:00
|
|
|
staticFlags = if static then " --enable-static --disable-shared" else "";
|
2010-08-04 14:36:35 +02:00
|
|
|
in
|
2009-07-18 23:22:13 +02:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "ppl-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2010-06-15 11:14:16 +02:00
|
|
|
url = "mirror://gcc/infrastructure/ppl-${version}.tar.gz";
|
|
|
|
sha256 = "0lly44sac4jd72klnhhil3wha15vak76r6gy88sh0zjsaww9hf6h";
|
2009-07-18 23:22:13 +02:00
|
|
|
};
|
|
|
|
|
2010-08-01 23:21:26 +02:00
|
|
|
buildNativeInputs = [ perl gnum4 ];
|
2009-07-18 23:22:13 +02:00
|
|
|
propagatedBuildInputs = [ gmpxx ];
|
|
|
|
|
2010-08-04 14:36:35 +02:00
|
|
|
dontDisableStatic = if static then true else false;
|
|
|
|
configureFlags = staticFlags;
|
|
|
|
|
2009-07-18 23:22:13 +02:00
|
|
|
# Beware! It took ~6 hours to compile PPL and run its tests on a 1.2 GHz
|
|
|
|
# x86_64 box. Nevertheless, being a dependency of GCC, it probably ought
|
|
|
|
# to be tested.
|
2010-01-18 23:47:45 +01:00
|
|
|
doCheck = false;
|
2009-07-18 23:22:13 +02:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "PPL: The Parma Polyhedra Library";
|
|
|
|
|
|
|
|
longDescription = ''
|
|
|
|
The Parma Polyhedra Library (PPL) provides numerical abstractions
|
|
|
|
especially targeted at applications in the field of analysis and
|
|
|
|
verification of complex systems. These abstractions include convex
|
|
|
|
polyhedra, defined as the intersection of a finite number of (open or
|
|
|
|
closed) halfspaces, each described by a linear inequality (strict or
|
|
|
|
non-strict) with rational coefficients; some special classes of
|
|
|
|
polyhedra shapes that offer interesting complexity/precision tradeoffs;
|
|
|
|
and grids which represent regularly spaced points that satisfy a set of
|
|
|
|
linear congruence relations. The library also supports finite
|
|
|
|
powersets and products of (any kind of) polyhedra and grids and a mixed
|
|
|
|
integer linear programming problem solver using an exact-arithmetic
|
|
|
|
version of the simplex algorithm.
|
|
|
|
'';
|
|
|
|
|
|
|
|
homepage = http://www.cs.unipr.it/ppl/;
|
|
|
|
|
|
|
|
license = "GPLv3+";
|
|
|
|
|
|
|
|
maintainers = [ stdenv.lib.maintainers.ludo ];
|
|
|
|
};
|
|
|
|
}
|