aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/ruby-erbscan/Makefile
blob: 0c115756aaf783297cf5896696a6df4dab066ebf (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
# Created by: Shinsuke Matsui (<smatsui@karashi.org>)
# $FreeBSD$

PORTNAME=   erbscan
PORTVERSION=    0.0.20030723b
CATEGORIES= textproc ruby
MASTER_SITES=   http://raa.ruby-lang.org/cache/erbscan/
PKGNAMEPREFIX=  ${RUBY_PKGNAMEPREFIX}
DIST_SUBDIR=    ruby

MAINTAINER= smatsui@karashi.org
COMMENT=    ERB compiler accelerator

DEPRECATED= Does not work with Ruby 1.9
EXPIRATION_DATE=    2013-10-10

USE_RUBY=   yes
USE_RUBY_EXTCONF=   yes

INSTALL_TARGET= site-install

NO_STAGE=   yes
.include <bsd.port.pre.mk>

.if ${RUBY_VER} == 1.9
BROKEN= does not build with ruby 1.9
.endif

post-patch:
    @${RUBY} -i -pe 'sub(/malloc\.h/, "stdlib.h")' ${WRKSRC}/erbscan.c

post-install:
.if !defined(NOPORTDOCS)
    @${MKDIR} ${RUBY_MODDOCDIR}/ja
    ${INSTALL_DATA} ${WRKSRC}/README.ja ${RUBY_MODDOCDIR}/ja/
.endif

.include <bsd.port.post.mk>