Port details |
- ruby31 Object-oriented interpreted scripting language
- 3.1.6,1 lang
=6 3.1.6,1Version of this port present on the latest quarterly branch. DEPRECATED: Please migrate to newer version. Ruby 3.1 is expected to reach its EoL on March 31, 2025
EXPIRATION DATE: 2025-03-31
- Maintainer: ruby@FreeBSD.org
 - Port Added: 2021-12-19 00:39:06
- Last Update: 2025-02-17 08:21:19
- Commit Hash: ce4ab16
- People watching this port, also watch:: glib, git, libxml2, freetype2, zstd
- Also Listed In: ruby
- License: BSD2CLAUSE RUBY
- WWW:
- https://www.ruby-lang.org/en/
- Description:
- Ruby is the interpreted scripting language for quick and
easy object-oriented programming. It has many features to
process text files and to do system management tasks (as in
Perl). It is simple, straight-forward, and extensible.
Features of Ruby are shown below.
+ Simple Syntax
+ *Normal* Object-Oriented features(ex. class, method calls)
+ *Advanced* Object-Oriented features(ex. Mix-in, Singleton-method)
+ Operator Overloading
+ Exception Handling
+ Iterators and Closures
+ Garbage Collection
+ Dynamic Loading of Object files(on some architecture)
+ Highly Portable(works on many UNIX machines, and on DOS,
Windows, Mac, BeOS etc.)
¦ ¦ ¦ ¦ 
- Manual pages:
- FreshPorts has no man page information for this port.
- pkg-plist: as obtained via:
make generate-plist - Dependency lines:
-
- To install the port:
- cd /usr/ports/lang/ruby31/ && make install clean
- To add the package, run one of these commands:
- pkg install lang/ruby31
- pkg install ruby31
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.- PKGNAME: ruby31
- Flavors: there is no flavor information for this port.
- distinfo:
- TIMESTAMP = 1717025731
SHA256 (ruby/ruby-3.1.6.tar.xz) = 597bd1849f252d8a6863cb5d38014ac54152b508c36dca156f6356a9e63c6102
SIZE (ruby/ruby-3.1.6.tar.xz) = 15273916
Packages (timestamps in pop-ups are UTC):
- Dependencies
- NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
- Build dependencies:
-
- libffi>=0 : devel/libffi
- autoconf>=2.72 : devel/autoconf
- automake>=1.17 : devel/automake
- Runtime dependencies:
-
- libffi>=0 : devel/libffi
- Library dependencies:
-
- libyaml.so : textproc/libyaml
- libedit.so.0 : devel/libedit
- libunwind.so : devel/libunwind
- This port is required by:
- for Build
-
- archivers/rubygem-bzip2-ffi
- audio/squash
- biology/rubygem-bio
- converters/rubygem-base64
- converters/rubygem-po_to_json
- databases/rubygem-activerecord-session_store
- databases/rubygem-activerecord-trilogy-adapter
-
Deleted ports which required this port:
- for Extract
-
- for Patch
-
- archivers/rubygem-bzip2-ffi
- audio/squash
- biology/rubygem-bio
- converters/rubygem-base64
- converters/rubygem-po_to_json
- databases/rubygem-activerecord-session_store
- databases/rubygem-activerecord-trilogy-adapter
-
Deleted ports which required this port:
- for Run
-
- archivers/rubygem-bzip2-ffi
- audio/squash
- biology/rubygem-bio
- converters/rubygem-base64
- converters/rubygem-po_to_json
- databases/rubygem-activerecord-session_store
- databases/rubygem-activerecord-trilogy-adapter
-
Deleted ports which required this port:
- * - deleted ports are only shown under the This port is required by section. It was harder to do for the Required section. Perhaps later...
Configuration Options:
- ===> The following configuration options are available for ruby31-3.1.6,1:
CAPIDOCS=off: Build and install C API documents
DEBUG=off: Build with debugging support
DOCS=on: Build and/or install documentation
EXAMPLES=on: Build and/or install examples
GMP=off: Use GMP to accelerate Bignum operations
RDOC=on: Build and install Rdoc indexes
====> Which line editing lib to use: you have to select exactly one of them
LIBEDIT=on: Use libedit
READLINE=off: Use libreadline
===> Use 'make config' to modify these settings
- Options name:
- lang_ruby31
- USES:
- autoreconf cpe localbase ruby:none ssl tar:xz libedit
- pkg-message:
- For install:
- Some of the standard commands and libraries are provided as separate
ports for ease of upgrading:
devel/ruby-gems: gem - RubyGems package manager
devel/rubygem-debug: debug - Debugging functionality for Ruby
devel/rubygem-erb: erb - Templating system for Ruby
devel/rubygem-irb: irb - Interactive Ruby
devel/rubygem-minitest: minitest - Complete suite of testing facilities
devel/rubygem-power_assert: power_assert - Power Assert for Ruby
devel/rubygem-rake: rake - Ruby Make
devel/rubygem-rbs: rbs - Language for type signatures for Ruby and standard library definitions
devel/rubygem-rdoc: rdoc - Ruby Documentation System
devel/rubygem-test-unit: test-unit - Unit testing framework for Ruby
devel/rubygem-typeprof: typeprof - Type analysis tool for Ruby code
ftp/rubygem-net-ftp: net-ftp - Support for the File Transfer Protocol
mail/rubygem-net-imap: net-imap - Ruby client api for Internet Message Access Protocol
mail/rubygem-net-pop: net-pop - Ruby client library for POP3
mail/rubygem-net-smtp: net-smtp - Simple Mail Transfer Protocol client library for Ruby
math/rubygem-matrix: matrix - Implementation of Matrix and Vector classes
math/rubygem-prime: prime - Prime numbers and factorization library
sysutils/rubygem-bundler: bundler - Tool that manages gem dependencies for ruby applications
textproc/rubygem-rexml: rexml - XML toolkit for Ruby
www/rubygem-rss: rss - Family of libraries that support various formats of XML "feeds"
Install them as occasion demands.
- Master Sites:
|
Commit History - (may be incomplete: for full details, see links to repositories near top of page) |
Commit | Credits | Log message |
3.1.6,1 17 Feb 2025 08:21:19
    |
Po-Chuan Hsieh (sunpoet)  |
lang/ruby31: Fix CPE_STR
RUBY_RELVERSION and RUBY_PATCHLEVEL have been removed in
a1a91e4c937a8664ae4b4bedca114e40c46e3d14.
This commit fixes the CPE_STR.
For example:
- Before:
cpe:2.3:a:ruby-lang:ruby::p::::freebsd14:x64
- After:
cpe:2.3:a:ruby-lang:ruby:3.1.6:p0::::freebsd14:x64 |
3.1.6,1 30 May 2024 00:37:27
    |
Yasuhiro Kimura (yasu)  |
lang/ruby31: Update to 3.1.6
ReleaseNotes: https://www.ruby-lang.org/en/news/2024/05/29/ruby-3-1-6-released/ |
3.1.5,1 19 May 2024 00:30:36
    |
Yasuhiro Kimura (yasu)  |
lang/ruby3[1-3]: Update pkg-message
* Remove description about DBM and GDBM libraries. Ruby 3.1 and later
don't distribute them any more.
* Update list of standard commands and libraries that are included in
distribution source archive but provided as separate ports. |
3.1.5,1 14 May 2024 04:26:43
    |
Yasuhiro Kimura (yasu)  Author: Daniel Engberg |
lang/ruby3[1-3]: Refine ports
* Skip extracting unnecessary files by setting EXTRACT_AFTER_ARGS
instead of removing them with post-patch target after they are
extracted.
* Use 'USES=localbase' to set path of header and library files.
PR: 278764 |
3.1.5,1 23 Apr 2024 14:55:49
    |
Yasuhiro Kimura (yasu)  |
lang/ruby31: Update to 3.1.5
After the release of 3.1.3 Ruby 3.1 series has entered security
maintainance phase that only security fixes are provided. And it is
expected to reach its EoL on March 31, 2025. So mark DEPRECATED to
encourage user to migrate to newer version, and set EXPIRATION_DATE to
its expected EoL day.
ReleaseNotes: https://www.ruby-lang.org/en/news/2024/04/23/ruby-3-1-5-released/
MFH: 2024Q1
Security: 2ce1a2f1-0177-11ef-a45e-08002784c58d |
3.1.4_1,1 13 Apr 2024 16:07:33
    |
Po-Chuan Hsieh (sunpoet)  |
lang/ruby*: Remove GNU_CONFIGURE_MANPREFIX=${PREFIX}/share after
9fd7ee1cdf6cbd5528159b58a966e1a40e2909a9 |
3.1.4_1,1 21 Feb 2024 15:11:12
    |
Po-Chuan Hsieh (sunpoet)  |
lang/ruby31: Sort PLIST |
3.1.4_1,1 22 Jan 2024 20:26:39
    |
Muhammad Moinur Rahman (bofh)  |
lang/ruby31: Sanitize MANPREFIX
Approved by: portmgr (blanket) |
3.1.4_1,1 05 Jan 2024 21:04:15
    |
Piotr Kubaj (pkubaj)  |
lang/ruby31: drop ELFv1 support |
3.1.4_1,1 26 Apr 2023 12:53:35
    |
Piotr Kubaj (pkubaj)  |
lang/ruby31: enable libunwind on powerpc |
3.1.4,1 18 Apr 2023 18:05:10
    |
Po-Chuan Hsieh (sunpoet)  |
lang/ruby31: Fix typo |
3.1.4,1 18 Apr 2023 12:31:07
    |
Po-Chuan Hsieh (sunpoet)  Author: Yasuhiro Kimura |
lang/ruby31: Update to 3.1.4
Changes: https://www.ruby-lang.org/en/news/2023/03/30/ruby-3-1-4-released/
PR: 270557
Exp-run by: antoine
Security: 9b60bba1-cf18-11ed-bd44-080027f5fec9
Security: 6bd2773c-cf1a-11ed-bd44-080027f5fec9 |
3.1.3_1,1 11 Feb 2023 05:59:02
    |
Yasuhiro Kimura (yasu)  |
lang/ruby31: Add upstream patch to fix bug of mkmf library
There is bug in mkmf library of Ruby 3.1 that it fails to detect
pkg-config command if it isn't installed in environment that Ruby is
built, and it causes build error of some ports when default version of
Ruby is 3.1. So add upstream patch to fix it.
Reference: https://bugs.ruby-lang.org/issues/19189
PR: 269197
Approved by: maintainer timeout
MFH: 2023Q1 |
3.1.3,1 14 Jan 2023 23:08:33
    |
Muhammad Moinur Rahman (bofh)  |
Mk/**ruby.mk: Switch from USE_RUBY=yes to USES=ruby
Switch from Mk/bsd.ruby.mk to Mk/Uses/ruby.mk
Notable changes are.
- Mk/bsd.ruby.mk is moved to Mk/Uses/ruby.mk.
- USE_RUBY=yes is replaced with USES=ruby.
- USE_RUBY_EXTCONF is replaced with USES=ruby:extconf.
- USE_RUBY_RDOC is replaced with USES=ruby:rdoc.
- USE_RUBY_SETUP is replaces with USES=ruby:setup.
- RUBY_NO_BUILD_DEPENDS and RUBY_NO_RUN_DEPENDS are replaced with
USES=ruby:{build,none,run}.
- RUBY_REQUIRE isn't used anywhere, so removed.
- USES=gem now implies USES=ruby.
This is mainly the work of yasu@ at https://reviews.freebsd.org/D27863
I have just made some cosmetic changes and ran exp-run to test that the
tree is not in a BROKEN state.
Approved by: portmgr
Differential Revision: https://reviews.freebsd.org/D37925 |
3.1.3,1 30 Dec 2022 09:06:32
    |
Po-Chuan Hsieh (sunpoet)  |
lang/ruby31: Fix orphaned .timestamp in 6021649ff0cee1ea88e34b5444c2fe31031ca29a
When both CAPIDOCS and DOCS options are enabled, the following commands are
executed:
1. post-install-CAPIDOCS-on: removed the installed .timestamp (in STAGEDIR).
2. post-install-DOCS-on: copied the generated .timestamp (in capi directory) to
the STAGEDIR again.
Therefore, the installed .timestamp is orphaned.
To fix this, we remove both the generated and installed .timestamp in
post-install-CAPIDOCS-on:.
PR: 267775
Reported by: yasu |
3.1.3,1 09 Dec 2022 04:35:48
    |
Yasuhiro Kimura (yasu)  |
lang/ruby31: Update to 3.1.3
ReleaseNotes: https://www.ruby-lang.org/en/news/2022/11/24/ruby-3-1-3-released/
PR: 267979
Approved by: meta (ruby@)
MFH: 2022Q4
Security: 84ab03b6-6c20-11ed-b519-080027f5fec9 |
3.1.2_2,1 09 Dec 2022 04:34:59
    |
Yasuhiro Kimura (yasu)  |
lang/ruby31: Fix plist error when both CAPIDOCS and DOCS options are on.
When the both options are on, post-install-DOCS-on target is called
after post-install-CAPIDOCS-on has completed. And in the former files
under ${WRKSRC}/doc/ are copied to ${STAGEDIR}${RUBY_DOCDIR}. This
means files under ${WRKSRC}/doc/capi are copied to
${STAGEDIR}${RUBY_DOCDIR}/capi again. And of course
${WRKSRC}/doc/capi/.timestamp is included in them. As a result, even
though ${STAGEDIR}${RUBY_DOCDIR}/capi/.timestamp is removed in
post-install-CAPIDOCS-on target, it is detected as orphaned file at
check-plist phase. So fix it by adding 3rd argument to
${COPYTREE_SHARE} command so .timestamp is excluded from files to be
copied.
PR: 267775
Approved by: meta (ruby@)
Fixes: 6021649ff0ce lang/ruby31: Simplify CAPIDOCS handling |
3.1.2_2,1 09 Oct 2022 15:38:09
    |
Po-Chuan Hsieh (sunpoet)  |
lang/ruby31: Simplify CAPIDOCS handling |
3.1.2_2,1 22 Sep 2022 10:13:51
    |
Piotr Kubaj (pkubaj)  |
lang/ruby*: switch ruby ports to clang on powerpc with the same workaround that
arm uses |
3.1.2_1,1 10 Sep 2022 13:02:59
    |
Po-Chuan Hsieh (sunpoet)  |
lang/ruby31: Update comment |
3.1.2_1,1 10 Sep 2022 06:31:51
    |
Xin LI (delphij)  |
lang/ruby{27,30,31,32}: Improve qsort_r() detection.
This change merges the following upstream pull request into the Ruby
interpreter:
https://github.com/ruby/ruby/pull/6332
Adding this patch is no-op right now because we are not using POSIX (GNU)
qsort_r(3) interface yet. It will fix build when the change is applied.
Reviewed by: bapt (portmgr@), sunpoet (ruby@)
PR: ports/266227
MFH: 2022Q3
Differential Revision: https://reviews.freebsd.org/D36492 |
07 Sep 2022 21:58:51
    |
Stefan Eßer (se)  |
Remove WWW entries moved into port Makefiles
Commit b7f05445c00f has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.
This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.
Approved by: portmgr (tcberner) |
3.1.2_1,1 07 Sep 2022 21:10:59
    |
Stefan Eßer (se)  |
Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.
Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.
There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.
(Only the first 15 lines of the commit message are shown above ) |
3.1.2_1,1 30 Aug 2022 12:46:40
    |
Baptiste Daroussin (bapt)  |
lang/ruby*: add a patch to keep amd64-freebsd* as arch
In preparation for the update of config.guess/config.sub, where
amd64-portbld-freebsd14.0 is reported as x86_64-portbld-freebsd14.0,
Add a patch to keep the arch specific directory on amd64 being named amd64 |
3.1.2,1 23 Apr 2022 03:04:46
    |
Jung-uk Kim (jkim)  |
lang/ruby3[0-2]: Fix build with certain CPUTYPE
When CPUTYPE is set and the CPU supports lzcnt instruction, it fails to
build because x86intrin.h is not included. Fix the test to make it work
on FreeBSD.
PR: 260791
Approved by: ruby (maintainer timeout) |
3.1.2,1 16 Apr 2022 08:07:48
    |
Yasuhiro Kimura (yasu)  |
lang/ruby31: Update to 3.1.2
ReleaseNotes: https://www.ruby-lang.org/en/news/2022/04/12/ruby-3-1-2-released/
PR: 263253
Approved by: sunpoet (ruby@)
MFH: 2022Q2
Security: f22144d7-bad1-11ec-9cfe-0800270512f4
Security: 06ed6a49-bad4-11ec-9cfe-0800270512f4 |
3.1.1,1 16 Apr 2022 04:19:47
    |
Po-Chuan Hsieh (sunpoet)  |
lang/ruby31: Fix PLIST |
3.1.1,1 19 Mar 2022 07:07:46
    |
Yasuhiro Kimura (yasu)  |
lang/ruby31: Update to 3.1.1
Changes: https://github.com/ruby/ruby/compare/v3_1_0...v3_1_1
PR: 262051
Approved by: maintainer timeout |
3.1.0,1 23 Jan 2022 01:25:12
    |
Piotr Kubaj (pkubaj)  |
lang/ruby{2,3}*: enable dtrace on powerpc64le and bump PORTREVISION
Since dtrace is currently disabled on ruby3*, bump PORTREVISION only on ruby2* |
3.1.0,1 18 Jan 2022 00:24:30
    |
Piotr Kubaj (pkubaj)  |
lang/ruby{2,3}*: enable dtrace on powerpc and powerpc64 |
3.1.0,1 26 Dec 2021 00:32:11
    |
Yasuhiro Kimura (yasu)  |
lang/ruby31: Update to 3.1.0
ReleaseNotes: https://www.ruby-lang.org/en/news/2021/12/25/ruby-3-1-0-released/ |
3.1.0.p1,1 19 Dec 2021 00:34:57
    |
Yasuhiro Kimura (yasu)  |
lang/ruby31: Add new port
Add preview1 of Ruby 3.3 series.
To handle pre-release version, Mk/bsd.ruby.mk is changed as following.
* New variable RUBY_DISTVERSION is introduced. It keeps DISTVERSION of
each ruby port (lang/rubyXY).
* The value of RUBY_VERSION, RUBY_PORTVERSION, RUBY_WRKSRC and
RUBY_DISTNAME is set by using that of RUBY_DISTVERSION
ReleaseNotes: https://www.ruby-lang.org/en/news/2021/11/09/ruby-3-1-0-preview1-released/
PR: 259746
Approved by: maintainer timeout (> 1 month) |