mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-22 23:07:10 -08:00
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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user