svn commit: r310466 - head/japanese/mecab-ipadic
Jason Helfman
jgh at FreeBSD.org
Tue Jan 15 21:51:02 UTC 2013
Author: jgh
Date: Tue Jan 15 21:51:01 2013
New Revision: 310466
URL: http://svnweb.freebsd.org/changeset/ports/310466
Log:
- trim historical header, add LICENSES, convert CHARSET to optionsNG and drop
pre-everything target
- update pkg-descr
PR: 175195
Submitted by: maintainer, yasu at utahime.org
Modified:
head/japanese/mecab-ipadic/Makefile (contents, props changed)
head/japanese/mecab-ipadic/pkg-descr (contents, props changed)
Modified: head/japanese/mecab-ipadic/Makefile
==============================================================================
--- head/japanese/mecab-ipadic/Makefile Tue Jan 15 21:45:33 2013 (r310465)
+++ head/japanese/mecab-ipadic/Makefile Tue Jan 15 21:51:01 2013 (r310466)
@@ -1,9 +1,5 @@
-# New ports collection makefile for: mecab-ipadic
-# Date created: 2006-05-07
-# Whom: TAKATSU Tomonari <tota at rtfm.jp>
-#
+# Created by: TAKATSU Tomonari <tota at rtfm.jp>
# $FreeBSD$
-#
PORTNAME= mecab
DISTVERSION= 2.7.0-20070801
@@ -15,20 +11,36 @@ DISTNAME= ${PORTNAME}${PKGNAMESUFFIX}-${
MAINTAINER= yasu at 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>
Modified: head/japanese/mecab-ipadic/pkg-descr
==============================================================================
--- head/japanese/mecab-ipadic/pkg-descr Tue Jan 15 21:45:33 2013 (r310465)
+++ head/japanese/mecab-ipadic/pkg-descr Tue Jan 15 21:51:01 2013 (r310466)
@@ -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 at chasen.org>
WWW: http://mecab.sourceforge.net/
More information about the svn-ports-head
mailing list