1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-31 21:57:12 +00:00
freebsd-ports/lang/ruby14-irb/Makefile

42 lines
893 B
Makefile
Raw Normal View History

# New ports collection makefile for: irb
# Date created: 19 April 1999
# Whom: Yasuhiro Fukuma <yasuf@big.or.jp>
#
1999-08-25 06:35:40 +00:00
# $FreeBSD$
#
PORTNAME= irb
PORTVERSION= 0.6.1
CATEGORIES= lang ruby
2000-09-05 12:44:13 +00:00
MASTER_SITES= ${MASTER_SITE_RUBY}
MASTER_SITE_SUBDIR= contrib
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
EXTRACT_SUFX= .tgz
DIST_SUBDIR= ruby
MAINTAINER= yasuf@big.or.jp
RUBY_VER= 1.4
USE_RUBY= yes
NO_BUILD= yes
WRKSRC= ${WRKDIR}/${PORTNAME}
post-patch:
${PERL} -i -pe '$$. == 1 && s,^#!\s*\S+,#!${RUBY},' ${WRKSRC}/irb.rb
${RM} -f ${WRKSRC}/instirb.rb
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/irb.rb ${PREFIX}/bin/irb${_RUBY_SUFFIX}
${LN} -fs irb${_RUBY_SUFFIX} ${PREFIX}/bin/irb
${MKDIR} ${RUBY_LIBDIR}/irb
${INSTALL_DATA} ${WRKSRC}/*.rb ${RUBY_LIBDIR}/irb
.if !defined(NOPORTDOCS)
${MKDIR} ${RUBY_DOCDIR}/irb
${INSTALL_DATA} ${WRKSRC}/README* ${RUBY_DOCDIR}/irb
.endif
.include <bsd.port.mk>