summaryrefslogtreecommitdiff
path: root/lang/gcc48
diff options
context:
space:
mode:
authorGerald Pfeifer <gerald@FreeBSD.org>2012-10-01 03:46:21 +0000
committerGerald Pfeifer <gerald@FreeBSD.org>2012-10-01 03:46:21 +0000
commitc0a0ba288ee466fe56649059e76509ddb89af0c8 (patch)
treeb484699fcebd13e027664174f226f25f65773078 /lang/gcc48
parentAdd yaml-cpp 0.3.0, YAML parser and emitter in C++ matching the YAML 1.2 (diff)
Forward port revision 282369 [1] which carried the following description:
On the way rename %%GCC_VER%% in pkg-plist to %%GCC_VERSION%% and make the Makefile machinery a bit more generic to minimize differences between lang/gcc ports based on releases and those based on snapshots. On the way, update to the 20120930 snapshot of GCC 4.8.0. Submitted by: jkim [1]
Notes
Notes: svn path=/head/; revision=305091
Diffstat (limited to 'lang/gcc48')
-rw-r--r--lang/gcc48/Makefile7
-rw-r--r--lang/gcc48/distinfo4
-rw-r--r--lang/gcc48/pkg-plist26
3 files changed, 20 insertions, 17 deletions
diff --git a/lang/gcc48/Makefile b/lang/gcc48/Makefile
index 25b6300386dc..2de4432dfdf4 100644
--- a/lang/gcc48/Makefile
+++ b/lang/gcc48/Makefile
@@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= gcc
-PORTVERSION= 4.8.0.20120909
+PORTVERSION= 4.8.0.20120930
CATEGORIES= lang java
MASTER_SITES= ${MASTER_SITE_GCC}
MASTER_SITE_SUBDIR= snapshots/${VERSIONSTRING}
@@ -20,7 +20,10 @@ RUN_DEPENDS+= ${LOCALBASE}/bin/as:${PORTSDIR}/devel/binutils
BUILD_DEPENDS+= runtest:${PORTSDIR}/misc/dejagnu
.endif
+# VERSIONSTRING relates to downloads, GCC_VERSION and SUFFIX to names
+# of executables and directories once installed.
VERSIONSTRING= ${PORTVERSION:C/([0-9]+\.[0-9]+).*\.([0-9]+)/\1-\2/}
+GCC_VERSION= ${PORTVERSION:C/(.+)\.[0-9]{8}/\1/}
SUFFIX= ${PORTVERSION:C/([0-9]+).([0-9]+).*/\1\2/}
LATEST_LINK= gcc${SUFFIX}${PKGNAMESUFFIX}
ONLY_FOR_ARCHS= amd64 i386 powerpc powerpc64 sparc64
@@ -73,7 +76,7 @@ CONFIGURE_ARGS+=--disable-nls \
MAKE_ARGS+= MAKEINFOFLAGS="--no-split"
ALL_TARGET= bootstrap-lean
USE_LDCONFIG= ${TARGLIB}
-PLIST_SUB= GCC_VER=${PORTVERSION:C/(.+)\.[0-9]+/\1/} \
+PLIST_SUB= GCC_VERSION=${GCC_VERSION} \
GNU_HOST=${CONFIGURE_TARGET} \
SUFFIX=${SUFFIX}
MAN1= cpp${SUFFIX}.1 \
diff --git a/lang/gcc48/distinfo b/lang/gcc48/distinfo
index 4870b9c8a46f..a90cfd4dcc02 100644
--- a/lang/gcc48/distinfo
+++ b/lang/gcc48/distinfo
@@ -1,2 +1,2 @@
-SHA256 (gcc-4.8-20120909.tar.bz2) = 7afd0b9143a541702f767d69610b5648e7e97fdd66b02ca910175e0bad2b31c0
-SIZE (gcc-4.8-20120909.tar.bz2) = 79532225
+SHA256 (gcc-4.8-20120930.tar.bz2) = a5fe63ac539933edc9912394a6755f53d914e53ca63f0cc0eea6aa9753838189
+SIZE (gcc-4.8-20120930.tar.bz2) = 79806276
diff --git a/lang/gcc48/pkg-plist b/lang/gcc48/pkg-plist
index 84933811edb3..38a974a4f2ee 100644
--- a/lang/gcc48/pkg-plist
+++ b/lang/gcc48/pkg-plist
@@ -2,7 +2,7 @@
bin/%%GNU_HOST%%-c++%%SUFFIX%%
bin/%%GNU_HOST%%-g++%%SUFFIX%%
bin/%%GNU_HOST%%-gcc%%SUFFIX%%
-bin/%%GNU_HOST%%-gcc-%%GCC_VER%%
+bin/%%GNU_HOST%%-gcc-%%GCC_VERSION%%
bin/%%GNU_HOST%%-gcc-ar%%SUFFIX%%
bin/%%GNU_HOST%%-gcc-nm%%SUFFIX%%
bin/%%GNU_HOST%%-gcc-ranlib%%SUFFIX%%
@@ -17,16 +17,16 @@ bin/gcc-ranlib%%SUFFIX%%
bin/gcov%%SUFFIX%%
bin/gfortran%%SUFFIX%%
info/gcc%%SUFFIX%%/dir
-%%JAVA%%share/gcc-%%GCC_VER%%/python/libjava/aotcompile.py
-%%JAVA%%share/gcc-%%GCC_VER%%/python/libjava/classfile.py
-%%JAVA%%@dirrm share/gcc-%%GCC_VER%%/python/libjava
-share/gcc-%%GCC_VER%%/python/libstdcxx/__init__.py
-share/gcc-%%GCC_VER%%/python/libstdcxx/v6/__init__.py
-share/gcc-%%GCC_VER%%/python/libstdcxx/v6/printers.py
-@dirrm share/gcc-%%GCC_VER%%/python/libstdcxx/v6
-@dirrm share/gcc-%%GCC_VER%%/python/libstdcxx
-@dirrm share/gcc-%%GCC_VER%%/python
-@dirrm share/gcc-%%GCC_VER%%
+%%JAVA%%share/gcc-%%GCC_VERSION%%/python/libjava/aotcompile.py
+%%JAVA%%share/gcc-%%GCC_VERSION%%/python/libjava/classfile.py
+%%JAVA%%@dirrm share/gcc-%%GCC_VERSION%%/python/libjava
+share/gcc-%%GCC_VERSION%%/python/libstdcxx/__init__.py
+share/gcc-%%GCC_VERSION%%/python/libstdcxx/v6/__init__.py
+share/gcc-%%GCC_VERSION%%/python/libstdcxx/v6/printers.py
+@dirrm share/gcc-%%GCC_VERSION%%/python/libstdcxx/v6
+@dirrm share/gcc-%%GCC_VERSION%%/python/libstdcxx
+@dirrm share/gcc-%%GCC_VERSION%%/python
+@dirrm share/gcc-%%GCC_VERSION%%
%%JAVA%%bin/%%GNU_HOST%%-gcj%%SUFFIX%%
%%JAVA%%bin/aot-compile%%SUFFIX%%
%%JAVA%%bin/gappletviewer%%SUFFIX%%
@@ -50,8 +50,8 @@ share/gcc-%%GCC_VER%%/python/libstdcxx/v6/printers.py
%%JAVA%%bin/jv-convert%%SUFFIX%%
%%JAVA%%bin/rebuild-gcj-db%%SUFFIX%%
%%JAVA%%libdata/pkgconfig/libgcj-4.8.pc
-%%JAVA%%share/java/libgcj-%%GCC_VER%%.jar
-%%JAVA%%share/java/libgcj-tools-%%GCC_VER%%.jar
+%%JAVA%%share/java/libgcj-%%GCC_VERSION%%.jar
+%%JAVA%%share/java/libgcj-tools-%%GCC_VERSION%%.jar
@exec if type ccache-update-links >/dev/null 2>&1; then ccache-update-links -v; fi
@unexec if type ccache-update-links >/dev/null 2>&1; then ccache-update-links -v; fi
@comment Insert PLIST.lib here