From c2832cbcfbcefc77050a6f3ffeaa40e64f632f5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ulrich=20M=C3=BCller?= Date: Sun, 24 Jan 2021 18:28:18 +0100 Subject: [PATCH] dev-perl/Alien-Gnuplot: Fix gnuplot version detection MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes: https://bugs.gentoo.org/709670 Acked-by: Andreas K. Hüttel Package-Manager: Portage-3.0.14, Repoman-3.0.2 Signed-off-by: Ulrich Müller --- dev-perl/Alien-Gnuplot/Alien-Gnuplot-1.33.0.ebuild | 4 +++- .../files/Alien-Gnuplot-1.33.0-version.patch | 13 +++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 dev-perl/Alien-Gnuplot/files/Alien-Gnuplot-1.33.0-version.patch diff --git a/dev-perl/Alien-Gnuplot/Alien-Gnuplot-1.33.0.ebuild b/dev-perl/Alien-Gnuplot/Alien-Gnuplot-1.33.0.ebuild index 51d0baff15c29..0da98dc77595b 100644 --- a/dev-perl/Alien-Gnuplot/Alien-Gnuplot-1.33.0.ebuild +++ b/dev-perl/Alien-Gnuplot/Alien-Gnuplot-1.33.0.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2017 Gentoo Foundation +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=6 @@ -23,3 +23,5 @@ RDEPEND=" DEPEND="${RDEPEND} virtual/perl-ExtUtils-MakeMaker " + +PATCHES=( "${FILESDIR}/${P}-version.patch" ) diff --git a/dev-perl/Alien-Gnuplot/files/Alien-Gnuplot-1.33.0-version.patch b/dev-perl/Alien-Gnuplot/files/Alien-Gnuplot-1.33.0-version.patch new file mode 100644 index 0000000000000..415db6890dd14 --- /dev/null +++ b/dev-perl/Alien-Gnuplot/files/Alien-Gnuplot-1.33.0-version.patch @@ -0,0 +1,13 @@ +https://bugs.gentoo.org/709670 + +--- a/lib/Alien/Gnuplot.pm ++++ b/lib/Alien/Gnuplot.pm +@@ -289,7 +289,7 @@ + your GNUPLOT_BINARY variable to an actual gnuplot. + }; + +- $lines =~ m/Version (\d+\.\d+) (patchlevel (\d+))?/ or die qq{ ++ $lines =~ m/Version (\d+\.\d+(?:\.\d+)?) (patchlevel (\d+))?/ or die qq{ + Alien::Gnuplot: the executable file $exec_path claims to be gnuplot, but + I could not parse a version number from its output. Sorry, I give up. +