git: ab827e18713b - main - lang/gcc: Simplify the construction of RUN_DEPENDS

From: Gerald Pfeifer <gerald_at_FreeBSD.org>
Date: Tue, 26 Aug 2025 13:23:58 UTC
The branch main has been updated by gerald:

URL: https://cgit.FreeBSD.org/ports/commit/?id=ab827e18713b6d8b0859afd0ee7e995e356b997f

commit ab827e18713b6d8b0859afd0ee7e995e356b997f
Author:     Gerald Pfeifer <gerald@FreeBSD.org>
AuthorDate: 2025-08-26 13:21:45 +0000
Commit:     Gerald Pfeifer <gerald@FreeBSD.org>
CommitDate: 2025-08-26 13:21:45 +0000

    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.
---
 lang/gcc/Makefile | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/lang/gcc/Makefile b/lang/gcc/Makefile
index c05ae285bb96..8709a824c570 100644
--- a/lang/gcc/Makefile
+++ b/lang/gcc/Makefile
@@ -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