aboutsummaryrefslogtreecommitdiffstats
path: root/lang/ruby14-irb/Makefile
blob: 686097d6ee6cc90e337d41ff2eb30c2e91399bcc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# New ports collection makefile for:    irb
# Date created:     19 April 1999
# Whom:         Yasuhiro Fukuma <yasuf@big.or.jp>
#
# $FreeBSD$
#

PORTNAME=   irb
PORTVERSION=    0.6.1
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
DIST_SUBDIR=    ruby

MAINTAINER= yasuf@big.or.jp

RUN_DEPENDS=    ruby:${PORTSDIR}/lang/ruby

NO_BUILD=   yes

WRKSRC=     ${WRKDIR}/irb
PLIST_SUB+= RUBY_VER="${RUBY_VER}"

RUBY?=      ${LOCALBASE}/bin/ruby
RUBY_VER?=  1.4

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
    ${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>