diff options
Diffstat (limited to 'lang/ruby14-irb/Makefile')
-rw-r--r-- | lang/ruby14-irb/Makefile | 8 |
1 files changed, 6 insertions, 2 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> |