aboutsummaryrefslogtreecommitdiffstats
path: root/lang/ruby-perl/Makefile
blob: d26c217a9c968738dd820904538a111613b320be (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
46
47
48
49
50
51
52
53
54
55
56
57
58
# New ports collection makefile for:    Ruby-perl
# Date created:     11 Aug 2000
# Whom:         Akinori MUSHA aka knu <knu@idaemons.org>
#
# $FreeBSD$
#

PORTNAME=   perl
PORTVERSION=    0.2.9
CATEGORIES= lang ruby perl5
MASTER_SITES=   http://www.yoshidam.net/
PKGNAMEPREFIX=  ${RUBY_PKGNAMEPREFIX}
DIST_SUBDIR=    ruby

MAINTAINER= ruby@FreeBSD.org
COMMENT=    A Ruby extension module to use the functions of Perl from Ruby

DEPRECATED= Doesn't work with Ruby 1.9
EXPIRATION_DATE=    2011-08-03

USE_PERL5=  yes
USE_RUBY=   yes
USE_RUBY_EXTCONF=   yes

WRKSRC=     ${WRKDIR}/${PORTNAME}
CONFIGURE_ARGS= --with-libperl=/usr/lib/libperl.so
INSTALL_TARGET= site-install

EXAMPLES=   htmlparse.rb    http.rb     perllib.rb  ping.rb \
        test.rb     xmlparser.rb

do-configure:
    @cd ${WRKSRC}/Ruby; \
    ${PERL} Makefile.PL

post-build:
    @cd ${WRKSRC}/Ruby; \
    ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE}

post-install:
    @cd ${WRKSRC}/Ruby; \
    ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} pure_install
.if !defined(NOPORTEXAMPLES)
    ${MKDIR} ${RUBY_MODEXAMPLESDIR}
.for f in ${EXAMPLES}
    ${INSTALL_DATA} ${WRKSRC}/samples/${f} ${RUBY_MODEXAMPLESDIR}/
.endfor
.endif
.if !defined(NOPORTDOCS)
    ${MKDIR} ${RUBY_MODDOCDIR}/ja/
    ${INSTALL_DATA} ${WRKSRC}/README.ja ${RUBY_MODDOCDIR}/ja/
.endif

.include <bsd.port.pre.mk>
.if ${RUBY_VER} == 1.9
BROKEN= does not build with ruby 1.9
.endif
.include <bsd.port.post.mk>