On Thu, Aug 18, 2016 at 04:45:08PM +0200, David Coppa wrote:
> The reason is we'd like to remove lang/gfortran from the ports tree.
>
> Revised diff:
OK
> Index: Makefile
> ===================================================================
> RCS file: /cvs/ports/math/R/Makefile,v
> retrieving revision 1.84
> diff -u -p -r1.84 Makefile
> --- Makefile 21 Jun 2016 18:21:52 -0000 1.84
> +++ Makefile 18 Aug 2016 14:44:26 -0000
> @@ -2,6 +2,7 @@
>
> COMMENT= powerful math/statistics/graphics language
> DISTNAME= R-3.3.1
> +REVISION= 0
>
> SO_VERSION= 32.0
> .for _lib in R Rblas Rlapack
> @@ -66,6 +67,7 @@ RUN_DEPENDS= archivers/gtar \
> archivers/zip \
> devel/gmake \
> devel/xdg-utils \
> + lang/gcc/4.9,-f95 \
> print/texlive/base>=2014p1
>
> CONFIGURE_STYLE=gnu
> @@ -78,7 +80,9 @@ CONFIGURE_ARGS= --disable-java \
> --with-tcl-config=${MODTCL_CONFIG} \
> --with-tk-config=${MODTK_CONFIG}
>
> -CONFIGURE_ENV= FFLAGS="${FFLAGS}" \
> +CONFIGURE_ENV= F77="${LOCALBASE}/bin/egfortran" \
> + FC="${LOCALBASE}/bin/egfortran" \
> + FFLAGS="${FFLAGS}" \
> CPPFLAGS="-I${LOCALBASE}/include" \
> LDFLAGS="-L${LOCALBASE}/lib -Wl,-R${LOCALBASE}/lib/R/lib" \
> LIBnn=lib \
> Index: pkg/README
> ===================================================================
> RCS file: /cvs/ports/math/R/pkg/README,v
> retrieving revision 1.4
> diff -u -p -r1.4 README
> --- pkg/README 14 Dec 2015 16:49:02 -0000 1.4
> +++ pkg/README 18 Aug 2016 14:44:26 -0000
> @@ -22,8 +22,7 @@ Customizing package compilation
> Make variables to be used by R packages compiling code at installation time
> can be customized via ~/.R/Makevars
>
> (https://cran.r-project.org/doc/manuals/r-release/R-admin.html#Customizing-package-compilation).
> -E.g., for using recent compilers (packages g++, g95, and gcc) add
> +E.g., for using recent compilers (packages g++ and gcc) add
>
> CC=egcc -std=gnu99
> CXX=eg++
> -F77=egfortran