From 2006874c2bc396e3385897c73018b70b6f6e7cf4 Mon Sep 17 00:00:00 2001 From: Antero Mejr Date: Thu, 25 Aug 2022 15:48:03 -0400 Subject: gnu: Add plplot. * gnu/packages/graph.scm (plplot): New variable. Signed-off-by: Sharlatan Hellseher --- gnu/packages/plotutils.scm | 51 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) (limited to 'gnu/packages/plotutils.scm') diff --git a/gnu/packages/plotutils.scm b/gnu/packages/plotutils.scm index 4462621cc1..a86e1e4473 100644 --- a/gnu/packages/plotutils.scm +++ b/gnu/packages/plotutils.scm @@ -4,6 +4,7 @@ ;;; Copyright © 2016-2024 Nicolas Goaziou ;;; Copyright © 2018 Tobias Geerinckx-Rice ;;; Copyright © 2020 Maxim Cournoyer +;;; Copyright © 2022 Antero Mejr ;;; Copyright © 2023 gemmaro ;;; ;;; This file is part of GNU Guix. @@ -24,6 +25,7 @@ (define-module (gnu packages plotutils) #:use-module ((guix licenses) #:prefix license:) #:use-module ((guix utils) #:select (target-x86-32?)) + #:use-module (guix build-system cmake) #:use-module (guix build-system gnu) #:use-module (guix build-system ruby) #:use-module (guix download) @@ -59,6 +61,7 @@ #:use-module (gnu packages tex) #:use-module (gnu packages texinfo) #:use-module (gnu packages web) + #:use-module (gnu packages wxwidgets) #:use-module (gnu packages xorg)) (define-public asymptote @@ -418,6 +421,54 @@ for 2D vector graphics animations. The package also contains command-line programs for plotting scientific data.") (license license:gpl2+))) +(define-public plplot + (package + (name "plplot") + (version "5.15.0") + (source (origin + (method url-fetch) + (uri (string-append "mirror://sourceforge/plplot/plplot/" + version "%20Source/plplot-" version + ".tar.gz")) + (sha256 + (base32 + "0ywccb6bs1389zjfmc9zwdvdsvlpm7vg957whh6b5a96yvcf8bdr")) + (modules '((guix build utils))) + (snippet #~(begin (delete-file-recursively "www") + (substitute* "CMakeLists.txt" + (("add_subdirectory\\(www\\)") "")))))) + (build-system cmake-build-system) + (arguments + (list + #:configure-flags + #~(list (string-append "-DLIB_DIR=" #$output "/lib") + "-DBUILD_TEST=TRUE" + "-DENABLE_wxwidgets=TRUE"))) + (native-inputs (list pkg-config)) + (inputs (list wxwidgets)) + (home-page "http://plplot.org/") ;no HTTPS + (synopsis "Scientific plotting library with Unicode support") + (description + "PLplot is a software package for creating scientific plots. +The PLplot core library can be used to create: + +@itemize +@item standard x-y plots +@item semi-log plots +@item log-log plots +@item contour plots +@item 3D surface plots +@item mesh plots +@item bar charts +@item pie charts +@end itemize") + (license (list license:lgpl2.0 + license:gpl2+ ;octave bindings + license:bsd-2 ;docbook docs + license:ogl-psi1.0 ;files in data/ss + license:cc-by-sa3.0 ;examples/Chloe.pgm + license:expat)))) ;Cmake files + (define-public ruby-unicode-plot (package (name "ruby-unicode-plot") -- cgit v1.2.3