Since there's no conflict with versions in base, it seems helpful to
install a symlink so that you can just run 'gfortran' rather than
needing 'egfortran'. More useful for people compiling things themselves
rather than for use in ports. (Amongst others, this helps if building
Python software in a venv, e.g. using pip/pipx/etc, when it has Fortran
code to compile).

ok?

Index: Makefile
===================================================================
RCS file: /cvs/ports/lang/gcc/15/Makefile,v
diff -u -p -r1.18 Makefile
--- Makefile    12 Dec 2025 18:21:00 -0000      1.18
+++ Makefile    9 Jan 2026 15:26:26 -0000
@@ -21,6 +21,7 @@ FULL_PKGVERSION = $V
 GCC_PKGSPEC = >=15,<16
 
 REVISION = 5
+REVISION-f95 = 6
 
 # aarch64 bootstrap contains only gdc
 ADASTRAP-aarch64 = adastrap-aarch64-11.2.0-0.tar.xz
@@ -286,6 +287,9 @@ post-install:
 .if ${BUILD_PACKAGES:M-ada}
        chown -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/lib/gcc/*/$V/adainclude
        chown -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/lib/gcc/*/$V/adalib
+.endif
+.if ${BUILD_PACKAGES:M-f95}
+       ln -s egfortran ${PREFIX}/bin/gfortran
 .endif
        chown -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/lib/gcc/*/$V/include
        chown -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/lib/gcc/*/$V/include-fixed
Index: pkg/PLIST-f95
===================================================================
RCS file: /cvs/ports/lang/gcc/15/pkg/PLIST-f95,v
diff -u -p -r1.2 PLIST-f95
--- pkg/PLIST-f95       12 Dec 2025 18:19:46 -0000      1.2
+++ pkg/PLIST-f95       9 Jan 2026 15:26:26 -0000
@@ -4,6 +4,7 @@
 @pkgpath lang/gcc/4.9,-f95
 @pkgpath lang/gcc/8,-f95
 @bin bin/egfortran
+bin/gfortran
 @bin bin/${CONFIG}-egfortran
 @info info/gfortran.info
 lib/gcc/${CONFIG}/${V}/finclude/

Reply via email to