aboutsummaryrefslogtreecommitdiff
path: root/devel/rubygem-irb/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'devel/rubygem-irb/Makefile')
-rw-r--r--devel/rubygem-irb/Makefile16
1 files changed, 12 insertions, 4 deletions
diff --git a/devel/rubygem-irb/Makefile b/devel/rubygem-irb/Makefile
index 7cb5869986c4..c726239193e7 100644
--- a/devel/rubygem-irb/Makefile
+++ b/devel/rubygem-irb/Makefile
@@ -2,6 +2,7 @@
PORTNAME= irb
PORTVERSION= 1.2.3
+PORTREVISION= 1
CATEGORIES= devel rubygems
MASTER_SITES= RG
@@ -20,12 +21,19 @@ NO_ARCH= yes
.include <bsd.port.pre.mk>
-.if ${RUBY_VER} < 2.6
-IGNORE= irb is included in lang/${RUBY_NAME}
-.endif
+.if ${RUBY_VER} >= 2.7
+PLIST_FILES= bin/irb \
+ share/man/man1/irb.1.gz
-# irb executable is installed by ruby port
+post-install:
+ ${MKDIR} ${STAGEDIR}${PREFIX}/share/man/man1
+ ${INSTALL_DATA} ${WRKSRC}/man/irb.1
+.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>