summaryrefslogtreecommitdiff
path: root/japanese/rbnamazu/Makefile
blob: b8ffacac02a937a6669e815f69aa6263e297bb59 (plain) (blame)
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
# Created by: Akinori MUSHA aka knu <knu@idaemons.org>
# $FreeBSD$

PORTNAME=	rbnamazu
PORTVERSION=	0.4
CATEGORIES=	japanese textproc ruby
MASTER_SITES=	ftp://ftp.namazu.org/pub/namazu/ruby/
DIST_SUBDIR=	ruby

MAINTAINER=	ruby@FreeBSD.org
COMMENT=	A client of the "Namazu" full-text search engine written in Ruby

USE_RUBY=	yes
USE_RUBY_FEATURES=	optparse

NO_BUILD=	yes

MODULES=	rbnamazu.rb nmzqr.rb nmzqr.tab.rb nmzdoc.rb
RD_DOCS=	

RUBY_RD_FILES=	rbnamazu.rd.ja rbnamazu.rd.en

DOCS_EN=	${RUBY_RD_FILES:M*.rd.en} \
		${RUBY_RD_HTML_FILES:M*.en.html}
DOCS_JA=	${RUBY_RD_FILES:M*.rd.ja} \
		${RUBY_RD_HTML_FILES:M*.ja.html}

NO_STAGE=	yes
do-install:
	${INSTALL_SCRIPT} ${WRKSRC}/namazu.rb ${PREFIX}/bin/
	${LN} -sf namazu.rb ${PREFIX}/bin/rbnamazu
.for f in ${MODULES}
	${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_SITELIBDIR}
.endfor

post-install:
.if !defined(NOPORTDOCS)
	${MKDIR} ${RUBY_MODDOCDIR}/ja
.for f in ${DOCS_EN}
	${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_MODDOCDIR}/
.endfor
.for f in ${DOCS_JA}
	${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_MODDOCDIR}/ja/
.endfor
.endif

.include <bsd.port.mk>