[PATCH] Add new plplot

OpenSubmitted by Sharlatan Hellseher.
Details
One participant
  • Sharlatan Hellseher
Owner
unassigned
Severity
normal
S
S
Sharlatan Hellseher wrote on 28 Jan 21:44 +0100
(address . guix-patches@gnu.org)
CAO+9K5rr86Mc-WVbbLZkNwiK-YNG_TyWb-C9HW3d6DDWgGC8vA@mail.gmail.com
Hi Guix team! Here is a draft of PLplot package which I made by checking how Debian's one is distributed. I need some competent review of someone who has more experience in CMake. On the way on packing astronomy software :) Regards -- … наш разум - превосходная объяснительная машина которая способна найти смысл почти в чем угодно, истолковать любой феномен, но совершенно не в состоянии принять мысль о непредсказуемости.
From f51a42cecff89d8fc4b892d07d377959122d8f5c Mon Sep 17 00:00:00 2001From: Sharlatan Hellseher <sharlatanus@gmail.com>Date: Thu, 28 Jan 2021 20:37:49 +0000Subject: [PATCH] gnu: Add plplot
* gnu/packages/maths.scm (plplot): New variable--- gnu/packages/maths.scm | 93 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 93 insertions(+)
Toggle diff (135 lines)diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scmindex eff1480e62..97027c8039 100644--- a/gnu/packages/maths.scm+++ b/gnu/packages/maths.scm@@ -42,6 +42,7 @@ ;;; Copyright © 2020 Vinicius Monego <monego@posteo.net> ;;; Copyright © 2020 Simon Tournier <zimon.toutoune@gmail.com> ;;; Copyright © 2020 Martin Becze <mjbecze@riseup.net>+;;; Copyright © 2021 Sharlatan Hellseher <sharlatanusGmail.com> ;;; ;;; This file is part of GNU Guix. ;;;@@ -91,6 +92,7 @@ #:use-module (gnu packages flex) #:use-module (gnu packages fltk) #:use-module (gnu packages fontutils)+ #:use-module (gnu packages geo) #:use-module (gnu packages gettext) #:use-module (gnu packages gcc) #:use-module (gnu packages gd)@@ -117,7 +119,9 @@ #:use-module (gnu packages multiprecision) #:use-module (gnu packages netpbm) #:use-module (gnu packages onc-rpc)+ #:use-module (gnu packages ocaml) #:use-module (gnu packages pcre)+ #:use-module (gnu packages pdf) #:use-module (gnu packages popt) #:use-module (gnu packages perl) #:use-module (gnu packages pkg-config)@@ -131,6 +135,7 @@ #:use-module (gnu packages tbb) #:use-module (gnu packages scheme) #:use-module (gnu packages shells)+ #:use-module (gnu packages swig) #:use-module (gnu packages tcl) #:use-module (gnu packages texinfo) #:use-module (gnu packages tex)@@ -5870,6 +5875,94 @@ termination analysis via the automatic synthesis of linear ranking functions.") (license license:gpl3+))) +(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+ `(#:tests? #f+ #:configure-flags+ (let ((out (assoc-ref %outputs "out")))+ (list+ "-DBUILD_DOC=ON"+ "-DBUILD_TEST=ON"+ "-DCMAKE_BUILD_TYPE=Release"+ "-DCMAKE_RULE_MESSAGES=OFF"+ "-DENABLE_ada=ON"+ "-DENABLE_cxx=ON"+ "-DENABLE_d=ON"+ "-DENABLE_fortran=ON"+ "-DENABLE_lua=ON"+ "-DENABLE_ocaml=ON"+ "-DENABLE_octave=ON"+ "-DENABLE_python=ON"+ "-DENABLE_tcl=ON"+ "-DENABLE_tkX=ON"+ "-DNON_TRANSITIVE=ON"+ "-DPLD_cgm=ON"+ "-DPLD_ps=ON"+ "-DPLD_psttf=OFF"+ "-DPLD_svg=ON"+ "-DPLD_tk=ON"+ "-DUSE_RPATH=OFF"+ (string-append "-DCMAKE_INSTALL_LIBDIR=" out "/lib")+ (string-append "-DCMAKE_INSTALL_PREFIX=" out)))+ ;; NOTE: (Sharlatan-20210128T120312+0000): failing on example_cxx, I+ ;; leave it for someone who has more knowledge in CMake. Tests are+ ;; disalbed for now.+ ;; #:phases+ ;; (modify-phases %standard-phases+ ;; (replace 'check+ ;; (lambda _+ ;; (invoke "ctest"))))+ ))+ (native-inputs+ `(("pkg-config" ,pkg-config)+ ("swig" ,swig)))+ ;; NOTE: (Sharlatan-20210128T201941+0000): It needs to be reviewed properly, if+ ;; octave is included it takes incredibly long time to build `plplot'+ (inputs+ `(("cairo" ,cairo)+ ("freetype" ,freetype)+ ("gd" ,gd)+ ("gfortran" ,gfortran)+ ("libharu" ,libharu)+ ("lua" ,lua)+ ("ocaml" ,ocaml)+ ("pango" ,pango)+ ("python" ,python)+ ("qhull" ,qhull)+ ("shapelib" ,shapelib)+ ("tcllib" ,tcllib)+ ("tk" ,tk)+ ("wxwidgets" ,wxwidgets)))+ (home-page "http://plplot.org/")+ (synopsis "Ultimate plotting")+ (description+ "PLplot is a cross-platform software package for creating scientific plots+whose (UTF-8) plot symbols and text are limited in practice only by what+Unicode-aware system fonts are installed on a user's computer. The PLplot+software has a clean architecture that is organized as a core C library,+separate language bindings for that library, and separate device drivers that+are dynamically loaded by the core library which control how the plots are+presented in noninteractive and interactive plotting contexts.++Output file formats: CGM GIF JPEG PBM PDF PNG PostScript SVG Xfig+Interactive platforms: GDI GTK+PyQt Qt Tcl/Tk wxWidgets X+Language Bindings: Ada C++ D Fortran Lua OCaml Octave Perl/PDL Python Tcl/Tk")+ (license license:lgpl2.0))) ; Other terms are in Copyright file+ (define-public speedcrunch (package (name "speedcrunch")-- 2.30.0
S
S
Sharlatan Hellseher wrote on 4 Feb 21:40 +0100
[PATCH] Round 2
(address . 46160@debbugs.gnu.org)
CAO+9K5rEqfRAUKNu8RGo9P0H8hpFwreaKP-f0DcWg+GyJb8OAg@mail.gmail.com
Hi Guix team! I've cleaned up the patch a little bit and removed most of the CMake flags as they are picked up when I add most of the dependencies in `inputs' -- … наш разум - превосходная объяснительная машина которая способна найти смысл почти в чем угодно, истолковать любой феномен, но совершенно не в состоянии принять мысль о непредсказуемости.
From d4edcdcd71cc2c47caf2511abeb1bf153434d25c Mon Sep 17 00:00:00 2001From: Sharlatan Hellseher <sharlatanus@gmail.com>Date: Thu, 4 Feb 2021 20:36:32 +0000Subject: [PATCH] gnu: Add plplot
* gnu/packages/maths.scm (plplot): New variable--- gnu/packages/maths.scm | 60 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+)
Toggle diff (87 lines)diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scmindex eff1480e62..cfc57734da 100644--- a/gnu/packages/maths.scm+++ b/gnu/packages/maths.scm@@ -107,6 +107,7 @@ #: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)@@ -131,6 +132,7 @@ #:use-module (gnu packages tbb) #:use-module (gnu packages scheme) #:use-module (gnu packages shells)+ #:use-module (gnu packages swig) #:use-module (gnu packages tcl) #:use-module (gnu packages texinfo) #:use-module (gnu packages tex)@@ -954,6 +956,64 @@ plotting engine by third-party applications like Octave.") (license (license:fsf-free "http://gnuplot.cvs.sourceforge.net/gnuplot/gnuplot/Copyright")))) +(define-public plplot+ ;; TODO: (Sharlatan-20210204T203350+0000): It needs to be split int some other+ ;; logical package like plplot-gtk plplot-qt plplot-minimal etc. For now I try+ ;; to include as much bindings as I could achieve.+ (package+ (name "plplot")+ (version "5.15.0")+ (source+ (origin+ (method git-fetch)+ (uri (git-reference+ ;; Official mirror in case Sourseforge blocks access+ ;; (url "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+ ;; NOTE: (Sharlatan-20210204T120351+0000): Tests failing on examples_cxx+ `(#:tests? #f+ #:configure-flags+ (let ((out (assoc-ref %outputs "out")))+ (list+ ;; "-DBUILD_TEST=ON"+ "-DENABLE_wxwidgets=ON"+ "-DCMAKE_BUILD_TYPE=Release"+ "-DCMAKE_SKIP_BUILD_RPATH=OFF"+ (string-append "-DCMAKE_INSTALL_LIBDIR=" out "/lib")+ (string-append "-DCMAKE_INSTALL_PREFIX=" out)))))+ (native-inputs+ `(("pkg-config" ,pkg-config)+ ("swig" ,swig)))+ (inputs+ `(("freetype", freetype)+ ("gfortran" ,gfortran)+ ("libltdl" ,libltdl)+ ("lua", lua)+ ("numpy", python-numpy)+ ("octave", octave)+ ("pango" ,pango)+ ("perl", perl)+ ("python", python)+ ("qhull" ,qhull)+ ("shapelib" ,shapelib)+ ("tcl", tcl)+ ("tk", tk)+ ("wxwidgets" ,wxwidgets)+ ("xml-dom" ,perl-xml-dom)+ ("xml-dom" ,perl-xml-parser)))+ (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.30.0
?
Your comment

Commenting via the web interface is currently disabled.

To comment on this conversation send email to 46160@debbugs.gnu.org