lang/ruby27: throw out racc from lang/ruby27

because racc is provied as "default gem" since Ruby 2.7 [1].

We provide default gems as gem ports rather than a part of lang/ruby* port.
files/patch-tool_rbinstall.rb does that. bin/*racc* are leftover wrapper
script that the patch didn't remove default gem racc completely.

racc is provided by devel/rubygem-racc. To avoid conflict racc gem port vs
ruby port, throw it out completely from ruby port.

[1] https://ruby-trunk-changes.hatenablog.com/entry/ruby_trunk_changes_20190620

PR:		242359 237833
Submitted by:	Yasuhiro KIMURA <yasu@utahime.org> (based on)
This commit is contained in:
Koichiro Iwao
2020-01-29 02:25:23 +00:00
parent bebae07e9f
commit 8e949f4d2e
3 changed files with 3 additions and 9 deletions

View File

@@ -176,7 +176,7 @@ RUBY26= "" # PLIST_SUB helpers
# Ruby 2.7
#
RUBY_VERSION= 2.7.0
RUBY_PORTREVISION= 0
RUBY_PORTREVISION= 1
RUBY_PORTEPOCH= 1
RUBY27= "" # PLIST_SUB helpers

View File

@@ -118,7 +118,7 @@ PKGNAMESUFFIX= ${RUBY_VER:C/\.//}
PLIST_SUB+= IF_DEFAULT="@comment "
.endif
INSTALLED_SCRIPTS= erb irb racc racc2y rdoc ri ruby y2racc
INSTALLED_SCRIPTS= erb irb rdoc ri ruby
INSTALLED_MANUALS= erb irb ri ruby
EXTSAMPLES= bigdecimal/sample/*.rb
@@ -133,7 +133,7 @@ RB_SET_CONF_VAR=${SH} -c '${REINPLACE_CMD} -E -e "s,(CONFIG\[\"$$0\"\][[:space:]
post-patch:
# We get these from other ports
.for d in bin/bundle* lib/bundler* libexec/bundler* man/bundle* bin/gem man/gemfile* \
.for d in bin/bundle* bin/*racc* lib/bundler* libexec/bundler* man/bundle* bin/gem man/gemfile* \
ext/dbm ext/gdbm ext/win32ole
@${RM} -r ${BUILD_WRKSRC}/${d}
.endfor

View File

@@ -2,18 +2,12 @@
bin/erb%%RUBY_SUFFIX%%
%%IF_DEFAULT%%bin/irb
bin/irb%%RUBY_SUFFIX%%
%%IF_DEFAULT%%bin/racc
bin/racc%%RUBY_SUFFIX%%
%%IF_DEFAULT%%bin/racc2y
bin/racc2y%%RUBY_SUFFIX%%
%%IF_DEFAULT%%bin/rdoc
bin/rdoc%%RUBY_SUFFIX%%
%%IF_DEFAULT%%bin/ri
bin/ri%%RUBY_SUFFIX%%
%%IF_DEFAULT%%bin/ruby
bin/ruby%%RUBY_SUFFIX%%
%%IF_DEFAULT%%bin/y2racc
bin/y2racc%%RUBY_SUFFIX%%
include/ruby-%%RUBY_VER%%/%%RUBY_ARCH%%/rb_mjit_min_header-%%RUBY_VERSION%%.h
include/ruby-%%RUBY_VER%%/%%RUBY_ARCH%%/ruby/config.h
include/ruby-%%RUBY_VER%%/ruby.h