git: bd4543b578ce - main - lang/p5-ExtUtils-F77: make test pass

From: Wen Heping <wen_at_FreeBSD.org>
Date: Tue, 03 May 2022 14:25:02 UTC
The branch main has been updated by wen:

URL: https://cgit.FreeBSD.org/ports/commit/?id=bd4543b578ceb4c8ce7c42d6d8cb6a792c4818f7

commit bd4543b578ceb4c8ce7c42d6d8cb6a792c4818f7
Author:     Wen Heping <wen@FreeBSD.org>
AuthorDate: 2022-05-03 14:23:26 +0000
Commit:     Wen Heping <wen@FreeBSD.org>
CommitDate: 2022-05-03 14:23:26 +0000

    lang/p5-ExtUtils-F77: make test pass
---
 lang/p5-ExtUtils-F77/Makefile           |  3 ++-
 lang/p5-ExtUtils-F77/files/patch-F77.pm | 11 +++++++++++
 2 files changed, 13 insertions(+), 1 deletion(-)

diff --git a/lang/p5-ExtUtils-F77/Makefile b/lang/p5-ExtUtils-F77/Makefile
index d2449e8ba6b6..407fd1d9aa8d 100644
--- a/lang/p5-ExtUtils-F77/Makefile
+++ b/lang/p5-ExtUtils-F77/Makefile
@@ -2,6 +2,7 @@
 
 PORTNAME=	ExtUtils-F77
 PORTVERSION=	1.26
+PORTREVISION=	1
 CATEGORIES=	lang perl5
 MASTER_SITES=	CPAN
 PKGNAMEPREFIX=	p5-
@@ -21,6 +22,6 @@ USE_PERL5=	configure
 NO_ARCH=	yes
 
 post-patch:
-	@${REINPLACE_CMD} -e "s|'gfortran48'|'${FC}'|; s|'-O2'|'${CFLAGS}'|" ${WRKSRC}/F77.pm
+	@${REINPLACE_CMD} -e "s|'FB_GFORTRAN'|'${FC}'|; s|'-O2'|'${CFLAGS}'|" ${WRKSRC}/F77.pm
 
 .include <bsd.port.mk>
diff --git a/lang/p5-ExtUtils-F77/files/patch-F77.pm b/lang/p5-ExtUtils-F77/files/patch-F77.pm
new file mode 100644
index 000000000000..82546a373c91
--- /dev/null
+++ b/lang/p5-ExtUtils-F77/files/patch-F77.pm
@@ -0,0 +1,11 @@
+--- F77.pm.orig	2022-05-03 14:16:56 UTC
++++ F77.pm
+@@ -335,7 +335,7 @@ $F77config{Aix}{DEFAULT}     = 'F77';
+ ### FreeBSD ###
+ 
+ if($^O =~ /Freebsd/i) {
+-  $gfortran = 'gfortran';
++  $gfortran = 'FB_GFORTRAN';
+   $fallback_compiler = 'G77';
+ }
+