Lines 1-25
Link Here
|
1 |
# $FreeBSD$ |
1 |
# $FreeBSD$ |
2 |
|
2 |
|
3 |
PORTNAME= hunspell |
3 |
PORTNAME= hunspell |
4 |
PORTVERSION= 7.1 |
4 |
PORTVERSION= 2016.01.19 |
5 |
PORTREVISION= 1 |
|
|
6 |
CATEGORIES= textproc |
5 |
CATEGORIES= textproc |
7 |
MASTER_SITES= SF/wordlist/Hunspell%20en_US/${PORTVERSION}-0/ \ |
6 |
MASTER_SITES= SF/wordlist/speller/${PORTVERSION}/ |
8 |
SF/wordlist/Hunspell%20en_CA/${PORTVERSION}-0/:CA \ |
|
|
9 |
LOCAL/sunpoet/${PORTNAME}/:GB |
10 |
PKGNAMEPREFIX= en- |
7 |
PKGNAMEPREFIX= en- |
11 |
DISTFILES= hunspell-en_US-${PORTVERSION}-0${EXTRACT_SUFX} \ |
8 |
DISTFILES= hunspell-en_US${US_VARIANT}-${PORTVERSION}${EXTRACT_SUFX} \ |
12 |
hunspell-en_CA-${PORTVERSION}-0${EXTRACT_SUFX}:CA \ |
9 |
hunspell-en_CA${CA_VARIANT}-${PORTVERSION}${EXTRACT_SUFX} \ |
13 |
en_GB-1.20.zip:GB |
10 |
hunspell-en_GB${GB_VARIANT}-${PORTVERSION}${EXTRACT_SUFX} |
14 |
DIST_SUBDIR= ${PORTNAME} |
11 |
DIST_SUBDIR= ${PORTNAME} |
15 |
|
12 |
|
16 |
MAINTAINER= office@FreeBSD.org |
13 |
MAINTAINER= office@FreeBSD.org |
17 |
COMMENT= English hunspell dictionaries |
14 |
COMMENT= English hunspell dictionaries |
18 |
|
15 |
|
19 |
# en_CA and en_US are licensed under BSD |
16 |
LICENSE= BSD3CLAUSE |
20 |
# en_GB is licensed under LGPL3 |
|
|
21 |
LICENSE= BSD3CLAUSE LGPL3 |
22 |
LICENSE_COMB= multi |
23 |
|
17 |
|
24 |
USES= zip |
18 |
USES= zip |
25 |
NO_ARCH= yes |
19 |
NO_ARCH= yes |
Lines 26-38
Link Here
|
26 |
NO_BUILD= yes |
20 |
NO_BUILD= yes |
27 |
NO_WRKSUBDIR= yes |
21 |
NO_WRKSUBDIR= yes |
28 |
|
22 |
|
29 |
PLIST_FILES= %%DATADIR%%/en_CA.aff \ |
23 |
OPTIONS_DEFAULT= GB_ISE US_STANDARD CA_STANDARD |
30 |
%%DATADIR%%/en_CA.dic \ |
24 |
OPTIONS_RADIO= American British Canadian |
|
|
25 |
OPTIONS_RADIO_Canadian= CA_STANDARD CA_LARGE |
26 |
OPTIONS_RADIO_American= US_STANDARD US_LARGE |
27 |
OPTIONS_RADIO_British= GB_IZE GB_ISE GB_LARGE |
28 |
GB_IZE_DESC= en_GB dictionary with -ize spelling |
29 |
GB_ISE_DESC= en_GB dictionary with -ise spelling |
30 |
CA_STANDARD_DESC= Canadian dictionary considered standard by maintainers |
31 |
US_STANDARD_DESC= American dictionary considered standard by maintainers |
32 |
GB_LARGE_DESC= Dictionary with more words and multiple variants per word |
33 |
CA_LARGE_DESC= ${GB_LARGE_DESC} |
34 |
US_LARGE_DESC= ${GB_LARGE_DESC} |
35 |
|
36 |
PLIST_FILES= %%DATADIR%%/en_CA${CA_VARIANT}.aff \ |
37 |
%%DATADIR%%/en_CA${CA_VARIANT}.dic \ |
38 |
%%DATADIR%%/README_en_CA${CA_VARIANT}.txt \ |
39 |
%%DATADIR%%/en_GB${GB_VARIANT}.dic \ |
40 |
%%DATADIR%%/en_GB${GB_VARIANT}.aff \ |
41 |
%%DATADIR%%/README_en_GB${GB_VARIANT}.txt \ |
42 |
%%DATADIR%%/en_US${US_VARIANT}.aff \ |
43 |
%%DATADIR%%/en_US${US_VARIANT}.dic \ |
44 |
%%DATADIR%%/README_en_US${US_VARIANT}.txt \ |
31 |
%%DATADIR%%/en_GB.dic \ |
45 |
%%DATADIR%%/en_GB.dic \ |
32 |
%%DATADIR%%/en_GB.aff \ |
46 |
%%DATADIR%%/en_GB.aff \ |
33 |
%%DATADIR%%/en_US.aff \ |
|
|
34 |
%%DATADIR%%/en_US.dic |
35 |
|
47 |
|
|
|
48 |
COPY= -lh # Use hardlinks rather than copies under stage/ |
49 |
|
50 |
.include <bsd.port.options.mk> |
51 |
|
52 |
.for c in CA GB US |
53 |
. for v in STANDARD ISE IZE LARGE |
54 |
. if ${PORT_OPTIONS:M${c}_${v}} |
55 |
${c}_VARIANT= ${v:S/STANDARD//:tl:C/^.+$/-&/} |
56 |
. endif |
57 |
. endfor |
58 |
.endfor |
59 |
|
60 |
.if ${PORT_OPTIONS:MUS_LARGE} |
61 |
PLIST_FILES+= %%DATADIR%%/en_US.aff %%DATADIR%%/en_US.dic |
62 |
.endif |
63 |
.if ${PORT_OPTIONS:MCA_LARGE} |
64 |
PLIST_FILES+= %%DATADIR%%/en_CA.aff %%DATADIR%%/en_CA.dic |
65 |
.endif |
66 |
|
36 |
GBALIASES= en_AG en_AU en_BS en_BW en_BZ en_DK en_GH en_HK en_IE en_IN \ |
67 |
GBALIASES= en_AG en_AU en_BS en_BW en_BZ en_DK en_GH en_HK en_IE en_IN \ |
37 |
en_JM en_NA en_NG en_NZ en_SG en_TT en_ZA en_ZW |
68 |
en_JM en_NA en_NG en_NZ en_SG en_TT en_ZA en_ZW |
38 |
USALIASES= en_PH |
69 |
USALIASES= en_PH |
Lines 44-49
Link Here
|
44 |
do-install: |
75 |
do-install: |
45 |
${MKDIR} ${STAGEDIR}${DATADIR}/ |
76 |
${MKDIR} ${STAGEDIR}${DATADIR}/ |
46 |
${INSTALL_DATA} ${WRKSRC}/*.aff ${WRKSRC}/*.dic ${STAGEDIR}${DATADIR}/ |
77 |
${INSTALL_DATA} ${WRKSRC}/*.aff ${WRKSRC}/*.dic ${STAGEDIR}${DATADIR}/ |
|
|
78 |
${INSTALL_DATA} ${WRKSRC}/README_*.txt ${STAGEDIR}${DATADIR}/ |
79 |
${LN} -s en_GB${GB_VARIANT}.aff ${STAGEDIR}${DATADIR}/en_GB.aff |
80 |
${LN} -s en_GB${GB_VARIANT}.dic ${STAGEDIR}${DATADIR}/en_GB.dic |
81 |
.if ${PORT_OPTIONS:MUS_LARGE} |
82 |
${LN} -s en_US-large.aff ${STAGEDIR}${DATADIR}/en_US.aff |
83 |
${LN} -s en_US-large.dic ${STAGEDIR}${DATADIR}/en_US.dic |
84 |
.endif |
85 |
.if ${PORT_OPTIONS:MCA_LARGE} |
86 |
${LN} -s en_CA-large.aff ${STAGEDIR}${DATADIR}/en_CA.aff |
87 |
${LN} -s en_CA-large.dic ${STAGEDIR}${DATADIR}/en_CA.dic |
88 |
.endif |
47 |
.for ALIAS in ${GBALIASES} |
89 |
.for ALIAS in ${GBALIASES} |
48 |
${LN} -s en_GB.aff ${STAGEDIR}${DATADIR}/${ALIAS}.aff |
90 |
${LN} -s en_GB.aff ${STAGEDIR}${DATADIR}/${ALIAS}.aff |
49 |
${LN} -s en_GB.dic ${STAGEDIR}${DATADIR}/${ALIAS}.dic |
91 |
${LN} -s en_GB.dic ${STAGEDIR}${DATADIR}/${ALIAS}.dic |