2011-12-14 14:31:56 +00:00
|
|
|
{ fetchurl, stdenv, gmpxx, perl, gnum4 }:
|
|
|
|
|
2015-07-21 21:34:52 +00:00
|
|
|
let version = "1.1"; in
|
2011-12-14 14:31:56 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "ppl-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://bugseng.com/products/ppl/download/ftp/releases/${version}/ppl-${version}.tar.bz2";
|
2015-07-21 21:34:52 +00:00
|
|
|
sha256 = "1vrqhbpyca6sf984cfcwlp8wdnfzj1g7ph9958qdky9978i1nlny";
|
2011-12-14 14:31:56 +00:00
|
|
|
};
|
|
|
|
|
2012-12-28 18:20:09 +00:00
|
|
|
nativeBuildInputs = [ perl gnum4 ];
|
2011-12-14 14:31:56 +00:00
|
|
|
propagatedBuildInputs = [ gmpxx ];
|
|
|
|
|
2014-06-01 18:46:33 +00:00
|
|
|
configureFlags = [ "--disable-watchdog" ] ++
|
2014-05-28 06:35:31 +00:00
|
|
|
stdenv.lib.optionals stdenv.isDarwin [
|
2014-06-01 18:46:33 +00:00
|
|
|
"CPPFLAGS=-fexceptions"
|
2014-05-28 06:35:31 +00:00
|
|
|
"--disable-ppl_lcdd" "--disable-ppl_lpsol" "--disable-ppl_pips"
|
|
|
|
];
|
2011-12-14 14:31:56 +00:00
|
|
|
|
2015-07-21 21:34:52 +00:00
|
|
|
patches = [ ./ppl-cstddef.patch /* from Fedora */ ];
|
2013-02-20 09:20:07 +00:00
|
|
|
|
2011-12-14 14:31:56 +00: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.
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
meta = {
|
2014-08-24 14:21:08 +00:00
|
|
|
description = "The Parma Polyhedra Library";
|
2011-12-14 14:31:56 +00:00
|
|
|
|
|
|
|
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.
|
|
|
|
'';
|
|
|
|
|
2013-02-20 09:20:07 +00:00
|
|
|
homepage = http://bugseng.com/products/ppl/;
|
2011-12-14 14:31:56 +00:00
|
|
|
|
2014-06-19 04:19:00 +00:00
|
|
|
license = stdenv.lib.licenses.gpl3Plus;
|
2011-12-14 14:31:56 +00:00
|
|
|
|
2013-08-16 21:44:33 +00:00
|
|
|
maintainers = [ ];
|
2011-12-14 14:31:56 +00:00
|
|
|
};
|
|
|
|
}
|