blob: 358f65b96184559aa3f91ec1c75278f611437ded (
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
|
# $NetBSD: Makefile,v 1.18 2011/02/21 16:01:15 taca Exp $
DISTNAME= racc-${RACC_VERSION}
PKGREVISION= 1
CATEGORIES= devel ruby
MASTER_SITES= http://rubyforge.org/frs/download.php/49028/
EXTRACT_SUFX= .tgz
MAINTAINER= taca@NetBSD.org
HOMEPAGE= http://i.loveruby.net/en/projects/racc/
COMMENT= LALR(1) parser generator for Ruby
LICENSE= gnu-lgpl-v2
PKG_DESTDIR_SUPPORT= user-destdir
CONFLICTS+= ruby[1-9][0-9]-racc-*
USE_RUBY_SETUP= yes
RACC_VERSION= 1.4.6
CONFIGURE_ARGS+= --siteruby=${PREFIX}/${RUBY_VENDORLIB_BASE} \
--siterubyver=${PREFIX}/${RUBY_VENDORLIB} \
--siterubyverarch=${PREFIX}/${RUBY_VENDORARCHLIB}
INSTALLATION_DIRS= ${RUBY_DOC}/racc/en ${RUBY_DOC}/racc/ja \
${RUBY_EG}/racc
DOCS= ChangeLog README.en.rdoc README.ja.rdoc TODO
EXAMPLES= array.y array2.y calc-ja.y calc.y conflict.y hash.y lalr.y \
lists.y syntax.y yyerr.y
post-install:
.for f in ${DOCS}
${INSTALL_DATA} ${WRKSRC}/${f} ${DESTDIR}${PREFIX}/${RUBY_DOC}/racc
.endfor
${INSTALL_DATA} ${WRKSRC}/doc/en/* \
${DESTDIR}${PREFIX}/${RUBY_DOC}/racc/en
${INSTALL_DATA} ${WRKSRC}/doc/ja/* \
${DESTDIR}${PREFIX}/${RUBY_DOC}/racc/ja
.for f in ${EXAMPLES}
${INSTALL_DATA} ${WRKSRC}/sample/${f} \
${DESTDIR}${PREFIX}/${RUBY_EG}/racc
.endfor
.include "../../lang/ruby/modules.mk"
.include "../../mk/bsd.pkg.mk"
|