mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-30 05:40:06 +00:00
d1ef8e6200
- Add a patch to fix build error with Ruby 1.8 [1] - Add LICENSE section - Adopt OptionsNG - Trim Makefile header - Remove Author: line from pkg-descr - Replace tab with space WWW: line in pkg-descr - Update WWW: line in pkg-descr PR: ports/175257 Submitted by: Yasuhiro KIMURA <yasu_AT_utahime_DOT_org> Obtained from: http://code.google.com/p/mecab/issues/detail?id=3 [1]
44 lines
1017 B
Makefile
44 lines
1017 B
Makefile
# Created by: Akinori MUSHA aka knu <knu@idaemons.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= mecab
|
|
PORTVERSION= 0.995
|
|
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
|
|
LICENSE_FILE_BSD= ${WRKSRC}/BSD
|
|
LICENSE_FILE_GPLv2= ${WRKSRC}/GPL
|
|
LICENSE_FILE_LGPL21= ${WRKSRC}/LGPL
|
|
|
|
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:
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
@${MKDIR} ${RUBY_MODDOCDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/bindings.html ${RUBY_MODDOCDIR}/
|
|
.endif
|
|
.if ${PORT_OPTIONS:MEXAMPLES}
|
|
@${MKDIR} ${RUBY_MODEXAMPLESDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/test.rb ${RUBY_MODEXAMPLESDIR}/
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|