/
Portfile
147 lines (116 loc) · 4.63 KB
/
Portfile
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
PortSystem 1.0
name hunspell-en
version 2017.08.24
revision 2
distname scowl-${version}
categories textproc
license permissive
maintainers nomaintainer
description SCOWL based hunspell english dictionaries.
long_description ${description}
platforms darwin
homepage http://wordlist.aspell.net/dicts/
master_sites sourceforge:wordlist
supported_archs noarch
checksums rmd160 74e1de4c302fd9c08a4cb6ffc09d91ab591e9696 \
sha256 ba84da9f5af06dbfded82236372545c06fd8162c3d48d11410bdfcf27ef3b0cd
use_configure no
depends_build port:aspell \
port:dos2unix
depends_lib port:hunspell
build.dir ${worksrcpath}/speller
build.cmd ./make-hunspell-dict
build.target -all
use_parallel_build no
set installdir "$destroot$prefix/share/hunspell/"
pre-destroot {
xinstall -d -m 755 $installdir
}
subport hunspell-en {
long_description ${description}
pre-configure {
ui_error "Please choose one of the subports: \
hunspell-en_AU, hunspell-en_AU_large, \
hunspell-en_CA, hunspell-en_CA_large, \
hunspell-en_GB_ise, hunspell-en_GB_ize, hunspell-en_GB_large, \
hunspell-en_US or hunspell-en_US_large."
return -code error
}
}
# use MacPorts perl https://trac.macports.org/ticket/55116
pre-configure {
reinplace -locale C -W ${worksrcpath} "s|/usr/bin/perl|${prefix}/bin/perl|g" mk-list
reinplace -locale C -W ${worksrcpath}/speller "s|/usr/bin/perl|${prefix}/bin/perl|g" \
add-no-suggest munch-list
reinplace -locale C -W ${worksrcpath}/src "s|/usr/bin/perl|${prefix}/bin/perl|g" \
add-accents add-affixes add-other-forms add-other-spellings clean-alan-list \
cmp-final count find-ss get-level make-README proc-alt12dicts proc-census \
proc-neol proc-uk-freq-class rand-sample.pl rand-samples remove-plurals
}
subport hunspell-en_AU {
long_description ${description}: AU English dictionary
destroot {
xinstall -m 644 ${worksrcpath}/speller/en_AU.aff $installdir
xinstall -m 644 ${worksrcpath}/speller/en_AU.dic $installdir
}
}
subport hunspell-en_AU_large {
long_description ${description}: large AU English dictionary
destroot {
xinstall -m 644 ${worksrcpath}/speller/en_AU-large.aff $installdir
xinstall -m 644 ${worksrcpath}/speller/en_AU-large.dic $installdir
}
}
subport hunspell-en_CA {
long_description ${description}: CA English dictionary
destroot {
xinstall -m 644 ${worksrcpath}/speller/en_CA.aff $installdir
xinstall -m 644 ${worksrcpath}/speller/en_CA.dic $installdir
}
}
subport hunspell-en_CA_large {
long_description ${description}: large CA English dictionary
destroot {
xinstall -m 644 ${worksrcpath}/speller/en_CA-large.aff $installdir
xinstall -m 644 ${worksrcpath}/speller/en_CA-large.dic $installdir
}
}
subport hunspell-en_GB_ise {
long_description ${description}: GB English dictionary (-ise version)
destroot {
xinstall -m 644 ${worksrcpath}/speller/en_GB-ise.aff $installdir
xinstall -m 644 ${worksrcpath}/speller/en_GB-ise.dic $installdir
}
}
subport hunspell-en_GB_ize {
long_description ${description}: GB English dictionary (-ize version)
destroot {
xinstall -m 644 ${worksrcpath}/speller/en_GB-ize.aff $installdir
xinstall -m 644 ${worksrcpath}/speller/en_GB-ize.dic $installdir
}
}
subport hunspell-en_GB_large {
long_description ${description}: large GB English dictionary
destroot {
xinstall -m 644 ${worksrcpath}/speller/en_GB-large.aff $installdir
xinstall -m 644 ${worksrcpath}/speller/en_GB-large.dic $installdir
}
}
subport hunspell-en_US {
long_description ${description}: US English dictionary
destroot {
xinstall -m 644 ${worksrcpath}/speller/en_US.aff $installdir
xinstall -m 644 ${worksrcpath}/speller/en_US.dic $installdir
}
}
subport hunspell-en_US_large {
long_description ${description}: large US English dictionary
destroot {
xinstall -m 644 ${worksrcpath}/speller/en_US-large.aff $installdir
xinstall -m 644 ${worksrcpath}/speller/en_US-large.dic $installdir
}
}
livecheck.type regex
livecheck.url https://sourceforge.net/projects/wordlist/files/SCOWL/
livecheck.regex "(\[0-9.\]+)${extract.suffix}"