Date: Mon, 23 Nov 2015 18:03:23 -0500 From: Diane Bruce <db@db.net> To: Gerald Pfeifer <gerald@pfeifer.com> Cc: Diane Bruce <db@db.net>, Lev Serebryakov <lev@FreeBSD.org>, Mathieu Arnold <mat@FreeBSD.org>, freebsd-ports@FreeBSD.org Subject: Re: gfortran (was: Any chances to reduce number of gcc ports/packages which are installed as BINARY PACKAGES dependencies?) Message-ID: <20151123230323.GA74805@night.db.net> In-Reply-To: <alpine.LSU.2.20.1511220145080.4990@anthias> References: <466003436.20140717005829@serebryakov.spb.ru> <alpine.LSU.2.11.1407212305390.6423@tuna.site> <20140722211828.GA98309@night.db.net> <alpine.LSU.2.20.1511220145080.4990@anthias>
next in thread | previous in thread | raw e-mail | index | archive | help
It looks good to me. On Mon, Nov 23, 2015 at 01:16:38AM +0100, Gerald Pfeifer wrote: > On Tue, 22 Jul 2014, Diane Bruce wrote: > > Any chance we could have a script "gfortran" which by default > > ran the default gcc from bsd.default-versions.mk and make.conf ? > > I know this took a little, ahem, but what do you think about > the patch below? > > With this change, lang/gcc, our canonical GCC port, now features > gfortran as well as gcc and g++ without the appended major version > number. > > (Not committed yet; feedback very welcome.) > > Gerald > > Index: Makefile > =================================================================== > --- Makefile (revision 402204) > +++ Makefile (working copy) > @@ -3,6 +3,7 @@ > > PORTNAME= gcc > PORTVERSION= 4.8.5 > +PORTREVISION= 1 > CATEGORIES= lang java > MASTER_SITES= GCC/releases/gcc-${DISTVERSION} > > @@ -158,5 +159,10 @@ > fi > .endfor > cd ${WRKDIR} ; ${SED} -i -e "/PLIST.lib/ r PLIST.lib" ${TMPPLIST} > + # This is the canonical GCC port, so add key commands without > + # version numbers as part of their names. > + for c in gfortran g++ gcc; do \ > + ${LN} -s ${PREFIX}/bin/$$c${SUFFIX} ${STAGEDIR}${PREFIX}/bin/$$c; \ > + done > > .include <bsd.port.post.mk> > Index: pkg-plist > =================================================================== > --- pkg-plist (revision 402204) > +++ pkg-plist (working copy) > @@ -8,12 +8,15 @@ > bin/%%GNU_HOST%%-gfortran%%SUFFIX%% > bin/c++%%SUFFIX%% > bin/cpp%%SUFFIX%% > +bin/g++ > bin/g++%%SUFFIX%% > +bin/gcc > bin/gcc%%SUFFIX%% > bin/gcc-ar%%SUFFIX%% > bin/gcc-nm%%SUFFIX%% > bin/gcc-ranlib%%SUFFIX%% > bin/gcov%%SUFFIX%% > +bin/gfortran > bin/gfortran%%SUFFIX%% > @comment info/gcc%%SUFFIX%%/dir > man/man1/cpp%%SUFFIX%%.1.gz > -- - db@FreeBSD.org db@db.net http://www.db.net/~db
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20151123230323.GA74805>