aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/en-hunspell/Makefile
blob: a5e5282443f90569650925e9862d7c3b0130d5e4 (plain) (blame)
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
44
45
46
47
48
49
50
51
52
53
54
55
56
# $FreeBSD$

PORTNAME=   hunspell
PORTVERSION=    7.1
PORTREVISION=   1
CATEGORIES= textproc
MASTER_SITES=   SF/wordlist/Hunspell%20en_US/${PORTVERSION}-0/ \
        SF/wordlist/Hunspell%20en_CA/${PORTVERSION}-0/:CA \
        LOCAL/sunpoet/${PORTNAME}/:GB
PKGNAMEPREFIX=  en-
DISTFILES=  hunspell-en_US-${PORTVERSION}-0${EXTRACT_SUFX} \
        hunspell-en_CA-${PORTVERSION}-0${EXTRACT_SUFX}:CA \
        en_GB-1.20.zip:GB
DIST_SUBDIR=    ${PORTNAME}

MAINTAINER= office@FreeBSD.org
COMMENT=    English hunspell dictionaries

# en_CA and en_US are licensed under BSD
# en_GB is licensed under LGPL3
LICENSE=    BSD3CLAUSE LGPL3
LICENSE_COMB=   multi

USES=       zip
NO_BUILD=   yes
NO_WRKSUBDIR=   yes

PLIST_FILES=    %%DATADIR%%/en_CA.aff \
        %%DATADIR%%/en_CA.dic \
        %%DATADIR%%/en_GB.dic \
        %%DATADIR%%/en_GB.aff \
        %%DATADIR%%/en_US.aff \
        %%DATADIR%%/en_US.dic
PLIST_DIRSTRY=  %%DATADIR%%

GBALIASES=  en_AG en_AU en_BS en_BW en_BZ en_DK en_GH en_HK en_IE en_IN \
        en_JM en_NA en_NG en_NZ en_SG en_TT en_ZA en_ZW
USALIASES=  en_PH
.for ALIAS in ${GBALIASES} ${USALIASES}
PLIST_FILES+=   %%DATADIR%%/${ALIAS}.aff \
        %%DATADIR%%/${ALIAS}.dic
.endfor

do-install:
    ${MKDIR} ${STAGEDIR}${DATADIR}/
    ${INSTALL_DATA} ${WRKSRC}/*.aff ${WRKSRC}/*.dic ${STAGEDIR}${DATADIR}/
.for ALIAS in ${GBALIASES}
    ${LN} -s en_GB.aff ${STAGEDIR}${DATADIR}/${ALIAS}.aff
    ${LN} -s en_GB.dic ${STAGEDIR}${DATADIR}/${ALIAS}.dic
.endfor
.for ALIAS in ${USALIASES}
    ${LN} -s en_US.aff ${STAGEDIR}${DATADIR}/${ALIAS}.aff
    ${LN} -s en_US.dic ${STAGEDIR}${DATADIR}/${ALIAS}.dic
.endfor

.include <bsd.port.mk>