aboutsummaryrefslogtreecommitdiff
path: root/devel/rubygem-rdoc/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'devel/rubygem-rdoc/Makefile')
-rw-r--r--devel/rubygem-rdoc/Makefile12
1 files changed, 11 insertions, 1 deletions
diff --git a/devel/rubygem-rdoc/Makefile b/devel/rubygem-rdoc/Makefile
index 946b04057e2a..358ce11d3471 100644
--- a/devel/rubygem-rdoc/Makefile
+++ b/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 @@ 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.mk>
+.include <bsd.port.post.mk>