1999-07-12 22:56:48 -04:00
|
|
|
# New ports collection makefile for: irb
|
1999-11-13 20:42:00 -05:00
|
|
|
# Version required: 0.6.1
|
1999-07-12 22:56:48 -04:00
|
|
|
# Date created: 19 April 1999
|
|
|
|
# Whom: Yasuhiro Fukuma <yasuf@big.or.jp>
|
|
|
|
#
|
1999-08-25 02:35:40 -04:00
|
|
|
# $FreeBSD$
|
1999-07-12 22:56:48 -04:00
|
|
|
#
|
|
|
|
|
1999-11-13 20:42:00 -05:00
|
|
|
DISTNAME= irb-0.6.1
|
1999-07-12 22:56:48 -04:00
|
|
|
CATEGORIES= lang
|
|
|
|
MASTER_SITES= ftp://ftp.netlab.co.jp/pub/lang/ruby/contrib/ \
|
|
|
|
ftp://ftp.TokyoNet.AD.JP/pub/misc/ruby/contrib/ \
|
|
|
|
ftp://ftp.iij.ad.jp/pub/lang/ruby/contrib/ \
|
|
|
|
ftp://blade.nagaokaut.ac.jp/pub/lang/ruby/contrib/ \
|
|
|
|
ftp://ftp.krnet.ne.jp/pub/ruby/contrib/ \
|
|
|
|
ftp://mirror.nucba.ac.jp/mirror/ruby/contrib/
|
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
|
|
|
MAINTAINER= yasuf@big.or.jp
|
|
|
|
|
|
|
|
RUN_DEPENDS= ruby:${PORTSDIR}/lang/ruby
|
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/irb
|
1999-08-26 17:09:21 -04:00
|
|
|
PLIST_SUB+= RUBY_VER="${RUBY_VER}"
|
1999-07-12 22:56:48 -04:00
|
|
|
|
|
|
|
RUBY= ${LOCALBASE}/bin/ruby
|
1999-08-26 17:09:21 -04:00
|
|
|
RUBY_VER= 1.4
|
1999-07-12 22:56:48 -04:00
|
|
|
|
1999-11-13 20:42:00 -05:00
|
|
|
post-patch:
|
|
|
|
${RM} -f ${WRKSRC}/instirb.rb
|
|
|
|
|
1999-07-12 22:56:48 -04:00
|
|
|
do-build:
|
|
|
|
( cd ${WRKSRC}; \
|
|
|
|
${MV} irb.rb irb.tmpl; \
|
|
|
|
${SED} -e '1s,^#!.*$$,#!${RUBY},' irb.tmpl > irb )
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/irb ${PREFIX}/bin
|
1999-08-26 17:09:21 -04:00
|
|
|
${MKDIR} ${PREFIX}/lib/ruby/${RUBY_VER}/irb
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/*.rb ${PREFIX}/lib/ruby/${RUBY_VER}/irb
|
|
|
|
.if !defined(NOPORTDOCS)
|
1999-07-12 22:56:48 -04:00
|
|
|
${MKDIR} ${PREFIX}/share/doc/ruby/irb
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/README* ${PREFIX}/share/doc/ruby/irb
|
1999-08-26 17:09:21 -04:00
|
|
|
.endif
|
1999-07-12 22:56:48 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|