From f190a7f646d8f1d7d212663a629adeb33414eb6a Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 13 May 2022 16:13:57 +0100 Subject: [PATCH] gnu: Add plplot * gnu/packages/maths.scm (plplot): New variable. --- gnu/packages/maths.scm | 55 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 98e239d5bd..641b80f572 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -50,6 +50,7 @@ ;;; Copyright © 2021 Jean-Baptiste Volatier ;;; Copyright © 2021 Guillaume Le Vaillant ;;; Copyright © 2021 Pierre-Antoine Bouttier +;;; Copyright © 2022 Sharlatan Hellseher ;;; ;;; This file is part of GNU Guix. ;;; @@ -123,6 +124,7 @@ (define-module (gnu packages maths) #:use-module (gnu packages llvm) #:use-module (gnu packages logging) #:use-module (gnu packages lua) + #:use-module (gnu packages geo) #:use-module (gnu packages gnome) #:use-module (gnu packages guile) #:use-module (gnu packages xorg) @@ -152,6 +154,7 @@ (define-module (gnu packages maths) #:use-module (gnu packages serialization) #:use-module (gnu packages shells) #:use-module (gnu packages sphinx) + #:use-module (gnu packages swig) #:use-module (gnu packages tcl) #:use-module (gnu packages texinfo) #:use-module (gnu packages tex) @@ -1123,6 +1126,58 @@ (define-public gnuplot (license (license:fsf-free "http://gnuplot.cvs.sourceforge.net/gnuplot/gnuplot/Copyright")))) +(define-public plplot + (package + (name "plplot") + (version "5.15.0") + (source + (origin + (method git-fetch) + (uri (git-reference + ;; Mirror: https://github.com/PLplot/PLplot + (url "https://git.code.sf.net/p/plplot/plplot") + (commit (string-append name "-" version)))) + (sha256 + (base32 + "0fn9j251zv9pwlqy30yv4flwcd0cbyxd1nn388n1k158jycw2i91")) + (file-name (git-file-name name version)))) + (build-system cmake-build-system) + (arguments + (list + #:configure-flags + #~(list + "-DBUILD_TEST=ON" + (string-append "-DCMAKE_INSTALL_LIBDIR=" #$output "/lib") + (string-append "-DCMAKE_INSTALL_PREFIX=" #$output)))) + (native-inputs + (list perl + python-wrapper + pkg-config + swig)) + (inputs + (list freetype + camlidl + gfortran + libltdl + lua + ocaml + octave + pango + perl-xml-dom + perl-xml-parser + python-numpy + qhull + shapelib + tcl + tk + wxwidgets)) + (home-page "http://plplot.org/") + (synopsis "Scientific graphics plotting library") + (description + "PLplot is a cross-platform software package for creating scientific plots +whose (UTF-8) plot symbols and text.") + (license license:lgpl2.0))) ; Other terms are in Copyright file + (define-public gctp (package (name "gctp") -- 2.35.1