summaryrefslogtreecommitdiff
path: root/textproc/ruby-rttool/Makefile
blob: 09cc7baffef3ddf5bc17c4e1ded44dd182d9d7f0 (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
# $NetBSD: Makefile,v 1.15 2006/01/03 14:25:51 taca Exp $

DISTNAME=	rttool-${VERSION}
PKGNAME=	${RUBY_PKGPREFIX}-${DISTNAME}
PKGREVISION=	1
CATEGORIES=	textproc ruby
MASTER_SITES=	http://www.rubyist.net/~rubikitch/archive/

MAINTAINER=	taca@NetBSD.org
HOMEPAGE=	http://www.rubyist.net/~rubikitch/computer/rt/
COMMENT=	RT to HTML (and hopefully LaTeX in future) table converter

CONFLICTS+=	ruby[1-9][0-9]-rttool-*

.include "../../lang/ruby/rubyversion.mk"
# install a library file to rdtool's directory, too
BUILDLINK_DEPMETHOD.${RUBY_PKGPREFIX}-rdtool= full

VERSION=		1.0.1
USE_RUBY_SETUP=		yes
REPLACE_RUBY_DIRS=	${WRKSRC}/bin/rt ${WRKSRC}/lib/rt
HTMLDOCS=		rttool.en.html rttool.ja.html
DOCS=			rttool.en.rd rttool.ja.rd
SRCS=			rt2html-lib.rb rt2txt-lib.rb rtparser.rb \
			rtvisitor.rb w3m.rb

post-install:
	${INSTALL_DATA_DIR} ${RUBY_DOCDIR}/rt
.for f in ${DOCS} ${HTMLDOCS}
	${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/rt
	${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/rt
.endfor
	${INSTALL_DATA_DIR} ${RUBY_EXAMPLESDIR}/rt
	${INSTALL_DATA} ${WRKSRC}/examples/* ${RUBY_EXAMPLESDIR}/rt

.include "../../lang/ruby/modules.mk"
.include "../../textproc/ruby-rdtool/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"