1 | # -*- 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 |
---|
2 | # $Id$ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | name tesseract |
---|
7 | version 3.00 |
---|
8 | revision 0 |
---|
9 | categories textproc graphics pdf |
---|
10 | platforms darwin |
---|
11 | |
---|
12 | maintainers emer.net:emer |
---|
13 | |
---|
14 | description Open source OCR engine |
---|
15 | long_description The Tesseract OCR engine was one of the top 3 engines in \ |
---|
16 | the 1995 UNLV Accuracy test. Between 1995 and 2006 it had \ |
---|
17 | little work done on it, but it is probably one of the \ |
---|
18 | most accurate open source OCR engines available. The \ |
---|
19 | source code will read a binary, grey or color image and \ |
---|
20 | output text. A tiff reader is built in that will read \ |
---|
21 | uncompressed TIFF images, or libtiff can be added to read \ |
---|
22 | compressed images. |
---|
23 | |
---|
24 | homepage http://code.google.com/p/tesseract-ocr/ |
---|
25 | master_sites http://tesseract-ocr.googlecode.com/files:src \ |
---|
26 | http://tesseract-ocr.googlecode.com/files:langdata |
---|
27 | |
---|
28 | dist_subdir ${name}/${version}_${revision} |
---|
29 | |
---|
30 | distfiles ${distname}${extract.suffix}:src |
---|
31 | |
---|
32 | set langs { |
---|
33 | chi_tra chi_sim ind swe ron slv srp tgl tur hun fin ita nld nor |
---|
34 | jpn vie spa ukr fra slk kor ell rus por bul lav lit pol deu dan |
---|
35 | ces cat eng |
---|
36 | } |
---|
37 | |
---|
38 | foreach lang ${langs} { |
---|
39 | eval [subst { |
---|
40 | variant ${lang} description "Build with ${lang} data" { |
---|
41 | distfiles-append ${lang}.traineddata.gz:langdata |
---|
42 | |
---|
43 | post-destroot { |
---|
44 | system "zcat ${distpath}/${lang}.traineddata.gz > ${destroot}${prefix}/share/tessdata/${lang}.traineddata" |
---|
45 | } |
---|
46 | } |
---|
47 | }] |
---|
48 | } |
---|
49 | |
---|
50 | universal_variant no |
---|
51 | |
---|
52 | default_variants +eng |
---|
53 | |
---|
54 | extract.only ${distname}${extract.suffix} |
---|
55 | |
---|
56 | checksums ${distname}${extract.suffix} \ |
---|
57 | md5 cc812a261088ea0c3d2da735be35d09f \ |
---|
58 | sha1 1d797cae3d0047d7be6c9b17d1973a9afcf6bd81 \ |
---|
59 | rmd160 82c84c33c414b9196d42f4675251f3ef3ab11b3a \ |
---|
60 | chi_tra.traineddata.gz \ |
---|
61 | md5 06fce5f5c0221286eab591819406d91e \ |
---|
62 | sha1 a9798de7e068d85613602aa33a153da721aadc82 \ |
---|
63 | rmd160 590262a166a86f55177dde0dd0b10926a91c1ef4 \ |
---|
64 | chi_sim.traineddata.gz \ |
---|
65 | md5 127e0b742b615d81c3b97a555acd8285 \ |
---|
66 | sha1 35f0254f159edeed509ec1e0779073bf998b6cdb \ |
---|
67 | rmd160 7a3e5f0f33f9869c10f793daee4883a5167eb178 \ |
---|
68 | ind.traineddata.gz \ |
---|
69 | md5 f4ae2e5668f693cc51c6e3c3f57a8f1d \ |
---|
70 | sha1 f4214ce40c5f6ef92085a8a45e9ff03f7cf7afca \ |
---|
71 | rmd160 bc714068a10982dcf32816e823dbca6be63489ee \ |
---|
72 | swe.traineddata.gz \ |
---|
73 | md5 3787ff0fc1a07517203466830f6f868e \ |
---|
74 | sha1 55291e8ea664155ad51db867284c11ad1a1c5d00 \ |
---|
75 | rmd160 7653dd8a57f75a9e240a8e256c7a4b20a2e91040 \ |
---|
76 | ron.traineddata.gz \ |
---|
77 | md5 7b50075692e7a07ac8f59e0cde51cfb9 \ |
---|
78 | sha1 c20c73a2e17f5fe692de0fe9ac681da3984229ae \ |
---|
79 | rmd160 9755d5002e6dfd581003168bae24bc0697c89318 \ |
---|
80 | slv.traineddata.gz \ |
---|
81 | md5 defc498fa09480ef0052fde79f4f84e5 \ |
---|
82 | sha1 fbe464cd49d6a7495e6d95600d421aa2dd0b9d77 \ |
---|
83 | rmd160 854b6ec39d09ec210a7850d56573f5a77da37b6e \ |
---|
84 | srp.traineddata.gz \ |
---|
85 | md5 c1e0f0ef07d26a72063802370bbfe2c9 \ |
---|
86 | sha1 47afc601b62998e4cc3f7403d846ba861f30b416 \ |
---|
87 | rmd160 70ef247a50a72c5d551f2f7dc246275b9096a9b8 \ |
---|
88 | tgl.traineddata.gz \ |
---|
89 | md5 af86cab0da52fff7e83f9c7668617a21 \ |
---|
90 | sha1 153ba1d0ddd209e1581d81d42fe5346f748e2f27 \ |
---|
91 | rmd160 669a4ea7bb6beac425070d8ba424f341eee447a9 \ |
---|
92 | tur.traineddata.gz \ |
---|
93 | md5 b0f4798bf1f9ee541ae73aff49f08821 \ |
---|
94 | sha1 a01da62f3830833b258e2d46ce0f2852571470e6 \ |
---|
95 | rmd160 15cebea216b539681d7306cab3f31f2773cd93e2 \ |
---|
96 | hun.traineddata.gz \ |
---|
97 | md5 966fa3ebe24d7dfade951e0a4a9f52b5 \ |
---|
98 | sha1 32ecad03877a841fbc0cb31c269214640008d604 \ |
---|
99 | rmd160 7acc341ed55ca61869c7876b8b37ac2a143abd5b \ |
---|
100 | fin.traineddata.gz \ |
---|
101 | md5 33812ef03197dce20b8c888409d8541a \ |
---|
102 | sha1 004d74d13f7b53cbefb86e2ba12bc67dce81d936 \ |
---|
103 | rmd160 a467774acf081aff2bd7fc5e1557eb1486336b6f \ |
---|
104 | ita.traineddata.gz \ |
---|
105 | md5 9a307661a010703cd2bb265a3da5eaff \ |
---|
106 | sha1 c166ba79256f6e7c1b993b2db7403d794131fe05 \ |
---|
107 | rmd160 522f4110223c0da1894d39bc49fd1400b1527e2e \ |
---|
108 | nld.traineddata.gz \ |
---|
109 | md5 89992f69802b9f4a36fec40efd95c503 \ |
---|
110 | sha1 f7e3d46b1747a19158ac0797e859b65c56b5045f \ |
---|
111 | rmd160 4026b44d7849a0c78d1831e00805f985ffad6421 \ |
---|
112 | nor.traineddata.gz \ |
---|
113 | md5 e09cc75fa17b8d4a5c2d02de73267aae \ |
---|
114 | sha1 fb65dede5fbe120823ecdcb0c6cbd1222ae7e245 \ |
---|
115 | rmd160 36ee419e1ba3a49db749f15c5b204bfaee0bc848 \ |
---|
116 | jpn.traineddata.gz \ |
---|
117 | md5 cad3dd7c9401fa0676bf195456ba0c14 \ |
---|
118 | sha1 6d605eee29e76fb841924916bd34095bbbbc45c0 \ |
---|
119 | rmd160 47dba0ff10e9bd6979a31fa1ccc79b7d84775432 \ |
---|
120 | vie.traineddata.gz \ |
---|
121 | md5 af75c7a696b18a1d2e4f7e21a222cf95 \ |
---|
122 | sha1 9158748a63afe87e4e25b5f32c222555f2ad8417 \ |
---|
123 | rmd160 74826cef758cf5a8c561c2e6381e053e151a6a91 \ |
---|
124 | spa.traineddata.gz \ |
---|
125 | md5 dd9078211127189995504f034468fcd6 \ |
---|
126 | sha1 7b30950749e84891fdef5f89409c3cf1b6418cd3 \ |
---|
127 | rmd160 92303810e9429ca5a9daa39e02a015a78ac09cd6 \ |
---|
128 | ukr.traineddata.gz \ |
---|
129 | md5 56a82ac3994f0552d54fd14ff5ed6817 \ |
---|
130 | sha1 06ceebfd91fa473d6d91f8a2856c66733bea0131 \ |
---|
131 | rmd160 0f040ec98453c38a0f19e90d7f34ab0dee8e9778 \ |
---|
132 | fra.traineddata.gz \ |
---|
133 | md5 e6000550883684b5e93b7e0a21016287 \ |
---|
134 | sha1 8d698bb3b659e862b3274970a57b3214de76f1ff \ |
---|
135 | rmd160 97ab2fb064da5d7d15032fd1c5e87aa2f14dc1b3 \ |
---|
136 | slk.traineddata.gz \ |
---|
137 | md5 2e7fbf80215b38f423dcf78e396b92d7 \ |
---|
138 | sha1 16207e26d53504f98a7b1fadcb873dc4611149ec \ |
---|
139 | rmd160 4e661fce45076128455f2b2d0e60b93d67a8038d \ |
---|
140 | kor.traineddata.gz \ |
---|
141 | md5 909b811739b2e7d51cc3ca109998353a \ |
---|
142 | sha1 37bcd8110a426714f54d99f58b30104b3014ce5a \ |
---|
143 | rmd160 1aa22020b2bcdea7721d111065b2070191149e32 \ |
---|
144 | ell.traineddata.gz \ |
---|
145 | md5 0d3a21c18f752eb058e7b854c37b7a69 \ |
---|
146 | sha1 b7a449fc320cc579a729c0352e5cc642f565e64e \ |
---|
147 | rmd160 791acfb5a60875d02e23ebc8c66243adedb5cf39 \ |
---|
148 | rus.traineddata.gz \ |
---|
149 | md5 c477b7faddc044a4595135d0378be34c \ |
---|
150 | sha1 2740accefc45e4ae004269ccb195948b8037a583 \ |
---|
151 | rmd160 aeb8ab308499f2414c21f5299f2abf5082c6a282 \ |
---|
152 | por.traineddata.gz \ |
---|
153 | md5 d0b59fcfd80f9e09be890647ae93f00d \ |
---|
154 | sha1 883e5e1fa1d991ef6d202951ee9d26a71db181dc \ |
---|
155 | rmd160 90a73ffdf23c3ca9cc1b30d5f30943c67f4f59a0 \ |
---|
156 | bul.traineddata.gz \ |
---|
157 | md5 a7501f9a48bc7ef2fa50cba8b8f0c7b1 \ |
---|
158 | sha1 a9efae5e347a36ea90bd2ad357e732ad4da47fd3 \ |
---|
159 | rmd160 cbcdb7532af8c03abb5f8bcdb5b34516b6a522e4 \ |
---|
160 | lav.traineddata.gz \ |
---|
161 | md5 1f366f55e5e0725deb751ec847bf42dc \ |
---|
162 | sha1 b4efd308e725d743884f2984f804c82dd5382f63 \ |
---|
163 | rmd160 eb1efa104597850e47cdae8fa70cc4f120959810 \ |
---|
164 | lit.traineddata.gz \ |
---|
165 | md5 1b4460ab998151f1ed8e48928ded58be \ |
---|
166 | sha1 7adbe396a281c0f87c0b95da7e84b5b6029e3dbd \ |
---|
167 | rmd160 65aab59e4be61c3734645f96e688dbd81aa384b1 \ |
---|
168 | pol.traineddata.gz \ |
---|
169 | md5 c3d6447245663138f1d3aa4567c72192 \ |
---|
170 | sha1 a303fc31b4b60532b01b4ccdc838f02ff0113f27 \ |
---|
171 | rmd160 08197fede8151cfdef50a6d2e41c55f384d3f909 \ |
---|
172 | deu.traineddata.gz \ |
---|
173 | md5 be81a761f61800f6d39393a31435fff3 \ |
---|
174 | sha1 c4b3ecde18ce9f114faba88cdfd0308f90801266 \ |
---|
175 | rmd160 f5e26562dfb3259c0c6fca0c9d1a23589f6af981 \ |
---|
176 | dan.traineddata.gz \ |
---|
177 | md5 7aaeb321dbf069d14d2601dc36d3dddc \ |
---|
178 | sha1 bfac9c00d28fc4b19034c2098d41087a173084ae \ |
---|
179 | rmd160 f354451e42486609ff631b5a3ba52134cc0a706f \ |
---|
180 | ces.traineddata.gz \ |
---|
181 | md5 2e97c952075064834f1cad6a133970fa \ |
---|
182 | sha1 dbec19aa23f42a08e6b195a96e64b443f7519620 \ |
---|
183 | rmd160 356bc1982be43cb89e1fa62b1af53a0f28d14444 \ |
---|
184 | cat.traineddata.gz \ |
---|
185 | md5 308099b2b95834916ec410191c86cd48 \ |
---|
186 | sha1 0301a9c81c1d646bd1b135ca89476fb63bd634f8 \ |
---|
187 | rmd160 3b1a5067e97e4c104ee766fc89cc47c261b55b38 \ |
---|
188 | eng.traineddata.gz \ |
---|
189 | md5 d91041ad156cf2db36664e91ef799451 \ |
---|
190 | sha1 bf72c6c4542d67ce1d6def9d4e8432c7e98a654b \ |
---|
191 | rmd160 d35ef8383c58faa6765e2eceb4da11fc688f488b |
---|
192 | |
---|
193 | depends_lib port:tiff \ |
---|
194 | port:zlib \ |
---|
195 | port:libpng \ |
---|
196 | port:jpeg |
---|
197 | |
---|
198 | livecheck.type regex |
---|
199 | livecheck.url ${master_sites} |
---|
200 | livecheck.regex "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}" |
---|