Date: Tue, 30 Dec 2025 13:34:55 +0000 From: Po-Chuan Hsieh <sunpoet@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: 6c1a9b2dab3c - main - lang/ruby40: Update WWW Message-ID: <6953d4ff.3f970.7158cf5@gitrepo.freebsd.org>
index | next in thread | raw e-mail
The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=6c1a9b2dab3cd68ca78dd1bebacb893943c72538 commit 6c1a9b2dab3cd68ca78dd1bebacb893943c72538 Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> AuthorDate: 2025-12-30 13:24:33 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2025-12-30 13:30:08 +0000 lang/ruby40: Update WWW - Use LIB_DEPENDS for libffi - Cosmetic change --- lang/ruby40/Makefile | 87 +++++++++++++++++++++++++--------------------------- 1 file changed, 41 insertions(+), 46 deletions(-) diff --git a/lang/ruby40/Makefile b/lang/ruby40/Makefile index de12f63ed780..671393cad92e 100644 --- a/lang/ruby40/Makefile +++ b/lang/ruby40/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 # Upstream says "+0" is intentionally added to ruby version string # ("3.5+0" for example ) with pre-release version. # So use --with-ruby-version="${RUBY_VER}" rather than @@ -40,39 +40,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= 4.0 -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_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 .include <bsd.port.pre.mk> @@ -101,8 +110,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} @@ -112,17 +121,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 @@ -157,13 +155,13 @@ pre-install-RDOC-on: post-install: .if ${RUBY_VER} == ${RUBY_DEFAULT_VER} # -# Link just installed "ruby" to "ruby35", etc. +# Link just installed "ruby" to "ruby40", etc. # . for FILE in ${INSTALLED_SCRIPTS} ${LN} -fs ${FILE}${RUBY_SUFFIX} ${STAGEDIR}${PREFIX}/bin/${FILE} . endfor # -# Link "ruby.1.gz" to "ruby35.1.gz", etc. +# Link "ruby.1.gz" to "ruby40.1.gz", etc. # . for FILE in ${INSTALLED_MANUALS} ${LN} -fs ${FILE}${RUBY_SUFFIX}.1.gz ${STAGEDIR}${PREFIX}/share/man/man1/${FILE}.1.gz @@ -193,10 +191,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}/)home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6953d4ff.3f970.7158cf5>
