git: 593d234289d2 - main - lang/ruby34: Update WWW
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 30 Dec 2025 13:34:54 UTC
The branch main has been updated by sunpoet:
URL: https://cgit.FreeBSD.org/ports/commit/?id=593d234289d29fdcbbc147e728271f3750f39d46
commit 593d234289d29fdcbbc147e728271f3750f39d46
Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2025-12-30 13:24:32 +0000
Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2025-12-30 13:30:07 +0000
lang/ruby34: Update WWW
- Use LIB_DEPENDS for libffi
- Cosmetic change
---
lang/ruby34/Makefile | 83 ++++++++++++++++++++++++----------------------------
1 file changed, 39 insertions(+), 44 deletions(-)
diff --git a/lang/ruby34/Makefile b/lang/ruby34/Makefile
index 4c5dd61e8df8..643f9e9dee23 100644
--- a/lang/ruby34/Makefile
+++ b/lang/ruby34/Makefile
@@ -8,24 +8,24 @@ DIST_SUBDIR= ruby
MAINTAINER= ruby@FreeBSD.org
COMMENT= Object-oriented interpreted scripting language
-WWW= https://www.ruby-lang.org/en/
+WWW= https://www.ruby-lang.org/en/ \
+ https://github.com/ruby/ruby
LICENSE= BSD2CLAUSE RUBY
LICENSE_COMB= dual
-LICENSE_FILE_BSD2CLAUSE= ${WRKSRC}/BSDL
+LICENSE_FILE_BSD2CLAUSE=${WRKSRC}/BSDL
LICENSE_FILE_RUBY= ${WRKSRC}/COPYING
# Using LIB_DEPENDS finds the libffi from gcc which causes problems
BUILD_DEPENDS= libffi>=0:devel/libffi
-LIB_DEPENDS= libyaml.so:textproc/libyaml
-RUN_DEPENDS= libffi>=0:devel/libffi
+LIB_DEPENDS= libffi.so:devel/libffi \
+ libyaml.so:textproc/libyaml
USES= autoreconf cpe localbase ruby:none ssl tar:xz
+
CPE_VENDOR= ruby-lang
CPE_UPDATE= p0
-USE_LDCONFIG= yes
-GNU_CONFIGURE= yes
CONFIGURE_ARGS= ${RUBY_CONFIGURE_ARGS} \
--disable-rpath \
--enable-install-static-library \
@@ -35,39 +35,48 @@ CONFIGURE_ARGS= ${RUBY_CONFIGURE_ARGS} \
--with-sitedir="${PREFIX}/lib/ruby/site_ruby" \
--with-vendordir="${PREFIX}/lib/ruby/vendor_ruby"
CONFIGURE_ENV= debugflags=
-
+EXTRACT_AFTER_ARGS= \
+ --exclude ${DISTNAME}/bin/gem \
+ --exclude ${DISTNAME}/ext/win32* \
+ --exclude ${DISTNAME}/lib/bundler* \
+ --exclude ${DISTNAME}/lib/irb* \
+ --exclude ${DISTNAME}/man/erb.1 \
+ --exclude ${DISTNAME}/man/irb.1 \
+ --exclude ${DISTNAME}/man/ri.1 \
+ --exclude ${DISTNAME}/sample/win32ole \
+ --no-same-owner --no-same-permissions
+GNU_CONFIGURE= yes
# Keep this, else ruby will fail to load libraries dependent of libpthread.
LIBS+= -lpthread
-
-EXTRACT_AFTER_ARGS= --exclude ${DISTNAME}/bin/gem \
- --exclude ${DISTNAME}/ext/win32* \
- --exclude ${DISTNAME}/lib/bundler* \
- --exclude ${DISTNAME}/lib/irb* \
- --exclude ${DISTNAME}/man/erb.1 \
- --exclude ${DISTNAME}/man/irb.1 \
- --exclude ${DISTNAME}/man/ri.1 \
- --exclude ${DISTNAME}/sample/win32ole \
- --no-same-owner --no-same-permissions
+USE_LDCONFIG= yes
RUBY_VER= 3.4
-OPTIONS_DEFINE= CAPIDOCS DEBUG DOCS EXAMPLES GMP RDOC YJIT
-OPTIONS_DEFAULT= RDOC
-OPTIONS_SUB= yes
+EXTDOCS= ripper/README stringio/README.md
+INSTALLED_MANUALS= ruby
+INSTALLED_SCRIPTS= ruby
+# Macros to change variables in rbconfig.rb
+# NOTE: The last argument RB_SET_CONF_VAR is a dummy argument. See bug 222872.
+RB_SET_CONF_VAR=${SH} -c \
+ '${REINPLACE_CMD} -E -e "s,(CONFIG\[\"$$0\"\][[:space:]]*=[[:space:]]*)(\(?)(.*)(\)?),\1\2$$1\4," ${WRKSRC}/rbconfig.rb' \
+ RB_SET_CONF_VAR
+OPTIONS_DEFINE= CAPIDOCS DEBUG DOCS EXAMPLES GMP RDOC YJIT
+OPTIONS_DEFAULT=RDOC
+OPTIONS_SUB= yes
CAPIDOCS_DESC= Build and install C API documents
GMP_DESC= Use GMP to accelerate Bignum operations
RDOC_DESC= Build and install Rdoc indexes
YJIT_DESC= Enable YJIT (Yet Another Ruby JIT)
-CAPIDOCS_BUILD_DEPENDS= dot:graphics/graphviz \
- doxygen>=1.8.13,2:devel/doxygen
+CAPIDOCS_BUILD_DEPENDS= dot:graphics/graphviz \
+ doxygen>=1.8.13,2:devel/doxygen
CAPIDOCS_CONFIGURE_ENABLE= install-capi
-GMP_LIB_DEPENDS= libgmp.so:math/gmp
-GMP_CONFIGURE_WITH= gmp
-RDOC_CONFIGURE_ENABLE= install-rdoc
-YJIT_BUILD_DEPENDS= ${RUST_DEFAULT}>=1.58.0:lang/${RUST_DEFAULT}
-YJIT_CONFIGURE_ENABLE= yjit
+GMP_CONFIGURE_WITH= gmp
+GMP_LIB_DEPENDS= libgmp.so:math/gmp
+RDOC_CONFIGURE_ENABLE= install-rdoc
+YJIT_BUILD_DEPENDS= ${RUST_DEFAULT}>=1.58.0:lang/${RUST_DEFAULT}
+YJIT_CONFIGURE_ENABLE= yjit
.include <bsd.port.pre.mk>
@@ -96,8 +105,8 @@ LIB_DEPENDS+= libunwind.so:devel/libunwind
.endif
.if ${ARCH} == armv6 || ${ARCH} == armv7 || ${ARCH} == powerpc
-CONFIGURE_ARGS+= --with-setjmp-type=_setjmp
-CONFIGURE_ENV+= ac_cv_func__setjmp=yes
+CONFIGURE_ARGS+=--with-setjmp-type=_setjmp
+CONFIGURE_ENV+= ac_cv_func__setjmp=yes
.endif
.if ${RUBY_VER} == ${RUBY_DEFAULT_VER}
@@ -107,17 +116,6 @@ PKGNAMESUFFIX= ${RUBY_SUFFIX}
PLIST_SUB+= IF_DEFAULT="@comment "
.endif
-INSTALLED_SCRIPTS= ruby
-INSTALLED_MANUALS= ruby
-
-EXTDOCS= ripper/README stringio/README.md
-
-# Macros to change variables in rbconfig.rb
-# NOTE: The last argument RB_SET_CONF_VAR is a dummy argument. See bug 222872.
-RB_SET_CONF_VAR= ${SH} -c \
- '${REINPLACE_CMD} -E -e "s,(CONFIG\[\"$$0\"\][[:space:]]*=[[:space:]]*)(\(?)(.*)(\)?),\1\2$$1\4," ${WRKSRC}/rbconfig.rb' \
- RB_SET_CONF_VAR
-
post-extract-DOCS-on:
${MV} ${WRKSRC}/ChangeLog ${WRKSRC}/doc/ChangeLog
@@ -188,10 +186,7 @@ post-install-DOCS-on:
${STAGEDIR}${RUBY_DOCDIR}/${FILE:C|^([^/]+)/.*|\1|}/
.endfor
@(cd ${WRKSRC}/doc/ && ${COPYTREE_SHARE} \* ${STAGEDIR}${RUBY_DOCDIR}/)
- ${INSTALL_DATA} ${WRKSRC}/COPYING* \
- ${WRKSRC}/LEGAL \
- ${WRKSRC}/README* \
- ${STAGEDIR}${RUBY_DOCDIR}/
+ ${INSTALL_DATA} ${WRKSRC}/COPYING* ${WRKSRC}/LEGAL ${WRKSRC}/README* ${STAGEDIR}${RUBY_DOCDIR}/
post-install-EXAMPLES-on:
(cd ${WRKSRC}/sample/ && ${COPYTREE_SHARE} . ${STAGEDIR}${RUBY_EXAMPLESDIR}/)