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

PORTNAME=   romkan
PORTVERSION=    0.4
PORTREVISION=   1
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=   test.rb test.sh

DOCS=       ChangeLog romkan.en.rd romkan.ja.rd

OPTIONS_DEFINE= DOCS EXAMPLES

.include <bsd.port.pre.mk>

PKGNAMEPREFIX:= ${PKGNAMEPREFIX}${RUBY_PKGNAMEPREFIX}

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

do-install-EXAMPLES-on:
    ${MKDIR} ${STAGEDIR}${RUBY_MODEXAMPLESDIR}
.for f in ${EXAMPLES}
    ${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${RUBY_MODEXAMPLESDIR}
.endfor

do-install-DOCS-on:
    ${MKDIR} ${STAGEDIR}${RUBY_MODDOCDIR}
.for f in ${DOCS}
    ${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${RUBY_MODDOCDIR}/
.endfor

.include <bsd.port.post.mk>