aboutsummaryrefslogtreecommitdiffstats
path: root/japanese/ruby-romkan/Makefile
blob: cb56e4641982dd135557f4c242a6a59ef4f81114 (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
48
49
50
51
# Created by: Akinori MUSHA aka knu <knu@idaemons.org>
# $FreeBSD$

PORTNAME=   romkan
PORTVERSION=    0.4
CATEGORIES= japanese converters ruby
MASTER_SITES=   http://0xcc.net/ruby-romkan/
DISTNAME=   ruby-${PORTNAME}-${PORTVERSION}
DIST_SUBDIR=    ruby

MAINTAINER= ruby@FreeBSD.org
COMMENT=    Romaji <-> Kana conversion library for Ruby

USE_RUBY=   yes

NO_BUILD=   yes

EXAMPLES_JA=    test.rb test.sh

RUBY_RD_FILES=  romkan.en.rd romkan.ja.rd

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

OPTIONS_DEFINE= DOCS

.include <bsd.port.pre.mk>

PKGNAMEPREFIX:= ${PKGNAMEPREFIX}${RUBY_PKGNAMEPREFIX}

do-install:
    ${MKDIR} ${STAGEDIR}/${RUBY_SITELIBDIR}
    ${INSTALL_SCRIPT} ${WRKSRC}/romkan.rb ${STAGEDIR}${RUBY_SITELIBDIR}/

post-install:
    ${MKDIR} ${STAGEDIR}${RUBY_MODEXAMPLESDIR}/ja
.for f in ${EXAMPLES_JA}
    ${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${RUBY_MODEXAMPLESDIR}/ja/
.endfor
    ${MKDIR} ${STAGEDIR}${RUBY_MODDOCDIR}/ja
.for f in ${DOCS_EN}
    ${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${RUBY_MODDOCDIR}/
.endfor
.for f in ${DOCS_JA}
    ${INSTALL_SCRIPT} ${WRKSRC}/${f} ${STAGEDIR}${RUBY_MODDOCDIR}/ja/
.endfor

.include <bsd.port.post.mk>