Responding to my own message.
> I'm updating the port for Octave, and trying to adapt to the MODGCC
> fortran for building. It does not seem to recognize g95 version 4.2:
>
> # make package
> ===> Checking files for octave-3.2.4
> `/usr/ports/distfiles/octave-3.2.4.tar.gz' is up to date.
> `/usr/ports/distfiles/UFconfig-3.4.0.tar.gz' is up to date.
>>> (SHA256) octave-3.2.4.tar.gz: OK
>>> (SHA256) UFconfig-3.4.0.tar.gz: OK
> ===> octave-3.2.4 depends on: g95->=4.2,<4.3 - not found
> ===> Verifying install for g95->=4.2,<4.3 in lang/gcc/4.2
> ===> Returning to build of octave-3.2.4
> ===> octave-3.2.4 depends on: g95->=4.2,<4.3 - not found
> ===> Verifying install for g95->=4.2,<4.3 in lang/gcc/4.2
> ===> Returning to build of octave-3.2.4
> Dependency check failed
> *** Error code 1
It seems the last patch to gcc4.port.mk included cxx but did not include
fortran.
This patch updates the fortran lib depends test for the new version
numbering. Curious that g95- >= 4.2 fails but g95- >= 4.2v0 succeeds. I
don't get that from packages-spec(7).
--John
Index: gcc4.port.mk
===================================================================
RCS file: /cvs/ports/lang/gcc/4.2/gcc4.port.mk,v
retrieving revision 1.6
diff -N -u gcc4.port.mk
--- gcc4.port.mk 18 Nov 2009 00:49:09 -0000 1.6
+++ gcc4.port.mk 28 Feb 2010 00:40:06 -0000
@@ -31,7 +31,7 @@
. endif
. if !empty(_MODGCC4FORTRAN:L:M${_j})
BUILD_DEPENDS+= ::lang/gcc/4.2,-f95
-LIB_DEPENDS+= gfortran.>=2:g95->=4.2,<4.3:lang/gcc/4.2,-f95
+LIB_DEPENDS+=
gfortran.>=2:g95->=4.2,<4.3|g95->=4.2v0,<4.3v0:lang/gcc/4.2,-f95
MODGCC4_post-patch+= ln -s ${LOCALBASE}/bin/eg${_MODGCC4FORTRAN}
${WRKDIR}/bin/g${_MODGCC4FORTRAN};
. endif
. if !empty(_MODGCC4JAVA:L:M${_j})