Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Nov 2015 10:19:22 +0000 (UTC)
From:      Gerald Pfeifer <gerald@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r402352 - head/lang/gcc
Message-ID:  <201511241019.tAOAJMTF049917@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: gerald
Date: Tue Nov 24 10:19:22 2015
New Revision: 402352
URL: https://svnweb.freebsd.org/changeset/ports/402352

Log:
  This being the generic GCC port, add gfortran, gcc, and g++ as links
  to the versioned executable (gfortran48, gcc48, and g++48).
  
  These standard names are going to remain in place in case of version
  upgrades and constitute the default, and expected by users, names.
  
  Suggested by:	db
  Reviewed by:	db

Modified:
  head/lang/gcc/Makefile
  head/lang/gcc/pkg-plist

Modified: head/lang/gcc/Makefile
==============================================================================
--- head/lang/gcc/Makefile	Tue Nov 24 09:23:35 2015	(r402351)
+++ head/lang/gcc/Makefile	Tue Nov 24 10:19:22 2015	(r402352)
@@ -3,7 +3,7 @@
 
 PORTNAME=	gcc
 PORTVERSION=	4.8.5
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	lang java
 MASTER_SITES=	GCC/releases/gcc-${DISTVERSION}
 
@@ -168,5 +168,10 @@ post-stage:
 	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>

Modified: head/lang/gcc/pkg-plist
==============================================================================
--- head/lang/gcc/pkg-plist	Tue Nov 24 09:23:35 2015	(r402351)
+++ head/lang/gcc/pkg-plist	Tue Nov 24 10:19:22 2015	(r402352)
@@ -8,12 +8,15 @@ bin/%%GNU_HOST%%-gcc-ranlib%%SUFFIX%%
 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201511241019.tAOAJMTF049917>