Index: head/korean/hunspell/Makefile =================================================================== --- head/korean/hunspell/Makefile (revision 482777) +++ head/korean/hunspell/Makefile (revision 482778) @@ -1,43 +1,44 @@ # $FreeBSD$ PORTNAME= hunspell -PORTVERSION= 0.5.6 -PORTREVISION= 3 +PORTVERSION= 0.7.1 CATEGORIES= korean textproc MAINTAINER= jkim@FreeBSD.org COMMENT= Korean hunspell dictionaries LICENSE= GPLv2+ LGPL21+ MPL11 LICENSE_COMB= dual LICENSE_FILE_GPLv2+ = ${WRKSRC}/LICENSE.GPL LICENSE_FILE_LGPL21+ = ${WRKSRC}/LICENSE.LGPL LICENSE_FILE_MPL11= ${WRKSRC}/LICENSE.MPL BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}lxml>=0:devel/py-lxml@${PY_FLAVOR} -TEST_DEPENDS= hunspell:textproc/hunspell +TEST_DEPENDS= hunspell:textproc/hunspell \ + gmake:devel/gmake -GH_ACCOUNT= changwoo +GH_ACCOUNT= spellcheck-ko GH_PROJECT= ${PORTNAME}-dict-ko USE_GITHUB= yes NO_ARCH= yes -USES= python:2.7,build,test +USES= python:3.3+,build,test shebangfix +SHEBANG_FILES= tests/runtest.py PLIST_FILES= %%DATADIR%%/ko_KR.aff \ %%DATADIR%%/ko_KR.dic -do-build: - @(cd ${WRKSRC} && ${PYTHON_CMD} make-aff-dic.py ko_KR.aff ko_KR.dic \ - dict-ko-builtins.xml dict-ko-galkwi.xml) +TEST_TARGET= test +TEST_ENV+= GMAKE=${GMAKE} LC_ALL=en_US.UTF-8 -do-test: - @(cd ${WRKSRC}/tests && for T in $$(ls -1 *.test); do \ - echo "Testing $$T..."; \ - ${PYTHON_CMD} runtest.py $$T || exit 1; done) +pre-build: +.for f in Makefile tests/Makefile + ${REINPLACE_CMD} -e 's|python3|${PYTHON_CMD}|' ${WRKSRC}/${f} +.endfor + do-install: ${MKDIR} ${STAGEDIR}${DATADIR} ${INSTALL_DATA} ${WRKSRC}/ko_KR.aff ${WRKSRC}/ko_KR.dic \ ${STAGEDIR}${DATADIR} .include Index: head/korean/hunspell/distinfo =================================================================== --- head/korean/hunspell/distinfo (revision 482777) +++ head/korean/hunspell/distinfo (revision 482778) @@ -1,3 +1,3 @@ -TIMESTAMP = 1473875379 -SHA256 (changwoo-hunspell-dict-ko-0.5.6_GH0.tar.gz) = 2caf3b0775d8d6c49866be2682cdf17b2c76d4c151bd1923adbe0b5661b94ee8 -SIZE (changwoo-hunspell-dict-ko-0.5.6_GH0.tar.gz) = 457791 +TIMESTAMP = 1527707668 +SHA256 (spellcheck-ko-hunspell-dict-ko-0.7.1_GH0.tar.gz) = 5b7fbbc92db39d2454607d1de385104229fb86a606c2c1a1f4ea51b67ed42f5c +SIZE (spellcheck-ko-hunspell-dict-ko-0.7.1_GH0.tar.gz) = 324625 Index: head/korean/hunspell/files/patch-Makefile =================================================================== --- head/korean/hunspell/files/patch-Makefile (nonexistent) +++ head/korean/hunspell/files/patch-Makefile (revision 482778) @@ -0,0 +1,21 @@ +--- Makefile.orig 2017-12-25 07:30:13 UTC ++++ Makefile +@@ -1,8 +1,8 @@ + PYTHON := python3 + ZIP := zip -r + +-AFFIX := ko.aff +-DICT := ko.dic ++AFFIX := ko_KR.aff ++DICT := ko_KR.dic + + CLEANFILES := $(AFFIX) $(DICT) + +@@ -43,6 +43,6 @@ dist:: distdir $(BIN_DISTCONTENT) + rm -rf $(BIN_DISTNAME) + + test: +- $(MAKE) -C tests test ++ $(GMAKE) -C tests test + + .PHONY: all clean dist distdir test Property changes on: head/korean/hunspell/files/patch-Makefile ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/korean/hunspell/files/patch-tests_runtest.py =================================================================== --- head/korean/hunspell/files/patch-tests_runtest.py (revision 482777) +++ head/korean/hunspell/files/patch-tests_runtest.py (revision 482778) @@ -1,11 +1,11 @@ ---- tests/runtest.py.orig 2012-10-06 23:29:32 UTC +--- tests/runtest.py.orig 2017-12-25 07:30:13 UTC +++ tests/runtest.py -@@ -19,7 +19,7 @@ def main(): +@@ -27,7 +27,7 @@ def main(): hunspell_cmd = './hunspell' else: hunspell_cmd = 'hunspell' -- hunspell = subprocess.Popen([hunspell_cmd, '-i', 'UTF-8', '-a', '-d', '../ko'], -+ hunspell = subprocess.Popen([hunspell_cmd, '-i', 'UTF-8', '-a', '-d', '../ko_KR'], +- args = [hunspell_cmd, '-i', 'UTF-8', '-d', '../ko'] ++ args = [hunspell_cmd, '-i', 'UTF-8', '-d', '../ko_KR'] + hunspell = subprocess.Popen(args, stdin=subprocess.PIPE, stdout=subprocess.PIPE) hunspell.stdout.readline() # the first line "Hunspell 1.2.8 ..." - lineno = 0