From: Sharlatan Hellseher <sharlatanus@gmail.com>
To: 46160@debbugs.gnu.org
Subject: [bug#46160] [PATCH] Round 2
Date: Thu, 4 Feb 2021 20:40:51 +0000 [thread overview]
Message-ID: <CAO+9K5rEqfRAUKNu8RGo9P0H8hpFwreaKP-f0DcWg+GyJb8OAg@mail.gmail.com> (raw)
In-Reply-To: <CAO+9K5rr86Mc-WVbbLZkNwiK-YNG_TyWb-C9HW3d6DDWgGC8vA@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 523 bytes --]
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'
--
… наш разум - превосходная объяснительная машина которая способна
найти смысл почти в чем угодно, истолковать любой феномен, но
совершенно не в состоянии принять мысль о непредсказуемости.
[-- Attachment #2: 0001-gnu-Add-plplot.patch --]
[-- Type: text/x-patch, Size: 3445 bytes --]
From d4edcdcd71cc2c47caf2511abeb1bf153434d25c Mon Sep 17 00:00:00 2001
From: Sharlatan Hellseher <sharlatanus@gmail.com>
Date: Thu, 4 Feb 2021 20:36:32 +0000
Subject: [PATCH] gnu: Add plplot
* gnu/packages/maths.scm (plplot): New variable
---
gnu/packages/maths.scm | 60 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 60 insertions(+)
diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
index 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
next prev parent reply other threads:[~2021-02-04 20:42 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-28 20:44 [bug#46160] [PATCH] Add new plplot Sharlatan Hellseher
2021-02-04 20:40 ` Sharlatan Hellseher [this message]
2022-05-13 15:30 ` [bug#46160] [PATCH v3] gnu: Add plplot Sharlatan Hellseher
2022-05-22 3:24 ` [bug#46160] [PATCH] Add new plplot Maxim Cournoyer
2022-05-22 3:42 ` Maxim Cournoyer
2022-05-22 19:27 ` Sharlatan Hellseher
2024-04-13 22:17 ` bug#46160: " Sharlatan Hellseher
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAO+9K5rEqfRAUKNu8RGo9P0H8hpFwreaKP-f0DcWg+GyJb8OAg@mail.gmail.com \
--to=sharlatanus@gmail.com \
--cc=46160@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).