git: 54ad54f59386 - main - lang/ruby3{1,2,3}: Pet portclippy

From: Koichiro Iwao <meta_at_FreeBSD.org>
Date: Tue, 11 Mar 2025 15:15:36 UTC
The branch main has been updated by meta:

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

commit 54ad54f59386672790267f5bf08ee279d8512fa6
Author:     Koichiro Iwao <meta@FreeBSD.org>
AuthorDate: 2025-03-11 15:06:56 +0000
Commit:     Koichiro Iwao <meta@FreeBSD.org>
CommitDate: 2025-03-11 15:15:17 +0000

    lang/ruby3{1,2,3}: Pet portclippy
    
    Reported by:    John Hein (in Bug 222872)
    Sponsored by:   Cybertrust Japan
---
 lang/ruby31/Makefile | 21 +++++++++++----------
 lang/ruby32/Makefile | 21 +++++++++++----------
 lang/ruby33/Makefile | 21 +++++++++++----------
 3 files changed, 33 insertions(+), 30 deletions(-)

diff --git a/lang/ruby31/Makefile b/lang/ruby31/Makefile
index 151089815705..0b51b92d111c 100644
--- a/lang/ruby31/Makefile
+++ b/lang/ruby31/Makefile
@@ -28,16 +28,6 @@ CPE_VENDOR=	ruby-lang
 CPE_UPDATE=	p0
 USE_LDCONFIG=	yes
 
-# We get these from other ports
-EXTRACT_AFTER_ARGS=	--exclude ${DISTNAME}/bin/gem \
-			--exclude ${DISTNAME}/ext/win32* \
-			--exclude ${DISTNAME}/lib/bundler* \
-			--exclude ${DISTNAME}/libexec/bundler \
-			--exclude ${DISTNAME}/man/erb.1 \
-			--exclude ${DISTNAME}/man/irb.1 \
-			--exclude ${DISTNAME}/man/ri.1 \
-			--no-same-owner --no-same-permissions
-
 GNU_CONFIGURE=	yes
 CONFIGURE_ARGS=	${RUBY_CONFIGURE_ARGS} \
 		--disable-rpath \
@@ -51,6 +41,17 @@ CONFIGURE_ENV=	debugflags=
 
 # Keep this, else ruby will fail to load libraries dependent of libpthread.
 LIBS+=		-lpthread
+
+# We get these from other ports
+EXTRACT_AFTER_ARGS=	--exclude ${DISTNAME}/bin/gem \
+			--exclude ${DISTNAME}/ext/win32* \
+			--exclude ${DISTNAME}/lib/bundler* \
+			--exclude ${DISTNAME}/libexec/bundler \
+			--exclude ${DISTNAME}/man/erb.1 \
+			--exclude ${DISTNAME}/man/irb.1 \
+			--exclude ${DISTNAME}/man/ri.1 \
+			--no-same-owner --no-same-permissions
+
 WRKSRC=		${RUBY_WRKSRC}
 
 RUBY_VER=	3.1
diff --git a/lang/ruby32/Makefile b/lang/ruby32/Makefile
index 3e1b5f4c62c6..8f3dc3ea326d 100644
--- a/lang/ruby32/Makefile
+++ b/lang/ruby32/Makefile
@@ -24,16 +24,6 @@ CPE_VENDOR=	ruby-lang
 CPE_UPDATE=	p0
 USE_LDCONFIG=	yes
 
-# We get these from other ports
-EXTRACT_AFTER_ARGS=	--exclude ${DISTNAME}/bin/gem \
-			--exclude ${DISTNAME}/ext/win32* \
-			--exclude ${DISTNAME}/lib/bundler* \
-			--exclude ${DISTNAME}/libexec/bundler \
-			--exclude ${DISTNAME}/man/erb.1 \
-			--exclude ${DISTNAME}/man/irb.1 \
-			--exclude ${DISTNAME}/man/ri.1 \
-			--no-same-owner --no-same-permissions
-
 GNU_CONFIGURE=	yes
 CONFIGURE_ARGS=	${RUBY_CONFIGURE_ARGS} \
 		--disable-rpath \
@@ -47,6 +37,17 @@ CONFIGURE_ENV=	debugflags=
 
 # Keep this, else ruby will fail to load libraries dependent of libpthread.
 LIBS+=		-lpthread
+
+# We get these from other ports
+EXTRACT_AFTER_ARGS=	--exclude ${DISTNAME}/bin/gem \
+			--exclude ${DISTNAME}/ext/win32* \
+			--exclude ${DISTNAME}/lib/bundler* \
+			--exclude ${DISTNAME}/libexec/bundler \
+			--exclude ${DISTNAME}/man/erb.1 \
+			--exclude ${DISTNAME}/man/irb.1 \
+			--exclude ${DISTNAME}/man/ri.1 \
+			--no-same-owner --no-same-permissions
+
 WRKSRC=		${RUBY_WRKSRC}
 
 RUBY_VER=	3.2
diff --git a/lang/ruby33/Makefile b/lang/ruby33/Makefile
index fd9cc2baff4a..eadc1fe629bd 100644
--- a/lang/ruby33/Makefile
+++ b/lang/ruby33/Makefile
@@ -24,16 +24,6 @@ CPE_VENDOR=	ruby-lang
 CPE_UPDATE=	p0
 USE_LDCONFIG=	yes
 
-# We get these from other ports
-EXTRACT_AFTER_ARGS=	--exclude ${DISTNAME}/bin/gem \
-			--exclude ${DISTNAME}/ext/win32* \
-			--exclude ${DISTNAME}/lib/bundler* \
-			--exclude ${DISTNAME}/libexec/bundler \
-			--exclude ${DISTNAME}/man/erb.1 \
-			--exclude ${DISTNAME}/man/irb.1 \
-			--exclude ${DISTNAME}/man/ri.1 \
-			--no-same-owner --no-same-permissions
-
 CONFIGURE_ARGS=	${RUBY_CONFIGURE_ARGS} \
 		--disable-rpath \
 		--enable-install-static-library \
@@ -46,6 +36,17 @@ CONFIGURE_ENV=	debugflags=
 GNU_CONFIGURE=	yes
 # Keep this, else ruby will fail to load libraries dependent of libpthread.
 LIBS+=		-lpthread
+
+# We get these from other ports
+EXTRACT_AFTER_ARGS=	--exclude ${DISTNAME}/bin/gem \
+			--exclude ${DISTNAME}/ext/win32* \
+			--exclude ${DISTNAME}/lib/bundler* \
+			--exclude ${DISTNAME}/libexec/bundler \
+			--exclude ${DISTNAME}/man/erb.1 \
+			--exclude ${DISTNAME}/man/irb.1 \
+			--exclude ${DISTNAME}/man/ri.1 \
+			--no-same-owner --no-same-permissions
+
 WRKSRC=		${RUBY_WRKSRC}
 
 RUBY_VER=	3.3