diff options
author | MANTANI Nobutaka <nobutaka@FreeBSD.org> | 2014-12-23 13:30:12 +0000 |
---|---|---|
committer | MANTANI Nobutaka <nobutaka@FreeBSD.org> | 2014-12-23 13:30:12 +0000 |
commit | 5a8a687983e225d9445c4f50e99b69dbece2388d (patch) | |
tree | 3ff1abdf8794e2969b012d1a699aeb60ea888e8d /japanese | |
parent | 5f71d61e78274dd42c9e25313824cbe5ccbb511e (diff) | |
download | ports-5a8a687983e225d9445c4f50e99b69dbece2388d.tar.gz ports-5a8a687983e225d9445c4f50e99b69dbece2388d.zip |
Notes
Diffstat (limited to 'japanese')
-rw-r--r-- | japanese/cmigemo-dict/Makefile | 5 | ||||
-rw-r--r-- | japanese/cmigemo/Makefile | 16 | ||||
-rw-r--r-- | japanese/cmigemo/distinfo | 4 | ||||
-rw-r--r-- | japanese/cmigemo/files/patch-compile_config.mk.in | 6 | ||||
-rw-r--r-- | japanese/cmigemo/files/patch-dict_dict.mak | 52 | ||||
-rw-r--r-- | japanese/cmigemo/files/patch-src_wordbuf.c | 10 |
6 files changed, 63 insertions, 30 deletions
diff --git a/japanese/cmigemo-dict/Makefile b/japanese/cmigemo-dict/Makefile index 158bb47f46e3..4e3c1728d9b2 100644 --- a/japanese/cmigemo-dict/Makefile +++ b/japanese/cmigemo-dict/Makefile @@ -2,9 +2,8 @@ # $FreeBSD$ CATEGORIES= japanese -MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE} \ - ${MASTER_SITE_LOCAL:S/$/:skkdic/} -MASTER_SITE_SUBDIR= nobutaka/:skkdic +MASTER_SITES= GH \ +n ${MASTER_SITE_LOCAL:S/%SUBDIR%\/$/nobutaka\/:skkdic/} PKGNAMESUFFIX= -dict DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \ ${SKKDIC_FILE}:skkdic diff --git a/japanese/cmigemo/Makefile b/japanese/cmigemo/Makefile index 4a9341a23516..aa3f3888b0dc 100644 --- a/japanese/cmigemo/Makefile +++ b/japanese/cmigemo/Makefile @@ -2,12 +2,17 @@ # $FreeBSD$ PORTNAME= cmigemo -PORTVERSION= 20110227 +PORTVERSION= 20141220 CATEGORIES= japanese -MASTER_SITES?= ${MASTER_SITE_GOOGLE_CODE} -DISTNAME= ${PORTNAME}-default-src-${PORTVERSION} +MASTER_SITES?= GH DIST_SUBDIR= cmigemo +USE_GITHUB= yes +GH_ACCOUNT= koron +GH_PROJECT= cmigemo +GH_COMMIT= ${GH_TAGNAME} +GH_TAGNAME= 6a1c438 + MAINTAINER= nobutaka@FreeBSD.org COMMENT= C implementation of Migemo Japanese incremental search tool @@ -28,13 +33,12 @@ PORTDOCS= README_j.txt .endif OPTIONS_DEFINE+=DOCS -USES+= iconv:build,wchar_t gmake zip +USES+= gmake +BUILD_DEPENDS= ${LOCALBASE}/bin/nkf:${PORTSDIR}/japanese/nkf HAS_CONFIGURE= yes CONFIGURE_ARGS= --prefix=${STAGEDIR}${PREFIX} -WRKSRC= ${WRKDIR}/${PORTNAME}-default-src - .include <bsd.port.options.mk> .if !defined(PKGNAMESUFFIX) && ${PORT_OPTIONS:MDOCS} diff --git a/japanese/cmigemo/distinfo b/japanese/cmigemo/distinfo index a8792ee06041..8821945a9c1d 100644 --- a/japanese/cmigemo/distinfo +++ b/japanese/cmigemo/distinfo @@ -1,4 +1,4 @@ -SHA256 (cmigemo/cmigemo-default-src-20110227.zip) = 4aa759b2e055ef3c3fbeb9e92f7f0aacc1fd1f8602fdd2f122719793ee14414c -SIZE (cmigemo/cmigemo-default-src-20110227.zip) = 116574 +SHA256 (cmigemo/cmigemo-20141220.tar.gz) = 3e377072b8e1b770512875c56b7e7cab30162d84760ad6420fcc1bb192356060 +SIZE (cmigemo/cmigemo-20141220.tar.gz) = 69788 SHA256 (cmigemo/SKK-JISYO.L-20110813.bz2) = 560da93401f0a58417d61e2ff41a43a24f0886877797bbea879ba9db3e70e3d9 SIZE (cmigemo/SKK-JISYO.L-20110813.bz2) = 1694235 diff --git a/japanese/cmigemo/files/patch-compile_config.mk.in b/japanese/cmigemo/files/patch-compile_config.mk.in index 289f58adfb4e..0144044751cf 100644 --- a/japanese/cmigemo/files/patch-compile_config.mk.in +++ b/japanese/cmigemo/files/patch-compile_config.mk.in @@ -18,9 +18,9 @@ -FILTER_CP932 = ${PROGRAM_ENCODEFILTER} -s -FILTER_EUCJP = ${PROGRAM_ENCODEFILTER} -e -FILTER_UTF8 = iconv -t utf-8 -f cp932 -+FILTER_CP932 = %%LOCALBASE%%/bin/iconv -t cp932 -f euc-jp -+FILTER_EUCJP = %%LOCALBASE%%/bin/iconv -t euc-jp -f cp932 -+FILTER_UTF8 = %%LOCALBASE%%/bin/iconv -t utf-8 -f cp932 ++ICONV_EUCJP_TO_CP932 = %%LOCALBASE%%/bin/nkf --ic=eucJP-ms --oc=CP932 ++ICONV_CP932_TO_EUCJP = %%LOCALBASE%%/bin/nkf --ic=CP932 --oc=eucJP-ms ++ICONV_CP932_TO_UTF8 = %%LOCALBASE%%/bin/nkf --ic=CP932 --oc=UTF-8 INSTALL = ${PROGRAM_INSTALL} -c INSTALL_PROGRAM = $(INSTALL) -m 755 INSTALL_DATA = $(INSTALL) -m 644 diff --git a/japanese/cmigemo/files/patch-dict_dict.mak b/japanese/cmigemo/files/patch-dict_dict.mak index f8721f11b1f0..5330cd8bbea5 100644 --- a/japanese/cmigemo/files/patch-dict_dict.mak +++ b/japanese/cmigemo/files/patch-dict_dict.mak @@ -1,6 +1,15 @@ ---- dict/dict.mak.orig 2011-02-27 19:45:40.000000000 +0900 -+++ dict/dict.mak 2011-08-17 01:04:58.000000000 +0900 -@@ -32,10 +32,10 @@ +--- dict/dict.mak.orig 2014-12-20 13:39:02.000000000 +0900 ++++ dict/dict.mak 2014-12-21 22:31:28.000000000 +0900 +@@ -15,7 +15,7 @@ + # Dictionary + # + $(DICT): $(DICT_BASE) +- $(FILTER_CP932) < $(DICT_BASE) > $@ ++ $(ICONV_EUCJP_TO_CP932) < $(DICT_BASE) > $@ + $(DICT_BASE): $(SKKDIC_FILE) ../tools/skk2migemo.pl ../tools/optimize-dict.pl + $(PERL) ../tools/skk2migemo.pl < $(SKKDIC_FILE) > dict.tmp + $(PERL) ../tools/optimize-dict.pl < dict.tmp > $@ +@@ -32,42 +32,42 @@ ############################################################################## # Dictionary in euc-jp # @@ -15,7 +24,21 @@ $(EUCJP_DIR): $(MKDIR) $(EUCJP_DIR) $(EUCJP_DIR)/migemo-dict: migemo-dict -@@ -52,10 +52,10 @@ +- $(FILTER_EUCJP) < migemo-dict > $@ ++ $(ICONV_CP932_TO_EUCJP) < migemo-dict > $@ + $(EUCJP_DIR)/zen2han.dat: zen2han.dat +- $(FILTER_EUCJP) < zen2han.dat > $@ ++ $(ICONV_CP932_TO_EUCJP) < zen2han.dat > $@ + $(EUCJP_DIR)/han2zen.dat: han2zen.dat +- $(FILTER_EUCJP) < han2zen.dat > $@ ++ $(ICONV_CP932_TO_EUCJP) < han2zen.dat > $@ + $(EUCJP_DIR)/hira2kata.dat: hira2kata.dat +- $(FILTER_EUCJP) < hira2kata.dat > $@ ++ $(ICONV_CP932_TO_EUCJP) < hira2kata.dat > $@ + $(EUCJP_DIR)/roma2hira.dat: roma2hira.dat +- $(FILTER_EUCJP) < roma2hira.dat > $@ ++ $(ICONV_CP932_TO_EUCJP) < roma2hira.dat > $@ + ############################################################################## # Dictionary in utf-8 # @@ -30,11 +53,28 @@ $(UTF8_DIR): $(MKDIR) $(UTF8_DIR) $(UTF8_DIR)/migemo-dict: migemo-dict -@@ -87,7 +87,8 @@ +- $(FILTER_UTF8) < migemo-dict > $@ ++ $(ICONV_CP932_TO_UTF8) < migemo-dict > $@ + $(UTF8_DIR)/zen2han.dat: zen2han.dat +- $(FILTER_UTF8) < zen2han.dat > $@ ++ $(ICONV_CP932_TO_UTF8) < zen2han.dat > $@ + $(UTF8_DIR)/han2zen.dat: han2zen.dat +- $(FILTER_UTF8) < han2zen.dat > $@ ++ $(ICONV_CP932_TO_UTF8) < han2zen.dat > $@ + $(UTF8_DIR)/hira2kata.dat: hira2kata.dat +- $(FILTER_UTF8) < hira2kata.dat > $@ ++ $(ICONV_CP932_TO_UTF8) < hira2kata.dat > $@ + $(UTF8_DIR)/roma2hira.dat: roma2hira.dat +- $(FILTER_UTF8) < roma2hira.dat > $@ ++ $(ICONV_CP932_TO_UTF8) < roma2hira.dat > $@ + + ############################################################################## + # for Microsoft Visual C +@@ -92,7 +92,8 @@ ############################################################################## # for GNU/gcc(Linux‘¼) # --gcc: euc-jp +-gcc: euc-jp utf-8 +gcc-dict: euc-jp-dict utf-8-dict +gcc-dat: euc-jp-dat utf-8-dat diff --git a/japanese/cmigemo/files/patch-src_wordbuf.c b/japanese/cmigemo/files/patch-src_wordbuf.c deleted file mode 100644 index 2d2b63349c8f..000000000000 --- a/japanese/cmigemo/files/patch-src_wordbuf.c +++ /dev/null @@ -1,10 +0,0 @@ ---- src/wordbuf.c.orig 2011-08-13 23:52:52.000000000 +0900 -+++ src/wordbuf.c 2011-08-13 23:53:22.000000000 +0900 -@@ -9,6 +9,7 @@ - #include <stdio.h> - #include <stdlib.h> - #include <string.h> -+#include <limits.h> - #include "wordbuf.h" - - #define WORDLEN_DEF 64 |