summaryrefslogtreecommitdiff
path: root/devel/ruby-racc/Makefile
blob: 113a076c332d41f33ce48cdd30d82d4a41209dce (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
# $NetBSD: Makefile,v 1.3 2001/12/30 17:13:47 taca Exp $
# FreeBSD: ports/devel/ruby-racc/Makefile,v 1.20 2001/01/27 09:54:30 knu Exp

DISTNAME=	${RACC_DISTFILE}
PKGNAME?=	${RACC_NAME}-${RACC_VERSION}
CATEGORIES=	devel
MASTER_SITES=	${RACC_SITES}

MAINTAINER=	taca@netbsd.org
HOMEPAGE=	${RACC_HOMEPAGE}
COMMENT=	LALR(1) parser generator for Ruby

DEPENDS+= ${RACC_NAME}-runtime>=${RACC_VERSION}:../../devel/ruby-racc-runtime
DEPENDS+= ${RUBY_PKGNAMEPREFIX}strscan>=0.6.1:../../devel/ruby-strscan

CONFIGURE_ARGS+=--with=racc

DOCS=		BUGS.en BUGS.ja README.en README.ja
DOCS_EN=	changes.html command.html debug.html grammar.html index.html \
		parser.html usage.html
DOCS_JA=	changes.html command.html debug.html grammar.html index.html \
		parser.html usage.html
EXAMPLES=	array.y array2.y calc-ja.y calc.y conflict.y hash.y lalr.y \
		syntax.y yyerr.y

pre-configure:
	${CP} -p ${WRKSRC}/packages/racc/misc/* ${WRKSRC}/packages/racc/bin

post-install:
	${INSTALL_DATA_DIR} ${RUBY_EXAMPLESDIR}/racc
.for f in ${EXAMPLES}
	${INSTALL_DATA} ${WRKSRC}/packages/racc/sample/${f} \
		${RUBY_EXAMPLESDIR}/racc
.endfor
	${INSTALL_DATA_DIR} ${RUBY_DOCDIR}/racc/en
	${INSTALL_DATA_DIR} ${RUBY_DOCDIR}/racc/ja
.for f in ${DOCS}
	${INSTALL_DATA} ${WRKSRC}/packages/racc/${f} ${RUBY_DOCDIR}/racc
.endfor
.for f in ${DOCS_EN}
	${INSTALL_DATA} ${WRKSRC}/packages/racc/doc.en/${f} \
		${RUBY_DOCDIR}/racc/en
.endfor
.for f in ${DOCS_JA}
	${INSTALL_DATA} ${WRKSRC}/packages/racc/doc.ja/${f} \
		${RUBY_DOCDIR}/racc/ja
.endfor

.include "Makefile.common"