dev-perl/Alien-Gnuplot: Fix gnuplot version detection

Closes: https://bugs.gentoo.org/709670
Acked-by: Andreas K. Hüttel <dilfridge@gentoo.org>
Package-Manager: Portage-3.0.14, Repoman-3.0.2
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
This commit is contained in:
Ulrich Müller
2021-01-24 18:28:53 +01:00
parent 15cfbdc1ba
commit c2832cbcfb
2 changed files with 16 additions and 1 deletions
@@ -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" )
@@ -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.