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