summaryrefslogtreecommitdiffstats
path: root/korean/hunspell/Makefile
blob: a087b9ce5f8cf52d652325c32e7fd046a841f438 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# $FreeBSD$

PORTNAME=	hunspell
PORTVERSION=	0.5.6
PORTREVISION=	3
CATEGORIES=	korean textproc

MAINTAINER=	jkim@FreeBSD.org
COMMENT=	Korean hunspell dictionaries

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

NO_ARCH=	yes
USES=		python:build,test

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)

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 \
	    ${STAGEDIR}${DATADIR}

.include <bsd.port.mk>
OpenPOWER on IntegriCloud