2009-11-06 23:44:13 +01:00
|
|
|
{ fetchurl, stdenv, libpng }:
|
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";
|
|
|
|
};
|
|
|
|
|
|
|
|
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
|
|
|
|
|
2009-11-06 23:44:13 +01:00
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
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;
|
2009-11-06 23:44:13 +01:00
|
|
|
maintainers = [
|
|
|
|
stdenv.lib.maintainers.marcweber
|
|
|
|
stdenv.lib.maintainers.ludo
|
|
|
|
];
|
|
|
|
platforms = stdenv.lib.platforms.gnu;
|
2009-10-18 06:43:50 +02:00
|
|
|
};
|
|
|
|
}
|