lang/gcc: Simplify the construction of RUN_DEPENDS

We no longer have to cater to GCC 4.8 and major releases of GCC having
a format of X.Y, so simply can use GCC_DEFAULT directly.
This commit is contained in:
Gerald Pfeifer 2025-08-26 13:21:45 +00:00
parent d4e71010c0
commit ab827e1871
1 changed files with 1 additions and 3 deletions

View File

@ -9,9 +9,7 @@ MAINTAINER= gerald@FreeBSD.org
COMMENT= Meta-port for the default version of the GNU Compiler Collection
WWW= https://gcc.gnu.org
# Once GCC 4.8 isn't an option any longer, we can simply use GCC_DEFAULT
# below. (The expression rewrites 4.8 to 48.)
RUN_DEPENDS= gcc${GCC_DEFAULT:S/.//}:lang/gcc${GCC_DEFAULT:S/.//}
RUN_DEPENDS= gcc${GCC_DEFAULT}:lang/gcc${GCC_DEFAULT}
USES= cpe
CPE_VENDOR= gnu