summaryrefslogtreecommitdiffstats
path: root/textproc/ruby-rttool/Makefile
blob: 1320501cd6dbfa7db14167095e56399b85bbd05c (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
# Created by: TAKATSU Tomonari <tota@FreeBSD.org>
# $FreeBSD$

PORTNAME=	rttool
PORTVERSION=	1.0.3
CATEGORIES=	textproc ruby
MASTER_SITES=	http://www.rubyist.net/~rubikitch/archive/ \
		${MASTER_SITE_LOCAL:S|%SUBDIR%|tota/ruby-rttool|}
PKGNAMEPREFIX=	${RUBY_PKGNAMEPREFIX}
DIST_SUBDIR=	${RUBY_PKGNAMEPREFIX:S|${RUBY_SUFFIX}-||}

MAINTAINER=	tota@FreeBSD.org
COMMENT=	RT into HTML and plain text converter

LICENSE=	RUBY

USE_RUBY=	yes
USE_RUBY_SETUP=	yes
USE_RUBY_RDTOOL=	yes

RUBY_SHEBANG_FILES=	bin/rt/* lib/rt/*
RUBY_MODNAME=	rt

DOCS_EN=	rttool.en.html rttool.en.rd
DOCS_JA=	rttool.ja.html rttool.ja.rd

OPTIONS_DEFINE=	DOCS EXAMPLES

post-install:
	@${MKDIR} ${STAGEDIR}${RUBY_MODDOCDIR}/ja
.for f in ${DOCS_EN}
	${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${RUBY_MODDOCDIR}/
.endfor
.for f in ${DOCS_JA}
	${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${RUBY_MODDOCDIR}/ja/
.endfor
	@${MKDIR} ${STAGEDIR}${RUBY_MODEXAMPLESDIR}
	cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${RUBY_MODEXAMPLESDIR}

.include <bsd.port.mk>
OpenPOWER on IntegriCloud