From owner-svn-ports-head@freebsd.org Wed Sep 14 21:51:58 2016 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A27AAB96E69; Wed, 14 Sep 2016 21:51:58 +0000 (UTC) (envelope-from jkim@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 mx1.freebsd.org (Postfix) with ESMTPS id 7DF901379; Wed, 14 Sep 2016 21:51:58 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u8ELpvCv033968; Wed, 14 Sep 2016 21:51:57 GMT (envelope-from jkim@FreeBSD.org) Received: (from jkim@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u8ELpvlh033965; Wed, 14 Sep 2016 21:51:57 GMT (envelope-from jkim@FreeBSD.org) Message-Id: <201609142151.u8ELpvlh033965@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jkim set sender to jkim@FreeBSD.org using -f From: Jung-uk Kim Date: Wed, 14 Sep 2016 21:51:57 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r422162 - in head/korean/hunspell: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Sep 2016 21:51:58 -0000 Author: jkim Date: Wed Sep 14 21:51:57 2016 New Revision: 422162 URL: https://svnweb.freebsd.org/changeset/ports/422162 Log: Unbreak the port and modernize. Added: head/korean/hunspell/files/patch-tests_runtest.py (contents, props changed) Deleted: head/korean/hunspell/files/patch-Makefile Modified: head/korean/hunspell/Makefile head/korean/hunspell/distinfo Modified: head/korean/hunspell/Makefile ============================================================================== --- head/korean/hunspell/Makefile Wed Sep 14 20:36:18 2016 (r422161) +++ head/korean/hunspell/Makefile Wed Sep 14 21:51:57 2016 (r422162) @@ -2,32 +2,42 @@ PORTNAME= hunspell PORTVERSION= 0.5.6 +PORTREVISION= 1 CATEGORIES= korean textproc -MASTER_SITES= GOOGLE_CODE -DISTNAME= ${PORTNAME}-dict-ko-${PORTVERSION} MAINTAINER= jkim@FreeBSD.org COMMENT= Korean hunspell dictionaries -LICENSE= GPLv2 LGPL21 MPL +LICENSE= GPLv2+ LGPL21+ MPL LICENSE_COMB= dual +LICENSE_FILE_GPLv2+ = ${WRKSRC}/LICENSE.GPL +LICENSE_FILE_LGPL21+ = ${WRKSRC}/LICENSE.LGPL +LICENSE_FILE_MPL= ${WRKSRC}/LICENSE.MPL + +BUILD_DEPENDS= py${PYTHON_SUFFIX}-lxml>=0:devel/py-lxml +TEST_DEPENDS= hunspell:textproc/hunspell + +GH_ACCOUNT= changwoo +GH_PROJECT= ${PORTNAME}-dict-ko +USE_GITHUB= yes -BROKEN= Unfetchable (google code has gone away) - -BUILD_DEPENDS+= py*-lxml>=0:devel/py-lxml - -USES= gmake python:build tar:xz +NO_ARCH= yes +USES= python:build,test PLIST_FILES= %%DATADIR%%/ko_KR.aff \ %%DATADIR%%/ko_KR.dic -PROJECTHOST= spellcheck-ko - -MAKE_ENV+= PYTHON=${PYTHON_CMD} - +do-build: + @(cd ${WRKSRC} && ${PYTHON_CMD} make-aff-dic.py ko_KR.aff ko_KR.dic \ + dict-ko-builtins.xml dict-ko-galkwi.xml) + +do-test: + @(cd ${WRKSRC}/tests && for T in $$(ls -1 *.test); do \ + echo "Testing $$T..."; \ + ${PYTHON_CMD} runtest.py $$T || exit 1; done) do-install: ${MKDIR} ${STAGEDIR}${DATADIR} - ${INSTALL_DATA} ${WRKSRC}/ko.aff ${STAGEDIR}${DATADIR}/ko_KR.aff - ${INSTALL_DATA} ${WRKSRC}/ko.dic ${STAGEDIR}${DATADIR}/ko_KR.dic + ${INSTALL_DATA} ${WRKSRC}/ko_KR.aff ${WRKSRC}/ko_KR.dic \ + ${STAGEDIR}${DATADIR} .include Modified: head/korean/hunspell/distinfo ============================================================================== --- head/korean/hunspell/distinfo Wed Sep 14 20:36:18 2016 (r422161) +++ head/korean/hunspell/distinfo Wed Sep 14 21:51:57 2016 (r422162) @@ -1,2 +1,3 @@ -SHA256 (hunspell-dict-ko-0.5.6.tar.xz) = 20d5774956504fafbe4be1b225ce9a264d8582648886790a3ad2f6efbdea3a1c -SIZE (hunspell-dict-ko-0.5.6.tar.xz) = 336100 +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 Added: head/korean/hunspell/files/patch-tests_runtest.py ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/korean/hunspell/files/patch-tests_runtest.py Wed Sep 14 21:51:57 2016 (r422162) @@ -0,0 +1,11 @@ +--- tests/runtest.py.orig 2012-10-06 23:29:32 UTC ++++ tests/runtest.py +@@ -19,7 +19,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'], + stdin=subprocess.PIPE, stdout=subprocess.PIPE) + hunspell.stdout.readline() # the first line "Hunspell 1.2.8 ..." + lineno = 0