summaryrefslogtreecommitdiff
path: root/textproc/ruby-rttool/Makefile
blob: c58ea6073abb98c255ab6668281afe6c2261a344 (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
# $NetBSD: Makefile,v 1.2 2001/07/11 16:37:08 taca Exp $

DISTNAME=	rttool-${VERSION}
PKGNAME=	${RUBY_PKGNAMEPREFIX}${DISTNAME}
CATEGORIES=	textproc
MASTER_SITES=	http://www.ruby-lang.org/~rubikitch/archive/

MAINTAINER=	taca@netbsd.org
HOMEPAGE=	http://www.ruby-lang.org/~rubikitch/computer/rt.html
COMMENT=	RT to HTML (and hopefully LaTeX in future) table converter

DEPENDS+=	${RUBY_PKGNAMEPREFIX}optparse>=0.7:../../devel/ruby-optparse
DEPENDS+=	w3m>=0.2.1:../../www/w3m

DIST_SUBDIR=	ruby
VERSION=	0.1.4
USE_RUBY_SETUP=	# defined

REPLACE_RUBY=	bin/rt/rt2 lib/rt/rt2html-lib.rb lib/rt/rt2txt-lib.rb \
		lib/rt/rtparser-test.rb lib/rt/rtparser.rb \
		lib/rt/rtvisitor.rb lib/rt/w3m.rb

DOCS_JA=	rt.html rt.rd

pre-configure:
	${RM} -f ${WRKSRC}/setup/rt.rb

post-install:
	${INSTALL_DATA_DIR} ${RUBY_DOCDIR}/rt/ja
.for f in ${DOCS_JA}
	${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/rt/ja
.endfor
	${INSTALL_DATA_DIR} ${RUBY_EXAMPLESDIR}/rt
	${INSTALL_DATA} ${WRKSRC}/dot.rt.rd2rc ${RUBY_EXAMPLESDIR}/rt

.include "../../lang/ruby-base/Makefile.common"
.include "../../mk/bsd.pkg.mk"