guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

02/04: gnu: Add plplot.


From: guix-commits
Subject: 02/04: gnu: Add plplot.
Date: Sat, 13 Apr 2024 18:08:44 -0400 (EDT)

sharlatan pushed a commit to branch master
in repository guix.

commit 2006874c2bc396e3385897c73018b70b6f6e7cf4
Author: Antero Mejr <antero@mailbox.org>
AuthorDate: Thu Aug 25 15:48:03 2022 -0400

    gnu: Add plplot.
    
    * gnu/packages/graph.scm (plplot): New variable.
    
    Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
---
 gnu/packages/plotutils.scm | 51 ++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 51 insertions(+)

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 <mail@nicolasgoaziou.fr>
 ;;; Copyright © 2018 Tobias Geerinckx-Rice <me@tobias.gr>
 ;;; Copyright © 2020 Maxim Cournoyer <maxim.cournoyer@gmail.com>
+;;; Copyright © 2022 Antero Mejr <antero@mailbox.org>
 ;;; Copyright © 2023 gemmaro <gemmaro.dev@gmail.com>
 ;;;
 ;;; 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")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]