View | Details | Raw Unified | Return to bug 202685 | Differences between
and this patch

Collapse All | Expand All

(-)Makefile (-16 / +58 lines)
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
(-)distinfo (-6 / +14 lines)
Lines 1-6 Link Here
1
SHA256 (hunspell/hunspell-en_US-7.1-0.zip) = e1f341803f0aedb1a0d00ca1db988506fd6fe216758367e4bed66e2f2d22a198
1
SHA256 (hunspell/hunspell-en_CA-2016.01.19.zip) = 00aea3cc360f6922b7b3978095cb963ca9c9fb76e7c0aa401da86f3a57e48920
2
SIZE (hunspell/hunspell-en_US-7.1-0.zip) = 192842
2
SHA256 (hunspell/hunspell-en_CA-large-2016.01.19.zip) = 04fd5dcfdca048e18640a1d420077473ab105431fc14ebe307bda452732abf6c
3
SHA256 (hunspell/hunspell-en_CA-7.1-0.zip) = 9229ffb96f6cdfd72dd03db4477c7416e9b90166498be2a5f487cc42e23f3223
3
SHA256 (hunspell/hunspell-en_GB-ise-2016.01.19.zip) = d17486b550fa22e2da31f647daceec84ab6354289b99d5088e12f63d88a9a027
4
SIZE (hunspell/hunspell-en_CA-7.1-0.zip) = 193289
4
SHA256 (hunspell/hunspell-en_GB-ize-2016.01.19.zip) = 52804f35c1dc44adabaf86fc0316181c2bed28c857880fa624aea248a23d677f
5
SHA256 (hunspell/en_GB-1.20.zip) = 5869d8bd80eb2eb328ebe36b356348de4ae2acb1db6df39d1717d33f89f63728
5
SHA256 (hunspell/hunspell-en_GB-large-2016.01.19.zip) = edcca9b78ae8923e6209db523355b4a91ac6d9daad94df12413498b4e5069719
6
SIZE (hunspell/en_GB-1.20.zip) = 250182
6
SHA256 (hunspell/hunspell-en_US-2016.01.19.zip) = fe0c48084bfd534f244ecd12836ae5e0b27fc10dab28879fdafece892267a674
7
SHA256 (hunspell/hunspell-en_US-large-2016.01.19.zip) = 1c8a7a5a993313620a7d96e74e5c45f4df7ab9ad0141764ffeea66db9bfc089f
8
SIZE (hunspell/hunspell-en_CA-2016.01.19.zip) = 76872
9
SIZE (hunspell/hunspell-en_CA-large-2016.01.19.zip) = 312039
10
SIZE (hunspell/hunspell-en_GB-ise-2016.01.19.zip) = 196436
11
SIZE (hunspell/hunspell-en_GB-ize-2016.01.19.zip) = 196388
12
SIZE (hunspell/hunspell-en_GB-large-2016.01.19.zip) = 314577
13
SIZE (hunspell/hunspell-en_US-2016.01.19.zip) = 195799
14
SIZE (hunspell/hunspell-en_US-large-2016.01.19.zip) = 310556
(-)pkg-descr (-3 / +4 lines)
Lines 1-4 Link Here
1
English hunspell dictionaries
1
This port installs English dictionaries for US, British, and Canadian
2
variants of the language. Although us of the "standard" ones is
3
encouraged, multiple spelling options are available for all three.
2
4
3
WWW: http://wordlist.sourceforge.net/
5
WWW: http://wordlist.aspell.net/
4
WWW: http://en-gb.pyxidium.co.uk/dictionary/
(-)pkg-help (+31 lines)
Line 0 Link Here
1
README file for English Hunspell dictionaries derived from SCOWL.
2
3
The following dictionaries are available:
4
5
  en_US (American)
6
  en_CA (Canadian)
7
  en_GB-ise (British with "ise" spelling)
8
  en_GB-ize (British with "ize" spelling)
9
10
  en_US-large
11
  en_CA-large
12
  en_GB-large (with both "ise" and "ize" spelling)
13
14
The normal (non-large) dictionaries correspond to SCOWL size 60 and,
15
to encourage consistent spelling, generally only include one spelling
16
variant for a word.  The large dictionaries correspond to SCOWL size
17
70 and may include multiple spelling for a word when both variants are
18
considered almost equal.  The larger dictionaries however (1) have not
19
been as carefully checked for errors as the normal dictionaries and
20
thus may contain misspelled or invalid words; and (2) contain
21
uncommon, yet valid, words that might cause problems as they are
22
likely to be misspellings of more common words (for example, "ort" and
23
"calender").
24
25
To get an idea of the difference in size, here are 25 random words
26
only found in the large dictionary for American English:
27
28
  Bermejo Freyr's Guenevere Hatshepsut Nottinghamshire arrestment
29
  crassitudes crural dogwatches errorless fetial flaxseeds godroon
30
  incretion jalape~no's kelpie kishkes neuroglias pietisms pullulation
31
  stemwinder stenoses syce thalassic zees

Return to bug 202685