FreeBSD Bugzilla – Attachment 165988 Details for
Bug 200325
[patch] japanese/mecab-ipadic: separate charset options into individual slave ports
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Updated patch.
patch-japanese_mecab-ipadic (text/plain), 4.88 KB, created by
Yasuhiro Kimura
on 2016-01-23 05:08:16 UTC
(
hide
)
Description:
Updated patch.
Filename:
MIME Type:
Creator:
Yasuhiro Kimura
Created:
2016-01-23 05:08:16 UTC
Size:
4.88 KB
patch
obsolete
>Index: japanese/Makefile >=================================================================== >--- japanese/Makefile (revision 406956) >+++ japanese/Makefile (working copy) >@@ -160,6 +160,9 @@ > SUBDIR += man-doc > SUBDIR += mecab > SUBDIR += mecab-ipadic >+ SUBDIR += mecab-ipadic-eucjp >+ SUBDIR += mecab-ipadic-sjis >+ SUBDIR += mecab-ipadic-utf8 > SUBDIR += mg > SUBDIR += mh > SUBDIR += migemo >Index: japanese/mecab-ipadic/Makefile >=================================================================== >--- japanese/mecab-ipadic/Makefile (revision 406956) >+++ japanese/mecab-ipadic/Makefile (working copy) >@@ -3,13 +3,29 @@ > > PORTNAME= mecab-ipadic > DISTVERSION= 2.7.0-20070801 >+PORTREVISION= 1 > CATEGORIES= japanese textproc > MASTER_SITES= GOOGLE_CODE > PROJECTHOST= mecab > > MAINTAINER= yasu@utahime.org >-COMMENT= Japanese Morphological Dictionary for MeCab >+COMMENT?= MeCab IPA dictionary meta-port > >+.if empty(PKGNAMESUFFIX) >+USES= metaport >+OPTIONS_RADIO= CHARSET >+OPTIONS_RADIO_CHARSET= EUCJP SHIFTJIS UTF8 >+OPTIONS_DEFAULT= EUCJP >+ >+EUCJP_DESC= Use EUC-JP as dictionary charset. >+SHIFTJIS_DESC= Use SHIFT-JIS as dictionary charset. >+UTF8_DESC= Use UTF-8 as dictionary charset. >+EUCJP_RUN_DEPENDS= ${LOCALBASE}/lib/mecab/dic/ipadic/char.bin:${PORTSDIR}/japanese/mecab-ipadic-eucjp >+SHIFTJIS_RUN_DEPENDS= ${LOCALBASE}/lib/mecab/dic/ipadic/char.bin:${PORTSDIR}/japanese/mecab-ipadic-sjis >+UTF8_RUN_DEPENDS= ${LOCALBASE}/lib/mecab/dic/ipadic/char.bin:${PORTSDIR}/japanese/mecab-ipadic-utf8 >+.endif >+ >+.if !empty(PKGNAMESUFFIX) > LICENSE= NAIST ICOT > LICENSE_COMB= multi > LICENSE_NAME_NAIST= NAIST >@@ -26,21 +42,30 @@ > GNU_CONFIGURE= yes > CONFIGURE_ARGS+= --with-dicdir=${PREFIX}/lib/mecab/dic/ipadic > >-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. >- >-.include <bsd.port.options.mk> >- >-.if ${PORT_OPTIONS:MEUCJP} >+.if ${PKGNAMESUFFIX:S,-,,} == "eucjp" > CONFIGURE_ARGS+= --with-charset=euc-jp >-.elif ${PORT_OPTIONS:MSHIFTJIS} >-CONFIGURE_ARGS+= --with-charset=shift_jis >-.elif ${PORT_OPTIONS:MUTF8} >+CONFLICTS= ja-mecab-ipadic-utf8-[0-9]* ja-mecab-ipadic-sjis-[0-9]* >+.elif ${PKGNAMESUFFIX:S,-,,} == "sjis" >+CONFIGURE_ARGS+= --with-charset=shiftjis >+CONFLICTS= ja-mecab-ipadic-eucjp-[0-9]* ja-mecab-ipadic-utf8-[0-9]* >+.elif ${PKGNAMESUFFIX:S,-,,} == "utf8" > CONFIGURE_ARGS+= --with-charset=utf-8 >+CONFLICTS= ja-mecab-ipadic-eucjp-[0-9]* ja-mecab-ipadic-sjis-[0-9]* > .endif > >+WRKSRC= ${WRKDIR}/${PORTNAME}-${DISTVERSION} >+ >+PLIST_FILES= \ >+ lib/mecab/dic/ipadic/char.bin \ >+ lib/mecab/dic/ipadic/dicrc \ >+ lib/mecab/dic/ipadic/left-id.def \ >+ lib/mecab/dic/ipadic/matrix.bin \ >+ lib/mecab/dic/ipadic/pos-id.def \ >+ lib/mecab/dic/ipadic/rewrite.def \ >+ lib/mecab/dic/ipadic/right-id.def \ >+ lib/mecab/dic/ipadic/sys.dic \ >+ lib/mecab/dic/ipadic/unk.dic >+ >+.endif # !empty(PKGNAMESUFFIX) >+ > .include <bsd.port.mk> >Index: japanese/mecab-ipadic/pkg-plist >=================================================================== >--- japanese/mecab-ipadic/pkg-plist (revision 406956) >+++ japanese/mecab-ipadic/pkg-plist (nonexistent) >@@ -1,9 +0,0 @@ >-lib/mecab/dic/ipadic/char.bin >-lib/mecab/dic/ipadic/dicrc >-lib/mecab/dic/ipadic/left-id.def >-lib/mecab/dic/ipadic/matrix.bin >-lib/mecab/dic/ipadic/pos-id.def >-lib/mecab/dic/ipadic/rewrite.def >-lib/mecab/dic/ipadic/right-id.def >-lib/mecab/dic/ipadic/sys.dic >-lib/mecab/dic/ipadic/unk.dic >Index: japanese/mecab-ipadic-eucjp/Makefile >=================================================================== >--- japanese/mecab-ipadic-eucjp/Makefile (nonexistent) >+++ japanese/mecab-ipadic-eucjp/Makefile (working copy) >@@ -0,0 +1,10 @@ >+# Created by: Koichiro IWAO <meta+ports@vmeta.jp> >+# $FreeBSD$ >+ >+PKGNAMESUFFIX= -eucjp >+ >+COMMENT= Japanese Morphological Dictionary for MeCab (EUC-JP) >+ >+MASTERDIR= ${.CURDIR}/../mecab-ipadic >+ >+.include "${MASTERDIR}/Makefile" >Index: japanese/mecab-ipadic-sjis/Makefile >=================================================================== >--- japanese/mecab-ipadic-sjis/Makefile (nonexistent) >+++ japanese/mecab-ipadic-sjis/Makefile (working copy) >@@ -0,0 +1,12 @@ >+# Created by: Koichiro IWAO <meta+ports@vmeta.jp> >+# $FreeBSD$ >+ >+PKGNAMESUFFIX= -sjis >+ >+COMMENT= Japanese Morphological Dictionary for MeCab (Shift JIS) >+ >+#BROKEN= Does not compile >+ >+MASTERDIR= ${.CURDIR}/../mecab-ipadic >+ >+.include "${MASTERDIR}/Makefile" >Index: japanese/mecab-ipadic-utf8/Makefile >=================================================================== >--- japanese/mecab-ipadic-utf8/Makefile (nonexistent) >+++ japanese/mecab-ipadic-utf8/Makefile (working copy) >@@ -0,0 +1,10 @@ >+# Created by: Koichiro IWAO <meta+ports@vmeta.jp> >+# $FreeBSD$ >+ >+PKGNAMESUFFIX= -utf8 >+ >+COMMENT= Japanese Morphological Dictionary for MeCab (UTF-8) >+ >+MASTERDIR= ${.CURDIR}/../mecab-ipadic >+ >+.include "${MASTERDIR}/Makefile"
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
yasu
:
maintainer-approval+
Actions:
View
|
Diff
Attachments on
bug 200325
:
156933
|
156934
|
156935
|
156936
|
156937
|
156966
|
156967
|
158907
|
165988
|
166287