2009-11-06 22:44:13 +00:00
|
|
|
{ fetchurl, stdenv, libpng }:
|
2009-10-18 04:43:50 +00: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 22:44:13 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "plotutils-2.6";
|
2009-10-18 04:43:50 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2009-11-06 22:44:13 +00:00
|
|
|
url = "mirror://gnu/plotutils/${name}.tar.gz";
|
2009-10-18 04:43:50 +00:00
|
|
|
sha256 = "1arkyizn5wbgvbh53aziv3s6lmd3wm9lqzkhxb3hijlp1y124hjg";
|
|
|
|
};
|
|
|
|
|
2016-08-24 19:27:51 +00:00
|
|
|
buildInputs = [ libpng ];
|
|
|
|
|
|
|
|
# disable failing test on i686
|
2016-08-24 19:27:51 +00:00
|
|
|
# https://lists.gnu.org/archive/html/bug-plotutils/2016-04/msg00002.html
|
2016-08-24 19:27:51 +00:00
|
|
|
prePatch = stdenv.lib.optionalString stdenv.isi686 ''
|
|
|
|
substituteInPlace test/Makefile.in --replace 'spline.test' ' '
|
|
|
|
'';
|
2009-10-18 04:43:50 +00:00
|
|
|
|
2012-01-25 18:06:30 +00:00
|
|
|
patches = map fetchurl (import ./debian-patches.nix);
|
|
|
|
|
2009-10-18 04:43:50 +00:00
|
|
|
configureFlags = "--enable-libplotter"; # required for pstoedit
|
|
|
|
|
2016-02-26 17:38:15 +00:00
|
|
|
hardeningDisable = [ "format" ];
|
2016-02-12 02:48:09 +00:00
|
|
|
|
2009-11-06 22:44:13 +00:00
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
meta = {
|
2014-08-24 14:21:08 +00:00
|
|
|
description = "Powerful C/C++ library for exporting 2D vector graphics";
|
2009-11-06 22:44:13 +00: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 04:43:50 +00:00
|
|
|
homepage = http://www.gnu.org/software/plotutils/;
|
2009-11-06 22:44:13 +00:00
|
|
|
|
2014-06-19 04:19:00 +00:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2016-08-24 19:27:51 +00:00
|
|
|
maintainers = [ stdenv.lib.maintainers.marcweber ];
|
2009-11-06 22:44:13 +00:00
|
|
|
platforms = stdenv.lib.platforms.gnu;
|
2009-10-18 04:43:50 +00:00
|
|
|
};
|
|
|
|
}
|