aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/en-hunspell/Makefile
blob: 7dd3a2399ce950335a35d2d8158fecbf1329e4c2 (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
# New ports collection makefile for:    en-hunspell
# Date created:     2011-07-20
# Whom:         Baptiste Daroussin <bapt@FreeBSD.org>
#
# $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

USE_ZIP=    yes
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} ${DATADIR}/
    ${INSTALL_DATA} ${WRKSRC}/*.aff ${WRKSRC}/*.dic ${DATADIR}/
.for ALIAS in ${GBALIASES}
    ${LN} -s en_GB.aff ${DATADIR}/${ALIAS}.aff
    ${LN} -s en_GB.dic ${DATADIR}/${ALIAS}.dic
.endfor
.for ALIAS in ${USALIASES}
    ${LN} -s en_US.aff ${DATADIR}/${ALIAS}.aff
    ${LN} -s en_US.dic ${DATADIR}/${ALIAS}.dic
.endfor

.include <bsd.port.mk>