Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F157135834
D23514.id67807.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
3 KB
Referenced Files
None
Subscribers
None
D23514.id67807.diff
View Options
Index: Mk/bsd.ruby.mk
===================================================================
--- Mk/bsd.ruby.mk
+++ Mk/bsd.ruby.mk
@@ -176,7 +176,7 @@
# Ruby 2.7
#
RUBY_VERSION= 2.7.0
-RUBY_PORTREVISION= 1
+RUBY_PORTREVISION= 2
RUBY_PORTEPOCH= 1
RUBY27= "" # PLIST_SUB helpers
Index: devel/rubygem-irb/Makefile
===================================================================
--- devel/rubygem-irb/Makefile
+++ devel/rubygem-irb/Makefile
@@ -2,6 +2,7 @@
PORTNAME= irb
PORTVERSION= 1.2.1
+PORTREVISION= 1
CATEGORIES= devel rubygems
MASTER_SITES= RG
@@ -20,12 +21,14 @@
.include <bsd.port.pre.mk>
-.if ${RUBY_VER} < 2.6
-IGNORE= irb is included in lang/${RUBY_NAME}
-.endif
-
-# irb executable is installed by ruby port
+.if ${RUBY_VER} >= 2.7
+PLIST_FILES= bin/irb
+.elif ${RUBY_VER} == 2.6
+# WIP: irb wrapper script is installed by ruby port so far, see bug 241554, 237833
post-install:
${RM} ${STAGEDIR}${PREFIX}/bin/irb
+.else
+IGNORE= ${PORTNAME} is included in lang/${RUBY_NAME}
+.endif
.include <bsd.port.post.mk>
Index: devel/rubygem-rdoc/Makefile
===================================================================
--- devel/rubygem-rdoc/Makefile
+++ devel/rubygem-rdoc/Makefile
@@ -2,6 +2,7 @@
PORTNAME= rdoc
PORTVERSION= 6.1.2
+PORTREVISION= 1
CATEGORIES= devel rubygems
MASTER_SITES= RG
@@ -17,7 +18,16 @@
NO_ARCH= yes
+.include <bsd.port.pre.mk>
+
+.if ${RUBY_VER} >= 2.7
+PLIST_FILES= bin/rdoc bin/ri
+.elif ${RUBY_VER} == 2.6
+# WIP: rdoc wrapper script is installed by ruby port so far, see bug 241554, 237833
post-install:
${RM} ${STAGEDIR}${PREFIX}/bin/rdoc ${STAGEDIR}${PREFIX}/bin/ri
+.else
+IGNORE= ${PORTNAME} is included in lang/${RUBY_NAME}
+.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
Index: lang/ruby27/Makefile
===================================================================
--- lang/ruby27/Makefile
+++ lang/ruby27/Makefile
@@ -118,8 +118,8 @@
PLIST_SUB+= IF_DEFAULT="@comment "
.endif
-INSTALLED_SCRIPTS= erb irb rdoc ri ruby
-INSTALLED_MANUALS= erb irb ri ruby
+INSTALLED_SCRIPTS= erb ruby
+INSTALLED_MANUALS= erb ruby
EXTSAMPLES= bigdecimal/sample/*.rb
@@ -133,7 +133,9 @@
post-patch:
# We get these from other ports
-.for d in bin/bundle* bin/*racc* lib/bundler* libexec/bundler* man/bundle* bin/gem man/gemfile* \
+.for d in bin/bundle* bin/gem bin/*racc* bin/irb bin/rdoc bin/ri \
+ lib/bundler* libexec/bundler* \
+ man/bundle* man/gemfile* man/irb.1 man/ri.1 \
ext/dbm ext/gdbm ext/win32ole
@${RM} -r ${BUILD_WRKSRC}/${d}
.endfor
Index: lang/ruby27/pkg-plist
===================================================================
--- lang/ruby27/pkg-plist
+++ lang/ruby27/pkg-plist
@@ -1,11 +1,5 @@
%%IF_DEFAULT%%bin/erb
bin/erb%%RUBY_SUFFIX%%
-%%IF_DEFAULT%%bin/irb
-bin/irb%%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%%
include/ruby-%%RUBY_VER%%/%%RUBY_ARCH%%/rb_mjit_min_header-%%RUBY_VERSION%%.h
@@ -960,10 +954,6 @@
libdata/pkgconfig/ruby-%%RUBY_VER%%.pc
%%IF_DEFAULT%%man/man1/erb.1.gz
man/man1/erb%%RUBY_SUFFIX%%.1.gz
-%%IF_DEFAULT%%man/man1/irb.1.gz
-man/man1/irb%%RUBY_SUFFIX%%.1.gz
-%%IF_DEFAULT%%man/man1/ri.1.gz
-man/man1/ri%%RUBY_SUFFIX%%.1.gz
%%IF_DEFAULT%%man/man1/ruby.1.gz
man/man1/%%RUBY_NAME%%.1.gz
%%DOCS%%%%RUBY_DOCDIR%%/COPYING
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, May 19, 4:41 PM (12 h, 17 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33321034
Default Alt Text
D23514.id67807.diff (3 KB)
Attached To
Mode
D23514: lang/ruby27: throw out {irb,ri,rdoc} from lang/ruby27
Attached
Detach File
Event Timeline
Log In to Comment