Date: Mon, 22 Oct 2018 20:08:54 +0000 (UTC) From: Thierry Thomas <thierry@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r482778 - in head/korean/hunspell: . files Message-ID: <201810222008.w9MK8s1I086743@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: thierry Date: Mon Oct 22 20:08:54 2018 New Revision: 482778 URL: https://svnweb.freebsd.org/changeset/ports/482778 Log: Upgrade to 0.7.1. Approved by: maintainer time-out Added: head/korean/hunspell/files/patch-Makefile (contents, props changed) Modified: head/korean/hunspell/Makefile head/korean/hunspell/distinfo head/korean/hunspell/files/patch-tests_runtest.py Modified: head/korean/hunspell/Makefile ============================================================================== --- head/korean/hunspell/Makefile Mon Oct 22 19:23:52 2018 (r482777) +++ head/korean/hunspell/Makefile Mon Oct 22 20:08:54 2018 (r482778) @@ -1,8 +1,7 @@ # $FreeBSD$ PORTNAME= hunspell -PORTVERSION= 0.5.6 -PORTREVISION= 3 +PORTVERSION= 0.7.1 CATEGORIES= korean textproc MAINTAINER= jkim@FreeBSD.org @@ -15,26 +14,28 @@ 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 \ Modified: head/korean/hunspell/distinfo ============================================================================== --- head/korean/hunspell/distinfo Mon Oct 22 19:23:52 2018 (r482777) +++ head/korean/hunspell/distinfo Mon Oct 22 20:08:54 2018 (r482778) @@ -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 Added: head/korean/hunspell/files/patch-Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/korean/hunspell/files/patch-Makefile Mon Oct 22 20:08:54 2018 (r482778) @@ -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 Modified: head/korean/hunspell/files/patch-tests_runtest.py ============================================================================== --- head/korean/hunspell/files/patch-tests_runtest.py Mon Oct 22 19:23:52 2018 (r482777) +++ head/korean/hunspell/files/patch-tests_runtest.py Mon Oct 22 20:08:54 2018 (r482778) @@ -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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201810222008.w9MK8s1I086743>