2018-01-17 20:25:18 +01:00
|
|
|
{ fetchurl, stdenv, libpng, autoreconfHook }:
|
2009-10-18 06:43:50 +02:00
|
|
|
|
|
|
|
# debian splits this package into plotutils and libplot2c2
|
|
|
|
|
|
|
|
# gentoo passes X, this package contains fonts
|
|
|
|
# I'm only interested in making pstoedit convert to svg
|
|
|
|
|
2009-11-06 23:44:13 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "plotutils-2.6";
|
2009-10-18 06:43:50 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2009-11-06 23:44:13 +01:00
|
|
|
url = "mirror://gnu/plotutils/${name}.tar.gz";
|
2009-10-18 06:43:50 +02:00
|
|
|
sha256 = "1arkyizn5wbgvbh53aziv3s6lmd3wm9lqzkhxb3hijlp1y124hjg";
|
|
|
|
};
|
|
|
|
|
2018-01-17 20:25:18 +01:00
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
2016-08-24 21:27:51 +02:00
|
|
|
buildInputs = [ libpng ];
|
2012-01-25 19:06:30 +01:00
|
|
|
patches = map fetchurl (import ./debian-patches.nix);
|
|
|
|
|
2009-10-18 06:43:50 +02:00
|
|
|
configureFlags = "--enable-libplotter"; # required for pstoedit
|
|
|
|
|
2016-02-26 18:38:15 +01:00
|
|
|
hardeningDisable = [ "format" ];
|
2016-02-12 03:48:09 +01:00
|
|
|
|
2009-11-06 23:44:13 +01:00
|
|
|
doCheck = true;
|
|
|
|
|
2018-01-17 20:25:18 +01:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2009-11-06 23:44:13 +01:00
|
|
|
meta = {
|
2014-08-24 16:21:08 +02:00
|
|
|
description = "Powerful C/C++ library for exporting 2D vector graphics";
|
2009-11-06 23:44:13 +01:00
|
|
|
|
|
|
|
longDescription =
|
|
|
|
'' The GNU plotutils package contains software for both programmers and
|
|
|
|
technical users. Its centerpiece is libplot, a powerful C/C++
|
|
|
|
function library for exporting 2-D vector graphics in many file
|
|
|
|
formats, both vector and raster. It can also do vector graphics
|
|
|
|
animations.
|
|
|
|
|
|
|
|
libplot is device-independent in the sense that its API (application
|
|
|
|
programming interface) does not depend on the type of graphics file
|
|
|
|
to be exported.
|
|
|
|
|
|
|
|
Besides libplot, the package contains command-line programs for
|
|
|
|
plotting scientific data. Many of them use libplot to export
|
|
|
|
graphics.
|
|
|
|
'';
|
|
|
|
|
2009-10-18 06:43:50 +02:00
|
|
|
homepage = http://www.gnu.org/software/plotutils/;
|
2009-11-06 23:44:13 +01:00
|
|
|
|
2014-06-19 06:19:00 +02:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2016-08-24 21:27:51 +02:00
|
|
|
maintainers = [ stdenv.lib.maintainers.marcweber ];
|
2017-02-07 09:01:33 +01:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2009-10-18 06:43:50 +02:00
|
|
|
};
|
|
|
|
}
|