aboutsummaryrefslogtreecommitdiff
path: root/japanese/mecab-ipadic
diff options
context:
space:
mode:
authorJason Helfman <jgh@FreeBSD.org>2013-01-15 21:51:01 +0000
committerJason Helfman <jgh@FreeBSD.org>2013-01-15 21:51:01 +0000
commit4686a9255eeea4c015af50aa0b87cb05cd00ee51 (patch)
treeffbf5cec301d547d5278d4cc08cc05bb09bc8f94 /japanese/mecab-ipadic
parentf41a2583470055aa31a59aaad0216402dc58b98f (diff)
downloadports-4686a9255eeea4c015af50aa0b87cb05cd00ee51.tar.gz
ports-4686a9255eeea4c015af50aa0b87cb05cd00ee51.zip
- trim historical header, add LICENSES, convert CHARSET to optionsNG and drop
pre-everything target - update pkg-descr PR: 175195 Submitted by: maintainer, yasu@utahime.org
Notes
Notes: svn path=/head/; revision=310466
Diffstat (limited to 'japanese/mecab-ipadic')
-rw-r--r--japanese/mecab-ipadic/Makefile38
-rw-r--r--japanese/mecab-ipadic/pkg-descr18
2 files changed, 41 insertions, 15 deletions
diff --git a/japanese/mecab-ipadic/Makefile b/japanese/mecab-ipadic/Makefile
index f6ddd9caccf1..f09523238529 100644
--- a/japanese/mecab-ipadic/Makefile
+++ b/japanese/mecab-ipadic/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: mecab-ipadic
-# Date created: 2006-05-07
-# Whom: TAKATSU Tomonari <tota@rtfm.jp>
-#
+# Created by: TAKATSU Tomonari <tota@rtfm.jp>
# $FreeBSD$
-#
PORTNAME= mecab
DISTVERSION= 2.7.0-20070801
@@ -15,20 +11,36 @@ DISTNAME= ${PORTNAME}${PKGNAMESUFFIX}-${DISTVERSION}
MAINTAINER= yasu@utahime.org
COMMENT= Japanese Morphological Dictionary for MeCab
+LICENSE= NAIST ICOT
+LICENSE_COMB= multi
+LICENSE_NAME_NAIST= NAIST
+LICENSE_NAME_ICOT= ICOT
+LICENSE_FILE_NAIST= ${WRKSRC}/COPYING
+LICENSE_FILE_ICOT= ${WRKSRC}/COPYING
+LICENSE_PERMS_NAIST= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
+LICENSE_PERMS_ICOT= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
+
BUILD_DEPENDS= ja-mecab>=0.94:${PORTSDIR}/japanese/mecab
+OPTIONS_RADIO= CHARSET
+OPTIONS_RADIO_CHARSET= EUCJP SHIFTJIS UTF8
+
+EUCJP_DESC= Use EUC-JP as dictionary charset.
+SHIFTJIS_DESC= Use SHIFT-JIS as dictionary charset.
+UTF8_DESC= Use UTF-8 as dictionary charset.
+
USE_PERL5_BUILD= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --with-dicdir=${PREFIX}/lib/mecab/dic/ipadic
-# Set charset (euc-jp/shift_jis/utf-8)
-.if defined(WITH_CHARSET)
-CONFIGURE_ARGS+= --with-charset=${WITH_CHARSET}
-.endif
+.include <bsd.port.options.mk>
-pre-everything::
- @${ECHO_MSG} ""
- @${ECHO_MSG} " WITH_CHARSET=charset sets default charset (euc-jp/shift_jis/utf-8)"
- @${ECHO_MSG} ""
+.if ${PORT_OPTIONS:MEUCJP}
+CONFIGURE_ARGS+= --with-charset=euc-jp
+.elif ${PORT_OPTIONS:MSHIFTJIS}
+CONFIGURE_ARGS+= --with-charset=shift_jis
+.elif ${PORT_OPTIONS:MUTF8}
+CONFIGURE_ARGS+= --with-charset=utf-8
+.endif
.include <bsd.port.mk>
diff --git a/japanese/mecab-ipadic/pkg-descr b/japanese/mecab-ipadic/pkg-descr
index 182d651dc621..4c8cd6e868eb 100644
--- a/japanese/mecab-ipadic/pkg-descr
+++ b/japanese/mecab-ipadic/pkg-descr
@@ -1,4 +1,18 @@
-Japanese Morphological Dictionary for MeCab.
+MeCab the Graduate School of Informatics, Kyoto University Unit - Joint
+Research Project Communication Science Laboratories, Nippon Telegraph and
+Telephone Corporation morphological analysis engine that was developed
+through open source. The basic policy is to design a general-purpose
+language-independent, dictionary and corpus. (Conditional Random Fields
+for the estimation of the parameters CRF has been used), ChaSen performance
+has improved compared to the hidden Markov model is employed. In addition,
+on average ChaSen , Juman , KAKASI run faster than. Turnip Undaria pinnatifida
+(wear eye) is the way the author's favorite food.
+
+* Generic design that does not depend dictionary, the corpus
+* Conditional Random Fields ( CRF on the basis of high analysis accuracy)
+* ChaSen and KAKASI faster than
+* Structure algorithm / data dictionary lookup is a fast TRIE structure Double-Array adopted.
+* Libraries that can be re-entrant
+* Various scripting language bindings (perl / ruby / python / java / C #)
-Author: Taku Kudo <taku@chasen.org>
WWW: http://mecab.sourceforge.net/