blob: 8414901b5c9b7ec2c974222e0cc6bc9486d4fb9a (
plain)
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
|
# $NetBSD: Makefile,v 1.11 2005/02/17 15:11:23 taca Exp $
# FreeBSD: ports/textproc/eruby/Makefile,v 1.9 2000/12/12 14:04:26 knu Exp
DISTNAME= eruby-${ERUBY_VERSION}
PKGNAME= ${RUBY_PKGPREFIX}-${DISTNAME}
PKGREVISION= 3
CATEGORIES= textproc ruby
MASTER_SITES= http://www.modruby.net/archive/
MAINTAINER= taca@NetBSD.org
HOMEPAGE= http://www.modruby.net/
COMMENT= Interprets Ruby code embedded in a text file
# manual page conflicts.
CONFLICTS+= ruby[1-9][0-9]-eruby-*
USE_BUILDLINK3= yes
RUBY_HAS_ARCHLIB= yes
ERUBY_VERSION= 1.0.5
HAS_CONFIGURE= yes
CONFIGURE_SCRIPT= ${RUBY} configure.rb
CONFIGURE_ARGS= --enable-shared \
--with-charset="${ERUBY_DEFAULT_CHARSET}"
INSTALL_TARGET= site-install
PLIST_SUBST+= ERUBY_MAJOR=${ERUBY_MAJOR} \
ERUBY_MINOR=${ERUBY_MINOR} \
ERUBY_TEENY=${ERUBY_TEENY}
.include "../../mk/bsd.prefs.mk"
ERUBY_DEFAULT_CHARSET?= ISO-8859-1
ERUBY_MAJOR= ${ERUBY_VERSION:C/([0-9]+)\.([0-9]+)\.([0-9]+)/\1/}
ERUBY_MINOR= ${ERUBY_VERSION:C/([0-9]+)\.([0-9]+)\.([0-9]+)/\2/}
ERUBY_TEENY= ${ERUBY_VERSION:C/([0-9]+)\.([0-9]+)\.([0-9]+)/\3/}
MAN1= eruby.1
DOCS= ChangeLog README.en README.ja eruby.rd eruby.html
EXAMPLES= e2r.rb foo.rhtml test.rb test.rhtml
post-build:
cd ${WRKSRC}; ${RUBY_RD} eruby.rd > eruby.html
post-install:
${INSTALL_DATA_DIR} ${RUBY_DOCDIR}/eruby
.for f in ${DOCS}
${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/eruby
.endfor
${INSTALL_DATA_DIR} ${RUBY_EXAMPLESDIR}/eruby
.for f in ${EXAMPLES}
${INSTALL_DATA} ${WRKSRC}/examples/${f} ${RUBY_EXAMPLESDIR}/eruby
.endfor
.include "../../lang/ruby/modules.mk"
.include "../../textproc/ruby-rdtool/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|