[Bug 260788] Metaport proposal w/ patch - lang/ruby-platform - provide a single installation point for Ruby platform tools (irb, rdoc, ...)

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 29 Dec 2021 08:30:58 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=260788

            Bug ID: 260788
           Summary: Metaport proposal w/ patch - lang/ruby-platform -
                    provide a single installation point for Ruby platform
                    tools (irb, rdoc, ...)
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: lab+bsd@thinkum.space

Created attachment 230528
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=230528&action=edit
Patch for adding a metaport lang/ruby-platform

This patch would provide a new metaport, lang/ruby-platform. 

This port would provide a single installation point under any Ruby version, for
installing ports providing command-line tools and gems generally available from
a Ruby source build.

The port provides a build option, enabled by default, such that would ensure
that ports for platform-bundled gems will be included as dependencies of the
metapor (e.g minitest, rss, other gems bundled with Ruby). With this option
disabled, only the command-line tools will be used as dependencies (e.g irb,
rdoc, ...)

This is the diff for a metaport I'd mentioned after the bug report
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=237833

Known Limitations

- This initial patch does not provide any dependency on rubygem-ebs. This is a
known deficiency, which candidly I've noticed while submitting the initial
patch here
- As at least a placeholder, I've used a personal email address for the
maintainer field, in this patch
- The section of the Makefile pertaining to the erb command may need update. I
have a patch available and will try to add that shortly, for providing the erb
command line tool via the rubygem-erb port. Presently, the erb command has been
provided in each individual Ruby platform port (e.g ruby26 ... ruby31).  The
patch for the rubygem-erb port is fairly trivial, though I've not added the
necessary patching for the ruby* platform ports as yet. This Makefile should be
compatible with any of the above

Rationale

While I've not extensively tested this Makefile, I hope that this metaport - or
any similar metaport - that it may serve to simplify some workflows for
installing and maintaining a Ruby development environment on FreeBSD.  

Notwithstanding than the concern about how the erb command is provided, it does
not introduce any new dependencies in Ruby platform ports. Simply, it depends
on the platform port for the Ruby version selected at time of build, as well as
 those corresponding gem ports such that would then be installed for that Ruby
version. 


HTH
- Sean

-- 
You are receiving this mail because:
You are the assignee for the bug.