Date: Tue, 30 Dec 2025 13:34:52 +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: 66d308abbcd9 - main - lang/ruby32: Update WWW Message-ID: <6953d4fc.3e85a.7b647dac@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=66d308abbcd925a829f50d035116c34845099b76 commit 66d308abbcd925a829f50d035116c34845099b76 Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> AuthorDate: 2025-12-30 13:24:30 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2025-12-30 13:30:07 +0000 lang/ruby32: Update WWW - Use LIB_DEPENDS for libffi - Cosmetic change --- lang/ruby32/Makefile | 110 ++++++++++++++++++++++++--------------------------- 1 file changed, 51 insertions(+), 59 deletions(-) diff --git a/lang/ruby32/Makefile b/lang/ruby32/Makefile index 98d9a6445e70..64952a0fd217 100644 --- a/lang/ruby32/Makefile +++ b/lang/ruby32/Makefile @@ -7,58 +7,67 @@ 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 DEPRECATED= Please migrate to newer version. Ruby 3.2 is expected to reach its EoL on March 31, 2026 -EXPIRATION_DATE= 2026-04-30 +EXPIRATION_DATE=2026-04-30 # 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 \ --enable-pthread \ --enable-shared \ - --with-ruby-version="${RUBY_VER}" \ + --with-ruby-version=minor \ --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}/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 # 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 +USE_LDCONFIG= yes RUBY_VER= 3.2 -OPTIONS_DEFINE= CAPIDOCS DEBUG DOCS EXAMPLES GMP RDOC YJIT -OPTIONS_DEFAULT= LIBEDIT RDOC -OPTIONS_SINGLE= EDIT -OPTIONS_SINGLE_EDIT= LIBEDIT READLINE -OPTIONS_SUB= yes +EXTDOCS= readline/README ripper/README stringio/README.md syslog/syslog.txt +EXTSAMPLES= bigdecimal/sample/*.rb +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_SINGLE= EDIT +OPTIONS_SINGLE_EDIT= LIBEDIT READLINE +OPTIONS_DEFAULT=LIBEDIT RDOC +OPTIONS_SUB= yes CAPIDOCS_DESC= Build and install C API documents EDIT_DESC= Which line editing lib to use GMP_DESC= Use GMP to accelerate Bignum operations @@ -67,20 +76,20 @@ RDOC_DESC= Build and install Rdoc indexes READLINE_DESC= Use libreadline 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 -LIBEDIT_USES= libedit -LIBEDIT_CONFIGURE_ON= --enable-libedit \ - --with-libedit-dir=${LOCALBASE} -RDOC_CONFIGURE_ENABLE= install-rdoc -READLINE_USES= readline -READLINE_CONFIGURE_ON= --disable-libedit \ - --with-readline-dir=${LOCALBASE} -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 +LIBEDIT_CONFIGURE_ON= --enable-libedit \ + --with-libedit-dir=${LOCALBASE} +LIBEDIT_USES= libedit +RDOC_CONFIGURE_ENABLE= install-rdoc +READLINE_CONFIGURE_ON= --disable-libedit \ + --with-readline-dir=${LOCALBASE} +READLINE_USES= readline +YJIT_BUILD_DEPENDS= ${RUST_DEFAULT}>=1.58.0:lang/${RUST_DEFAULT} +YJIT_CONFIGURE_ENABLE= yjit .include <bsd.port.pre.mk> @@ -109,8 +118,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} @@ -120,19 +129,6 @@ PKGNAMESUFFIX= ${RUBY_SUFFIX} PLIST_SUB+= IF_DEFAULT="@comment " .endif -INSTALLED_SCRIPTS= ruby -INSTALLED_MANUALS= ruby - -EXTSAMPLES= bigdecimal/sample/*.rb - -EXTDOCS= readline/README ripper/README stringio/README.md \ - syslog/syslog.txt - -# 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-build: # @@ -165,13 +161,13 @@ pre-install-RDOC-on: post-install: .if ${RUBY_VER} == ${RUBY_DEFAULT_VER} # -# Link just installed "ruby" to "ruby31", etc. +# Link just installed "ruby" to "ruby32", etc. # . for FILE in ${INSTALLED_SCRIPTS} ${LN} -fs ${FILE}${RUBY_SUFFIX} ${STAGEDIR}${PREFIX}/bin/${FILE} . endfor # -# Link "ruby.1.gz" to "ruby31.1.gz", etc. +# Link "ruby.1.gz" to "ruby32.1.gz", etc. # . for FILE in ${INSTALLED_MANUALS} ${LN} -fs ${FILE}${RUBY_SUFFIX}.1.gz ${STAGEDIR}${PREFIX}/share/man/man1/${FILE}.1.gz @@ -201,11 +197,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}/ChangeLog \ - ${WRKSRC}/LEGAL \ - ${WRKSRC}/README* \ - ${STAGEDIR}${RUBY_DOCDIR}/ + ${INSTALL_DATA} ${WRKSRC}/COPYING* ${WRKSRC}/ChangeLog ${WRKSRC}/LEGAL ${WRKSRC}/README* ${STAGEDIR}${RUBY_DOCDIR}/ post-install-EXAMPLES-on: # Create all dirs required (":u" isn't available in STABLE yet :-()home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6953d4fc.3e85a.7b647dac>
