Subject: [bug#31340] [PATCH] gnu: gnuplot: Update to 2.2.2

From: Adam Massmann <[email-masked]>
Date: Tue, 01 May 2018 23:53:49 -0400

Apologies,

A typo in the commit of the previous patch propagated into the
email. This is an update to the stable branch *5.2.2*, not
2.2.2. Sorry for the confusion. A corrected patch with the correct
commit message is below.

Best,
Adam

>From ee1052631f2cdde60a2abc005c3de39b1f826cf3 Mon Sep 17 00:00:00 2001
From: Adam Massmann <[email-masked]>
Date: Tue, 1 May 2018 23:49:40 -0400
Subject: [PATCH] gnu: gnuplot: Update to 5.2.2

---
 gnu/packages/maths.scm | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
index 00f35659e..d80dd2fd7 100644
--- a/gnu/packages/maths.scm
+++ b/gnu/packages/maths.scm
@@ -25,6 +25,7 @@
 ;;; Copyright © 2018 Jan Nieuwenhuizen <[email-masked]>
 ;;; Copyright © 2018 Joshua Sierles, Nextjournal <[email-masked]>
 ;;; Copyright © 2018 Nadya Voronova <[email-masked]>
+;;; Copyright © 2018 Adam Massmann <[email-masked]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -562,7 +563,7 @@ singular value problems.")
 (define-public gnuplot
   (package
     (name "gnuplot")
-    (version "5.0.6")
+    (version "5.2.2")
     (source (origin
               (method url-fetch)
               (uri (string-append "mirror://sourceforge/gnuplot/gnuplot/"
@@ -570,7 +571,7 @@ singular value problems.")
                                   version ".tar.gz"))
        (sha256
         (base32
-         "0q5lr6nala3ln6f3yp6g17ziymb9r9gx9zylnw1y3hjmwl9lggjv"))))
+         "18diyy7aib9mn098x07g25c7jij1x7wbfpicz0z8gwxx08px45m4"))))
     (build-system gnu-build-system)
     (inputs `(("readline" ,readline)
               ("cairo" ,cairo)
@@ -580,6 +581,9 @@ singular value problems.")
     (native-inputs
      `(("pkg-config" ,pkg-config)
        ("texlive" ,texlive-tiny)))
+    (arguments `(#:configure-flags (list (string-append
+                                          "--with-texdir=" %output
+                                          "/texmf-local/tex/latex/gnuplot"))))
     (home-page "http://www.gnuplot.info")
     (synopsis "Command-line driven graphing utility")
     (description "Gnuplot is a portable command-line driven graphing
-- 
2.11.0