diff options
author | Gerald Pfeifer <gerald@FreeBSD.org> | 2015-03-23 07:11:13 +0800 |
---|---|---|
committer | Gerald Pfeifer <gerald@FreeBSD.org> | 2015-03-23 07:11:13 +0800 |
commit | c78df99e25d348559d853061914e0a74b7d32e4e (patch) | |
tree | 88169d640cd3b36382354a759204a74ea496fb81 /lang | |
parent | a16f56e1de6ebec80b00baa0d254eb2b51c6a9ee (diff) | |
download | freebsd-ports-gnome-c78df99e25d348559d853061914e0a74b7d32e4e.tar.gz freebsd-ports-gnome-c78df99e25d348559d853061914e0a74b7d32e4e.tar.zst freebsd-ports-gnome-c78df99e25d348559d853061914e0a74b7d32e4e.zip |
Add CPE information. [1]
Use PKGNAMESUFFIX so that PORTNAME falls back to plain gcc and we
can avoid setting DISTNAME and CPE_PRODUCT. [2]
PR: 198260 [1]
Submitted by: shun.fbsd.pr@dropcut.net [1]
Suggested by: mat [2]
Diffstat (limited to 'lang')
-rw-r--r-- | lang/gcc5/Makefile | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lang/gcc5/Makefile b/lang/gcc5/Makefile index 3a3dd26a7681..c636b8bc6ed7 100644 --- a/lang/gcc5/Makefile +++ b/lang/gcc5/Makefile @@ -1,12 +1,12 @@ # Created by: Gerald Pfeifer <gerald@FreeBSD.org> # $FreeBSD$ -PORTNAME= gcc5 +PORTNAME= gcc PORTVERSION= 5.0.s20150315 CATEGORIES= lang java MASTER_SITES= ${MASTER_SITE_GCC} MASTER_SITE_SUBDIR= snapshots/${DISTVERSION} -DISTNAME= gcc-${DISTVERSION} +PKGNAMESUFFIX= ${SUFFIX} MAINTAINER= gerald@FreeBSD.org COMMENT= GNU Compiler Collection 5 @@ -24,6 +24,9 @@ RUN_DEPENDS+= ${LOCALBASE}/bin/as:${PORTSDIR}/devel/binutils BUILD_DEPENDS+= runtest:${PORTSDIR}/misc/dejagnu .endif +CPE_VENDOR= gnu +CPE_VERSION= ${GCC_VERSION} + # DISTVERSION relates to downloads, GCC_VERSION and SUFFIX to names # of executables and directories once installed. A PORTVERSION of # Y.2.s20140817 results in values of Y-20140817, Y.2.0, and Y @@ -32,7 +35,7 @@ DISTVERSION= ${PORTVERSION:C/([0-9]+).*\.s([0-9]+)/\1-\2/} GCC_VERSION= ${PORTVERSION:C/(.+)\.s[0-9]{8}/\1.0/} SUFFIX= ${PORTVERSION:C/([0-9]+).*/\1/} ONLY_FOR_ARCHS= amd64 i386 powerpc powerpc64 sparc64 arm armv6 armv6hf -USES= gmake iconv libtool makeinfo perl5 tar:bzip2 +USES= cpe gmake iconv libtool makeinfo perl5 tar:bzip2 USE_BINUTILS= yes USE_PERL5= build SSP_UNSAFE= yes |