From owner-svn-ports-all@freebsd.org Mon Oct 22 20:08:55 2018 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C7586106BCED; Mon, 22 Oct 2018 20:08:55 +0000 (UTC) (envelope-from thierry@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 7B283706A7; Mon, 22 Oct 2018 20:08:55 +0000 (UTC) (envelope-from thierry@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 75DFE25123; Mon, 22 Oct 2018 20:08:55 +0000 (UTC) (envelope-from thierry@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w9MK8tcH086747; Mon, 22 Oct 2018 20:08:55 GMT (envelope-from thierry@FreeBSD.org) Received: (from thierry@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w9MK8s1I086743; Mon, 22 Oct 2018 20:08:54 GMT (envelope-from thierry@FreeBSD.org) Message-Id: <201810222008.w9MK8s1I086743@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: thierry set sender to thierry@FreeBSD.org using -f From: Thierry Thomas Date: Mon, 22 Oct 2018 20:08:54 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r482778 - in head/korean/hunspell: . files X-SVN-Group: ports-head X-SVN-Commit-Author: thierry X-SVN-Commit-Paths: in head/korean/hunspell: . files X-SVN-Commit-Revision: 482778 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Oct 2018 20:08:56 -0000 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