summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas K. Huettel <dilfridge@gentoo.org>2017-06-27 21:20:35 +0200
committerAndreas K. Huettel <dilfridge@gentoo.org>2017-06-27 21:20:58 +0200
commit11c654c81c21d89f741b2218932237e9f5267df6 (patch)
tree3080c3eb754ab61e83176ad74809f806a2ec2152 /dev-perl/PDL-Graphics-Gnuplot
parentsys-devel/clang-runtime: Bump to 4.0.1 (diff)
downloadgentoo-11c654c81c21d89f741b2218932237e9f5267df6.tar.gz
gentoo-11c654c81c21d89f741b2218932237e9f5267df6.tar.bz2
gentoo-11c654c81c21d89f741b2218932237e9f5267df6.zip
dev-perl/PDL-Graphics-Gnuplot: Add bugfix patch to escape output file name
See also https://github.com/drzowie/PDL-Graphics-Gnuplot/issues/65 See also https://github.com/lab-measurement/lab-measurement/issues/10 Package-Manager: Portage-2.3.6, Repoman-2.3.2
Diffstat (limited to 'dev-perl/PDL-Graphics-Gnuplot')
-rw-r--r--dev-perl/PDL-Graphics-Gnuplot/PDL-Graphics-Gnuplot-2.11.0-r1.ebuild35
-rw-r--r--dev-perl/PDL-Graphics-Gnuplot/files/PDL-Graphics-Gnuplot-2.11.0-outputfile.patch23
2 files changed, 58 insertions, 0 deletions
diff --git a/dev-perl/PDL-Graphics-Gnuplot/PDL-Graphics-Gnuplot-2.11.0-r1.ebuild b/dev-perl/PDL-Graphics-Gnuplot/PDL-Graphics-Gnuplot-2.11.0-r1.ebuild
new file mode 100644
index 000000000000..bc50a70b8398
--- /dev/null
+++ b/dev-perl/PDL-Graphics-Gnuplot/PDL-Graphics-Gnuplot-2.11.0-r1.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DIST_VERSION=2.011
+DIST_AUTHOR=ZOWIE
+inherit perl-module
+
+DESCRIPTION="Gnuplot-based plotting for PDL"
+
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+
+PATCHES=(
+ "${FILESDIR}/${P}-outputfile.patch"
+)
+
+RDEPEND="
+ dev-perl/Alien-Gnuplot
+ virtual/perl-IO
+ dev-perl/IPC-Run
+ virtual/perl-Scalar-List-Utils
+ dev-perl/PDL
+ dev-perl/PDL-Transform-Color
+ dev-perl/Safe-Isa
+ virtual/perl-Storable
+ virtual/perl-Time-HiRes
+ || ( sci-visualization/gnuplot[X] sci-visualization/gnuplot[qt4] )
+"
+DEPEND="${RDEPEND}
+ >=virtual/perl-ExtUtils-MakeMaker-6.480.0
+ test? ( virtual/perl-Test-Simple )
+"
diff --git a/dev-perl/PDL-Graphics-Gnuplot/files/PDL-Graphics-Gnuplot-2.11.0-outputfile.patch b/dev-perl/PDL-Graphics-Gnuplot/files/PDL-Graphics-Gnuplot-2.11.0-outputfile.patch
new file mode 100644
index 000000000000..7d33370584ae
--- /dev/null
+++ b/dev-perl/PDL-Graphics-Gnuplot/files/PDL-Graphics-Gnuplot-2.11.0-outputfile.patch
@@ -0,0 +1,23 @@
+From b12c3f5de6340b997e5a2992710828f3e89308a0 Mon Sep 17 00:00:00 2001
+From: Simon Reinhardt <simon.reinhardt@stud.uni-regensburg.de>
+Date: Mon, 26 Jun 2017 14:57:32 +0200
+Subject: [PATCH] Fix #65: No quoting for output filenames.
+
+Insert missing call to quote_escape (escape backslashes and such for gnuplot
+double-quote strings).
+---
+ lib/PDL/Graphics/Gnuplot.pm | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/lib/PDL/Graphics/Gnuplot.pm b/lib/PDL/Graphics/Gnuplot.pm
+index 0edf7ef..ff96cc9 100644
+--- a/lib/PDL/Graphics/Gnuplot.pm
++++ b/lib/PDL/Graphics/Gnuplot.pm
+@@ -5188,6 +5188,7 @@ our $pOptionsTable =
+ if($vv ne $v) {
+ carp "INFO: Plotting to '$vv'\n";
+ }
++ $vv = quote_escape($vv);
+ return "set $k \"$vv\"\n";
+ },
+ undef,3,