aboutsummaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorChris Piazza <cpiazza@FreeBSD.org>1999-08-26 21:09:21 +0000
committerChris Piazza <cpiazza@FreeBSD.org>1999-08-26 21:09:21 +0000
commit3528de335bcf99617a193323481c15078d58d8de (patch)
tree93eb168656bda4a6a42f8fb04bd453e9a7a7ad0d /lang
parent5a665241e9aae020fb41352fb0bfb881a2369e00 (diff)
downloadports-3528de335bcf99617a193323481c15078d58d8de.tar.gz
ports-3528de335bcf99617a193323481c15078d58d8de.zip
Cope with ruby 1.4
PR: 13306 Submitted by: maintainer
Notes
Notes: svn path=/head/; revision=21003
Diffstat (limited to 'lang')
-rw-r--r--lang/ruby14-irb/Makefile8
-rw-r--r--lang/ruby14-irb/pkg-plist24
2 files changed, 18 insertions, 14 deletions
diff --git a/lang/ruby14-irb/Makefile b/lang/ruby14-irb/Makefile
index 790617d89a6a..bbb96edbdf85 100644
--- a/lang/ruby14-irb/Makefile
+++ b/lang/ruby14-irb/Makefile
@@ -21,8 +21,10 @@ MAINTAINER= yasuf@big.or.jp
RUN_DEPENDS= ruby:${PORTSDIR}/lang/ruby
WRKSRC= ${WRKDIR}/irb
+PLIST_SUB+= RUBY_VER="${RUBY_VER}"
RUBY= ${LOCALBASE}/bin/ruby
+RUBY_VER= 1.4
do-build:
( cd ${WRKSRC}; \
@@ -31,9 +33,11 @@ do-build:
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/irb ${PREFIX}/bin
- ${MKDIR} ${PREFIX}/lib/ruby/irb
- ${INSTALL_DATA} ${WRKSRC}/*.rb ${PREFIX}/lib/ruby/irb
+ ${MKDIR} ${PREFIX}/lib/ruby/${RUBY_VER}/irb
+ ${INSTALL_DATA} ${WRKSRC}/*.rb ${PREFIX}/lib/ruby/${RUBY_VER}/irb
+.if !defined(NOPORTDOCS)
${MKDIR} ${PREFIX}/share/doc/ruby/irb
${INSTALL_DATA} ${WRKSRC}/README* ${PREFIX}/share/doc/ruby/irb
+.endif
.include <bsd.port.mk>
diff --git a/lang/ruby14-irb/pkg-plist b/lang/ruby14-irb/pkg-plist
index b348aa09dcf0..fed7ab9567f7 100644
--- a/lang/ruby14-irb/pkg-plist
+++ b/lang/ruby14-irb/pkg-plist
@@ -1,16 +1,16 @@
bin/irb
-lib/ruby/irb/frame.rb
-lib/ruby/irb/input-method.rb
-lib/ruby/irb/loader.rb
-lib/ruby/irb/main.rb
-lib/ruby/irb/multi-irb.rb
-lib/ruby/irb/rtags.rb
-lib/ruby/irb/ruby-lex.rb
-lib/ruby/irb/ruby-token.rb
-lib/ruby/irb/slex.rb
-lib/ruby/irb/version.rb
-lib/ruby/irb/xmp.rb
-@dirrm lib/ruby/irb
+lib/ruby/%%RUBY_VER%%/irb/frame.rb
+lib/ruby/%%RUBY_VER%%/irb/input-method.rb
+lib/ruby/%%RUBY_VER%%/irb/loader.rb
+lib/ruby/%%RUBY_VER%%/irb/main.rb
+lib/ruby/%%RUBY_VER%%/irb/multi-irb.rb
+lib/ruby/%%RUBY_VER%%/irb/rtags.rb
+lib/ruby/%%RUBY_VER%%/irb/ruby-lex.rb
+lib/ruby/%%RUBY_VER%%/irb/ruby-token.rb
+lib/ruby/%%RUBY_VER%%/irb/slex.rb
+lib/ruby/%%RUBY_VER%%/irb/version.rb
+lib/ruby/%%RUBY_VER%%/irb/xmp.rb
+@dirrm lib/ruby/%%RUBY_VER%%/irb
share/doc/ruby/irb/README
share/doc/ruby/irb/README-add
share/doc/ruby/irb/README-install