1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-21 04:06:46 +00:00

Upgrade to 0.7.1.

Approved by:	maintainer time-out
This commit is contained in:
Thierry Thomas 2018-10-22 20:08:54 +00:00
parent eea0292045
commit 9daefa8d15
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=482778
4 changed files with 42 additions and 20 deletions

View File

@ -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
pre-build:
.for f in Makefile tests/Makefile
${REINPLACE_CMD} -e 's|python3|${PYTHON_CMD}|' ${WRKSRC}/${f}
.endfor
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_KR.aff ${WRKSRC}/ko_KR.dic \

View File

@ -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

View File

@ -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

View File

@ -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