because they're provided as "default gem" since Ruby 2.6.
We provide "default gem"s as gem ports rather than a part of lang/ruby*
port. files/patch-tool_rbinstall.rb makes not to install such default gems
however hollow wrapper scripts bin/{irb,ri,rdoc} and their manpages were
still left.
This commit intend to move out such wrapper scripts and manpages to gem
ports completely.
PR: 243888
Submitted by: Yasuhiro KIMURA <yasu@utahime.org> (initial revision)
meta (myself)
Differential Revision: https://reviews.freebsd.org/D23514
34 lines
708 B
Makefile
34 lines
708 B
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= rdoc
|
|
PORTVERSION= 6.1.2
|
|
PORTREVISION= 1
|
|
CATEGORIES= devel rubygems
|
|
MASTER_SITES= RG
|
|
|
|
MAINTAINER= ruby@FreeBSD.org
|
|
COMMENT= RDoc produces HTML and command-line documentation for Ruby projects
|
|
|
|
LICENSE= GPLv2 RUBY
|
|
LICENSE_COMB= dual
|
|
LICENSE_FILE_RUBY= ${WRKSRC}/LICENSE.rdoc
|
|
|
|
USES= gem
|
|
USE_RUBY= yes
|
|
|
|
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.post.mk>
|