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

PORTNAME=   mecab
PORTVERSION=    0.996
CATEGORIES= japanese textproc ruby
MASTER_SITES=   ${MASTER_SITE_GOOGLE_CODE}
DISTNAME=   ${PORTNAME}-ruby-${PORTVERSION}

MAINTAINER= ruby@FreeBSD.org
COMMENT=    MeCab library module for Ruby

LICENSE=    BSD GPLv2 LGPL21
LICENSE_COMB=   dual

LIB_DEPENDS=    mecab:${PORTSDIR}/japanese/mecab

USE_RUBY=   yes
USE_RUBY_EXTCONF=   yes

INSTALL_TARGET= site-install

OPTIONS_DEFINE= DOCS EXAMPLES
OPTIONSFILE=    ${PORT_DBDIR}/ja-ruby-${PORTNAME}/options

.include <bsd.port.pre.mk>

PKGNAMEPREFIX:= ${PKGNAMEPREFIX}${RUBY_PKGNAMEPREFIX}

post-install:
    @${MKDIR} ${STAGEDIR}${RUBY_MODDOCDIR}
    ${INSTALL_DATA} ${WRKSRC}/bindings.html ${STAGEDIR}${RUBY_MODDOCDIR}/
    @${MKDIR} ${STAGEDIR}${RUBY_MODEXAMPLESDIR}
    ${INSTALL_DATA} ${WRKSRC}/test.rb ${STAGEDIR}${RUBY_MODEXAMPLESDIR}/

.include <bsd.port.post.mk>