--- /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/textproc/tesseract/Portfile	2015-05-13 06:31:59.000000000 +0200
+++ dev/macports/textproc/tesseract/Portfile	2015-10-30 11:19:01.000000000 +0100
@@ -3,8 +3,9 @@
 
 PortSystem          1.0
 
-name                tesseract
-version             3.02.02
+PortGroup           github 1.0
+
+github.setup        tesseract-ocr tesseract 3.04.00
 categories          textproc graphics pdf
 platforms           darwin
 license             Apache-2
@@ -21,24 +22,22 @@
                     uncompressed TIFF images,  or libtiff can be added to read \
                     compressed images.
 
-homepage            http://code.google.com/p/tesseract-ocr/
-master_sites        googlecode:tesseract-ocr
+github.master_sites ${github.homepage}/archive/${git.branch}
 
-checksums           rmd160  86414399f87e264eaf372e7dbd2dc31a7aed5d69 \
-                    sha256  6f142b56ff27092f237aa78d78014703dfaa2a06a57c49e5bc3a5e98358140fb
+checksums           rmd160  02fa37b56ae668e68fffadb94e4f652372f67a05 \
+                    sha256  7e6e48b625e1fba9bc825a4ef8c39f12c60aae1084939133b3c6a00f8f8dc38c
 
 if {${name} eq ${subport}} {
     revision                2
 
-    depends_lib             port:tiff \
-                            port:zlib \
+    depends_lib             port:zlib \
                             port:libpng \
                             port:leptonica \
                             port:jpeg
     
     configure.env-append    LIBLEPT_HEADERSDIR=${prefix}/include/leptonica
 
-    livecheck.regex         "tesseract-ocr-(\[\\d\.\]*\\d)${extract.suffix}"
+    livecheck.regex         "/tag/(\[\.0-9\]+\[-a-z\]*)"
 } else {
     revision                1
 
@@ -48,261 +47,401 @@
 }
 
 set langs {
-    afr         3.02    Afrikaans {
-                rmd160  3668e993e44feed9bfd8a9db2ba6f29f5f239a23 \
-                sha256  371399ce6700f28d04ccfc12e421f315e356e3aa26575b27d06083c06987784d
-    }
-    ara         3.02    Arabic {
-                rmd160  a57502bacac49f396ad18254f8021d141f1d9908 \
-                sha256  2c7be319c30e93950c121897969c1bc1eb1d6bdceb75f1184ee34a6f01d66b6a
-    }
-    aze         3.02    Azerbaijani {
-                rmd160  44a89d7b69caef6d52887069ccb516ff660d8cf0 \
-                sha256  0f17a06a163d97ec23db3ab14b91b84a67aeba1e441ca5e53a8632b2110a0e79
-    }
-    bel         3.02    Belarusian {
-                rmd160  e09918242105a320ba40a4333fa264f933c35fef \
-                sha256  e59e008c542f786f6f7bd14c6608b2c128c9297d6bede647ae357f7421f7a3e7
-    }
-    ben         3.02    Bengali {
-                rmd160  717de30e225380f9fb7a0845d9b0288a3074f58c \
-                sha256  14a87e0762dcee0cd95acfd3b370b81fd14a003d39328ed97db0b28c55d31e50
-    }
-    bul         3.02    Bulgarian {
-                rmd160  ad807968a439d969277b5c10fcdaf11541388fdd \
-                sha256  1b8b4d7b12d896cf9f7e60e8e3274d3891886544253d41681dd9b32d6567e3f3
-    }
-    cat         3.02    Catalan {
-                rmd160  e477eb53f518f8fd985ec18a2f790da103a46c35 \
-                sha256  894af4c718e821cdc4ae3ec65838b174ac8a003e5417a08557698e1576ac3a34
-    }
-    ces         3.02    Czech {
-                rmd160  e052064161b85d7df022349d4ee6ef5d5ddf7bed \
-                sha256  843522eddcd0e2059a1c7069183b68c2459d527157bc47833a79b6ff56bb09de
-    }
-    chi_sim     3.02    {Chinese (Simplified)} {
-                rmd160  ca385bdee6ddbd3e96fb2f6ea707ed3e288dc76c \
-                sha256  f5b196b5bea6917bcbbf15131b4c2afe94d34c2d9e21d08c0ca42dfbe5aa1095
-    }
-    chi_tra     3.02    {Chinese (Traditional)} {
-                rmd160  100faf598d64bee7145847b243dd336fe13bc8ee \
-                sha256  78742e273a9ca74a6ab5543414e04bcac90d03a317dd35edc634956beafa3d20
-    }
-    chr         3.02    Cherokee {
-                rmd160  ce4fa8a150cca59b4a554aa68a8a1274801cede4 \
-                sha256  27c917ba39898d63752b2a4ecb0cd8f688772bcbbae2bf430a93d894d328a4c1
-    }
-    dan         3.02    Danish {
-                rmd160  e9ab962bdb6b7f94b37b85f6b04af1dee0f8fab1 \
-                sha256  deb93f6326aa8a4d353159201681947a808577662084d4060daea7d644e63eb9
-    }
-    deu         3.02    German {
-                rmd160  7dbb3078b859bff828fbcebc2f57b232ae8fa700 \
-                sha256  d03cdd0b00d368ff49ebaf77b8758bcf2ff1b0d39331368987e622ac261443ca
-    }
-    ell         3.02    Greek {
-                rmd160  a741981cef2274cd583108e2c16e8e6ed12e58bb \
-                sha256  29745ced8fbfb4ec9abebeb99e4b385821cb5eb0ed81fb1870b93543553b8fba
-    }
-    eng         3.02    English {
-                rmd160  795d2050133b5398a9f13eb291f9b36da124ec5a \
-                sha256  c110029560e7f6d41cb852ca23b66899daa4456d9afeeae9d062204bd271bdf8
-    }
-    enm         3.02    {Middle English} {
-                rmd160  c7e43a22e207245b9b6784bc2c92e5ca5dd4c477 \
-                sha256  19c9bd89c823451655e3f265b7fcd06727cd36ddec01b8fad9900159b688a1e3
-    }
-    epo         3.02    Esperanto {
-                rmd160  ee80cb8814d3518c6b7b8efba83563e2be38a284 \
-                sha256  22ae681c34ee7aa825994115f927c2e1f8ec1a98c97c01218b98d2549af22252
-    }
-    epo_alt     3.02    {Esperanto (alt)} {
-                rmd160  a9c2c799085805bf027013716bac5c39feb15aff \
-                sha256  e516b8362fa060be720d2768a8abbee9cc965b9162249c5914ef1d8159e03dc2
-    }
-    equ         3.02    {Math / Equations} {
-                rmd160  63c2fe3b12b771a1f832261e366b6ed494779ae4 \
-                sha256  2010e724686171ef2eb3388df00d8d89ba7e50cb2298b0368b847fffb95d804e
-    }
-    est         3.02    Estonian {
-                rmd160  e2cb8fd06c08fc0579339f2777d04db6d7b7c235 \
-                sha256  d5d6b9d4b567a10e2f63cafd2f60bf5b0c994e415470becafd729b20349e2e80
-    }
-    eus         3.02    Basque {
-                rmd160  f8e7a858ac29a1a0260a1feaaba132fd5d760451 \
-                sha256  78359d57896623cf8211e17604a9dfa574e2253c9157035f439c5fbe06cd5019
-    }
-    fin         3.02    Finnish {
-                rmd160  ecbf8d0b61849dd8bfc3389e834af01965f853a0 \
-                sha256  e02ff1798960d3af15c0dafafac0de954442cfb13f4eff45c3263c2ff6e59026
-    }
-    fra         3.02    French {
-                rmd160  40b2b7bc846e36f46c12114c05e8b066a1bd3ff7 \
-                sha256  74592f5f2ab73a6668934922753be0505fc4333ee790543949f8b70f03eab101
-    }
-    frk         3.02    Frankish {
-                rmd160  63c4aee87dd263f29c513cdf86437643f945f843 \
-                sha256  a9f4219d6b2ef4ed8b76c86be99ae3c9190509df72ba6f0217a77f7205ec52f8
-    }
-    frm         3.02    {Middle French} {
-                rmd160  3e6f57f7414c1e88a2dce997b5e7e5f1b3fca598 \
-                sha256  f32f774d88e7936f16ff41b832cecfbd71f82c9bf7584330d750da941c07ca79
-    }
-    glg         3.02    Galician {
-                rmd160  d9e37bf597ef20c20191c2b4f27ff866b4a17838 \
-                sha256  82ffa27c4de17545fa9d46e0fcd5690b1b59bcce9e93f71c0a41d19afbe869ee
-    }
-    grc         3.02    {Ancient Greek} {
-                rmd160  f3063b271102598e3d0985a13d8c497a8ac2af70 \
-                sha256  586b955eb9fba5a304cfa37bfdd7c89f2db33335d5ae83f2962aed8903266805
-    }
-    heb         3.02    Hebrew {
-                rmd160  1c88989da04ae2514e92836a9682defd72a8d612 \
-                sha256  da47b0cfe241775c9b36339efda6339d59e146fa6143c65a2253eb9f67164811
-    }
-    hin         3.02    Hindi {
-                rmd160  7ac8934ff29c8c65ca42c1ae4533e850613a871a \
-                sha256  91f91da5adc73ee71150865d6598df8a50424350480df2753ca9035320b3c78d
-    }
-    hrv         3.02    Croatian {
-                rmd160  999b8e9559b90ff416cabe869f12f915bf43e437 \
-                sha256  e20575f5b0ec73ff7f3197c112a8dcc24303b64016910399d9127bda42e7d866
-    }
-    hun         3.02    Hungarian {
-                rmd160  b92f41f560604c6b733cf5f5deeac2daf3703062 \
-                sha256  edf5cc42b516b2a18681955167d1964dfc7ff8cda642408ebda91b3c4656f9f1
-    }
-    ind         3.02    Indonesian {
-                rmd160  134303a34137b6dfe76f3823f879a163403e22fb \
-                sha256  337ba4400a798c60dee16070071337c96fc67bcb4e2cc1b4676dcbc340fbbcd7
-    }
-    isl         3.02    Icelandic {
-                rmd160  ab9f2dbc392920c07840c5311bf91d07170f9ab1 \
-                sha256  6b226366d8d2d87f859d4099e8b715e3ec3890f9317198e7b8c80fba001055f8
-    }
-    ita         3.02    Italian {
-                rmd160  1967275b5fc1a76a4fbbf97458f7aa61cb77c15e \
-                sha256  26453b302c108e08f594c7a19597382314529f648e141805417f9af1e4c99ac2
-    }
-    jpn         3.02    Japanese {
-                rmd160  7dbcaa6ce64e6a97267d81c706e0d74b3c13aa0f \
-                sha256  09bf447a29e990c065024b3b720fd70f08d596a7be534312fc9e47d0aabf681f
-    }
-    kan         3.02    Kannada {
-                rmd160  192e908039720d9b1c5b3a3c5e774cdaacda35f5 \
-                sha256  15851cc22058c08cad9ec6058113f76966409061f21f5cde8c9cc1d214298c22
-    }
-    kor         3.02    Korean {
-                rmd160  e305a5ea7c2a0635c57b232e9a8302a3e0c9eb8a \
-                sha256  7c85c4107a781d90d6d4adb001f2189b113f9db6942618b4bc47f4cc80cd126a
-    }
-    lav         3.02    Latvian {
-                rmd160  3e555976a384719d10e46b97c838b1a62c34fcbe \
-                sha256  e6a190ee1edf0a58948a9d7b01569fd8a4c05bc678da3a40ad884c0849958c36
-    }
-    lit         3.02    Lithuanian {
-                rmd160  0dbc183bd56a549057d383d216b6df0429e31359 \
-                sha256  350891a182076df2e8067da04b3b2127a77e48782d9905e8339db4f1d6c7a729
-    }
-    mal         3.02    Malayalam {
-                rmd160  1290bba4363a5356153d17252214a7d58c5db1ed \
-                sha256  72b3b23979ae4a6b63518964bf239beae8bb6c02f35a2695f47262178b3fef34
-    }
-    mkd         3.02    Macedonian {
-                rmd160  13aa3ca673c6203ed402f5081d71374fc2e09499 \
-                sha256  ea489277e7a588a1b7566a21cbbd647786f16659cae087a4705d4fdabd823ee6
-    }
-    mlt         3.02    Maltese {
-                rmd160  8885051d58e78a7ec6791d78b81164f657427cbc \
-                sha256  ba99e8bfc753a274bbea38ef44f5abf81e5f12d09f9d12d267436961270ef2de
-    }
-    mkd         3.02    Macedonian {
-                rmd160  13aa3ca673c6203ed402f5081d71374fc2e09499 \
-                sha256  ea489277e7a588a1b7566a21cbbd647786f16659cae087a4705d4fdabd823ee6
-    }
-    msa         3.02    Malay {
-                rmd160  b6d055fb4f324efacfc711b85537449061e53b84 \
-                sha256  f34e4950ad9079f92965a234253cc16f92deb66f1ce4e9c9a885ad2695c2d136
-    }
-    nld         3.02    Dutch {
-                rmd160  41e41ab4c34e04a92148287811e92dd688e1e182 \
-                sha256  5e2e53499a05282968e5a9699aad66ae52a5abf06ae828e2f4cf2c1f6e674a98
-    }
-    nor         3.02    Norwegian {
-                rmd160  9cf47c13e1aef04af77740729dbba480800e9f40 \
-                sha256  6b5c42444595a81b5f6fea859d97999895917bcc2f85a505488ea5c2f4efa01a
-    }
-    pol         3.02    Polish {
-                rmd160  4b9d6d437bf291a88bb366db8497cb5121807043 \
-                sha256  62999058bfb609d95d53bd519c6de99620d025b3bfbc54d8679a87b10474ccbb
-    }
-    por         3.02    Portuguese {
-                rmd160  53359d4e5df589336b29c185181e0b94c4a07f47 \
-                sha256  f9b126323757c62da23aab163e2ce5257d137e86be7c37dea13bb0585e1ace3f
-    }
-    ron         3.02    Romanian {
-                rmd160  adf2b76c4ec2f5e23f85d95b1b444dafb7c441dc \
-                sha256  d7e6454c9cc80c84a654f94283fc06b2df33c5c7fd2d3bff269c3cbdeb0b39e7
-    }
-    rus         3.02    Russian {
-                rmd160  bed7102a68eb1d2672addbfcbaca8adcba436f33 \
-                sha256  091cda49489d15f33916263fc78fbf8dcd4e6547012dc7e1a8496a38ab192315
-    }
-    slk         3.02    Slovakian {
-                rmd160  8cf5f1776f9a99d362428802ab2dc534d6bb5aa7 \
-                sha256  cbd5a88e2188ef39ef438c9859dbd7a9b9e2a99c23a823ec310f7f84a012cc82
-    }
-    slv         3.02    Slovenian {
-                rmd160  5c19344d8f7158d6d384a9d5f3e31ad7ff7830c3 \
-                sha256  b901507d2901c882f98f6ef5db07dbf74636fba6a1f616c5f094954106791667
-    }
-    spa         3.02    Spanish {
-                rmd160  f5270f3b78e96d412e67d600491f4a880b9c4d22 \
-                sha256  f40cc264d037b0c71ecb4a8bb6def8b3ec04b647d8da7fd44d0daa558bfa31b1
-    }
-    sqi         3.02    Albanian {
-                rmd160  17665a0c1beb295227afba1e8f144c916c4ba5e7 \
-                sha256  99bfcda3e0c471f63b36cd0db7dea596e59a2219c9275c3ba51e59973555c101
-    }
-    srp         3.02    {Serbian (Latin)} {
-                rmd160  2435b8acd2eb22427b08479889a791f08de2e3e5 \
-                sha256  b1eeeb2958d0a4e2ba16fb55a98ca4ca8e69fee8b0be8162ff599ba19d0b2404
-    }
-    swa         3.02    Swahili {
-                rmd160  d01cf8eacc7384e7a1d482df3aff9ed35f5ed6d6 \
-                sha256  2681e59f2a9333259a2de42f3deed46aa7dd84b638e6927f40db0409adff143b
-    }
-    swe         3.02    Swedish {
-                rmd160  987aa3c82c7d419fda05dd349e5ee3b4fe14b307 \
-                sha256  ada287d7b64183df906215fe4ca86c3b6fe30dc5121e9a83113c3265ca7fc5ae
-    }
-    tam         3.02    Tamil {
-                rmd160  aceb01612c11255bc03113368bcc053a13c192bd \
-                sha256  75f73362421a23eb955212f7aa19c9a3efdc80a4c6761445869148bfd2a6dc62
-    }
-    tel         3.02    Telugu {
-                rmd160  fe9fb6b07c7d2755b8fbf372de77636e64c6a549 \
-                sha256  f36af3d5ca9f8ff6e606485fe5db835f96b42e7d2380ac5d61af6b41827834fd
-    }
-    tgl         3.02    Tagalog {
-                rmd160  155a261e6faa5f6f210b035460960c5d6e57cabc \
-                sha256  5c515310df83c9b40e557027e49de6df70e33a9bbabeaf1301ca9e8c13558948
-    }
-    tha         3.02    Thai {
-                rmd160  87f52149f3acd038cf5ca9b0317115561a42e292 \
-                sha256  7a98e25e0c61dda48cbdb241f0f53c3dfaa7ef574b81799ab2ddac50da6db4fb
-    }
-    tur         3.02    Turkish {
-                rmd160  dbffa99dde65b3a082a15d75ad199b7f91625bfd \
-                sha256  fe4657ca3455585a06eb3d02b4a0472fda8ca06efe587be75e175662dc6329d7
-    }
-    ukr         3.02    Ukranian {
-                rmd160  fcf96e1653083065a9454dea2bc3beefe40128ef \
-                sha256  7862b10c1ff7e02b41c7a50eec7fccd2c30b8162d965fa1ae00510c6d1210762
-    }
-    vie         3.02    Vietnamese {
-                rmd160  1a028355cfa95bf24db6203ba89531a2675aff4c \
-                sha256  a113254882eac70168aec00544805e7c9cec20527217b98349ed48f6e2d2611e
+    afr         3.04    Afrikaans {
+                rmd160  ccf63a79b80e6188735383f526d55c811851e1e4 \
+                sha256  6e2ae1957561113608e12622a4544e034c46a49b6f9c4aa31151a548fcb7ba95
+    }
+    amh         3.04    Amharic {
+                rmd160  a59bc002c3bea2c57ecf359b12c2311ce9ea36eb \
+                sha256  049ef7337458b9ced9b8b04baf9d862e2971740f665215e450af6f3d70d36cf1
+    }
+    ara         3.04    Arabic {
+                rmd160  bdc1c3617a09e93590dead60d70a8799f4614175 \
+                sha256  21c98aaf7aeba2271ac0cc4a363d364d806649d7cb0bcab85d4b9a385f49645a
+    }
+    asm         3.04    Assamese {
+                rmd160  35d0c8c7fe5bb9016d21b587b0231013ddbbb7d5 \
+                sha256  d0b5b652dab945eb1bf8c2b07864712c7c334172c36aa1c9e907c3eb4bc07c30
+    }
+    aze         3.04    Azerbaijani {
+                rmd160  5ddcadd3f1a5fd4add03298c35a2bbf1511d3d19 \
+                sha256  bc2b4849182c3720c09847f5a645d1e3481ac22cef51a85950a14fdce138e05f
+    }
+    aze_cyrl    3.04    Azerbaijani-cyrillic {
+                rmd160  e032f2d12dda222c2801202756439a1a8babc54a \
+                sha256  b85303d2426aeb1d07a36a1f06f779a608593336e6802bac966c7a24fa734b36
+    }
+    bel         3.04    Belarusian {
+                rmd160  8c6195b20a22fd9ac422dd88334531d80ff9882c \
+                sha256  42f3d155f20ee9336978aace643d7814ce092547d75d65f054cc811937f2f813
+    }
+    ben         3.04    Bengali {
+                rmd160  0569e0e5c620d8fe8a6add4f009b2f396f8597f4 \
+                sha256  157826baf48063547b7793e1bde0c9f82d4843488fb5c7e02155f662a708e860
+    }
+    bod         3.04    Tibetan {
+                rmd160  5458c71ba998d1a30db2ddeb64a376107a426dca \
+                sha256  56a978b1a9f66c255f7145441ba6077572167e1925b8057447dafd9f46399867
+    }
+    bos         3.04    Bosnian {
+                rmd160  2d6c4c70c147df8faa260710f60c7b367729bbc3 \
+                sha256  e49da2eee865edc1d81d6ea2ceabc0bdbeb7f275b6d878fb3b64747a642320e3
+    }
+    bul         3.04    Bulgarian {
+                rmd160  5ad427497c58ef89aff30c9a1265f4bec34fece8 \
+                sha256  ca0bd253b4ab6202db5e8b2cecbc4219b4f725e51468cabf5bc99338e2c3de33
+    }
+    cat         3.04    Catalan {
+                rmd160  8bbb029c4a495f8f082287d8b80aac4b69605303 \
+                sha256  29af67467ec1b1ffd4d2d9748f0219f2220974b0e53a66ec7234f1768b43fc4d
+    }
+    ceb         3.04    Cebuano {
+                rmd160  3197e9b72a7f53779a5acd704cae8441847dd23a \
+                sha256  c12103b2ca498872dc72d71e9a330066353acd2c758ace1d3f59c14dae2536bc
+    }
+    ces         3.04    Czech {
+                rmd160  f4ab73e7e16123b4a681da2319e5c759777dbd7e \
+                sha256  60c58ecd97875a41eccae4846a2e4bf74cb0e4bc066d1bc430919c76a19fb37f
+    }
+    chi_sim     3.04    Chinese-simple {
+                rmd160  73711ca1dac3c6eaf68a55e6e53914bf7e6b8b1f \
+                sha256  323ae74d4a2ff49e932dbb4d6282fe0e67ddfafda075ec85803ecd077207454c
+    }
+    chi_tra     3.04    Chinese-traditional {
+                rmd160  8b7af417c316fcb361cfff6a3abf777c8979dc0f \
+                sha256  774d566bd0b36e4b6c07415dfa5b6b57feb2575b1f5f231d7fe01a52dac5dd0e
+    }
+    chr         3.04    Cherokee {
+                rmd160  9056e3038e5d18075721d81eada87844535e5c33 \
+                sha256  8bb20f8a78e31a4802fa9f1e075cb7de8d7c2eac5b7b33942a6d82abe0783acc
+    }
+    cym         3.04    Welsh {
+                rmd160  c8803e8714adc1f295167c5086c79d0221d6f840 \
+                sha256  07c8e3d6a139711dcdb4c92f90d18802f6e15de39331588d713fe7ca925bdc34
+    }
+    dan         3.04    Danish {
+                rmd160  068916cc2cbe247b2feed1afd2aa23ea8a301efa \
+                sha256  f9521a8381ab1823be0808f933a9bb8f1172968a44e391e370b1fe9b4d913ee8
+    }
+    deu         3.04    German {
+                rmd160  6d250dbf6ff5fca5a8579353a94b39c3b9f62c7d \
+                sha256  cb7eb42a7e972cec7ef904fe81825d7b547c46df684c814fdb11a930b13bca3a
+    }
+    dzo         3.04    Dzongkha {
+                rmd160  23e95047e4c2c79a1d3659d2aba75a3483f5cf11 \
+                sha256  b51ff06dcf3012359faa821c3d245e4c8a1f4b65ae5f614e4ab1ff136b049fb9
+    }
+    ell         3.04    Modern {
+                rmd160  1582d96457ad5a35fa2b9d41ace71094a9e0a95d \
+                sha256  bbe0ed0758c69043114b13fc8f00a42342c647f27be352c05b4978e265380e64
+    }
+    eng         3.04    English {
+                rmd160  bbd82dd674b151187f033394dddaf94e5ef8264c \
+                sha256  c0515c9f1e0c79e1069fcc05c2b2f6a6841fb5e1082d695db160333c1154f06d
+    }
+    enm         3.04    Middle {
+                rmd160  047b595eb53aa4b92b6cc5d4df6b3e56e91c3a5b \
+                sha256  86589a5b276f631783e038723640ff2406088b1762bd5c3e7ed7073e760fc683
+    }
+    epo         3.04    Esperanto {
+                rmd160  f8f8e106001ab5d4ff68ec235e8cdb821d2a7ddc \
+                sha256  c424d29a2341469353fff25f466b67de3904156bc1517c2a1ba3b3554b81b4f8
+    }
+    est         3.04    Estonian {
+                rmd160  13a8921185938e4a5d3a500e15bd984ef2e59a22 \
+                sha256  8fa8f2649ae3168938967953ce3acbc19d8c0e07028c0461c29a49183045948a
+    }
+    eus         3.04    Basque {
+                rmd160  9b6b74e258c50114d399dd953ccbdb1dd0591e18 \
+                sha256  dc9a3499040c600eac07036269bbc16ae1e5845cab32e1b6272a707a6e4d9a0c
+    }
+    fas         3.04    Persian {
+                rmd160  73fb974b5138848ef33030e336bafb8683b27d49 \
+                sha256  5d4642e32c66e9450bca9c0ced22cae93188340acfd8c6ca717f02e617b9c154
+    }
+    fin         3.04    Finnish {
+                rmd160  8a108292f799164d6267b206420ae714a1f7458f \
+                sha256  f830c625f635a637cb11a6a565126b1ae105c24ae9fd7cb92c8d5130c7184cf1
+    }
+    fra         3.04    French {
+                rmd160  a0a7f3db9dfbbf6fd5d5f9458a2046eaab69f0f3 \
+                sha256  86afb23ad146467f263e8ade56fd3951b1cc28f8c4eebc34f993d3c02d88a7ab
+    }
+    frm         3.04    Middle {
+                rmd160  c6f798def693b2138646d1fbdb2b73f05564b192 \
+                sha256  b6b5b8e2c713f4f66aaf6f956fb761ea8c6518b92af4c511a62a337e3e1cdf03
+    }
+    gle         3.04    Irish {
+                rmd160  f88497345bb9fb2f3420609b4ba89068a37c455e \
+                sha256  ea7e257ce8cfe72279505a154c1d55ca10687804bbfcf76946c2d462eb441fd9
+    }
+    glg         3.04    Galician {
+                rmd160  67c290bd0cae49ef9984847f56a397094f5465ef \
+                sha256  5f9021596a8e5306165a13429cd16d27d517605674c15d69e571307abd8ab639
+    }
+    grc         3.04    Ancient {
+                rmd160  70e92546f7120603ff52c32246e37e1299ec29df \
+                sha256  abdb160c3d0c3424e354f15459198bfca470dc42b6a394ca521e7786470a2213
+    }
+    guj         3.04    Gujarati {
+                rmd160  ade99b986dcb79ffa80d351e638c84b9d87228e8 \
+                sha256  54050ed17eb83d0e258a127d92308b037cde34028581d7d0e2a903573bade836
+    }
+    hat         3.04    Haitian {
+                rmd160  e031d7511963d2436d3695c9598f51683bf6b75f \
+                sha256  688b03656576abc7df686f4e4facb78798ff19dd0dca01026209acd569ad231d
+    }
+    heb         3.04    Hebrew {
+                rmd160  385d88520c0b8d4da4e65736e0a57efa573f8227 \
+                sha256  4f79288afde9162ee27841f0de999e690022cf1e3bd1723e34ca8f189c4bea9b
+    }
+    hin         3.04    Hindi {
+                rmd160  7e362f851b61be6c6d65e0629b7a1206dd0434cf \
+                sha256  6e99459dbdcc40bfec132747bc233054916bed9da02f89567c9388c32e2fd6ee
+    }
+    hrv         3.04    Croatian {
+                rmd160  7a3bd6d4c924a9312555dc3228ae8e31f101ff30 \
+                sha256  c37a21ef36788013f71a91ba649f4adc4c0ff8eed9e8b2a8aa6d891dbb693897
+    }
+    hun         3.04    Hungarian {
+                rmd160  19bbe3551e0d0a0d7b0f7bbd220882a1f193afe0 \
+                sha256  a6704d2e8dae62240597342c33736cd7bd836a88e188fc74db038ec87be3ffa7
+    }
+    iku         3.04    Inuktitut {
+                rmd160  56040fb632cced001ab641cdb699cc224fdfc526 \
+                sha256  ab819e60138f84325088b1197317b5e210232f2c1046b29e641e931402db3eec
+    }
+    ind         3.04    Indonesian {
+                rmd160  0326712538f0670d56488340bba27d437ba8bced \
+                sha256  3738deb007baf9f01b3a601835003f71c314d1b955f8a743634f6f1ec8220d88
+    }
+    isl         3.04    Icelandic {
+                rmd160  924b5ac03ce2af78d3e7da0d23d5f39eb2df8e80 \
+                sha256  bf6b6c1c76f8bcb9f780dc172d8b61d365fab434b15e84277dcd6cd7d07c7600
+    }
+    ita         3.04    Italian {
+                rmd160  ee879599393d3b877b73f5ca9546a47447049909 \
+                sha256  5a4e6e826e021d04f3494c2bd74ed1af5977b67fdedceb3c9aa30ff6c7a4b3d3
+    }
+    jav         3.04    Javanese {
+                rmd160  77e8eeed27c2a873c9e42009077e8d51d44cd5ae \
+                sha256  77f1b5da5ffaa096724ec3699ae4dbfde9f8544f4b74bb5c2c9a4226ed975eba
+    }
+    jpn         3.04    Japanese {
+                rmd160  7812c03a3ce6714e1a2f73b182a1d9c3eb89dc58 \
+                sha256  3c3c957cbbfb6fe66b38b46bc17f86158dfdb1688a2a28ede7ee0ec891f4aaf2
+    }
+    kan         3.04    Kannada {
+                rmd160  2c4814a8719333e7902aeeaaf430b8d739ed686b \
+                sha256  6f1b20d633933835c0ecaece42e64c61fd690ec010d0df52db89433e4a225341
+    }
+    kat         3.04    Georgian {
+                rmd160  aa4b8fdebc2618856196f827c53418a12e2be38e \
+                sha256  23d688068a7a49694b10c87b725e389c9dccc66e70eb52ad36acedcd4e01609a
+    }
+    kaz         3.04    Kazakh {
+                rmd160  039189b5241009ec7ed84880858023c851772ec1 \
+                sha256  f56980288e9b90bfeb19291757da0b293d3d50061b083135f38a97ff0f378341
+    }
+    khm         3.04    Central {
+                rmd160  eaf3a704d47e446b6e5a3385c4bbcd2839d300fa \
+                sha256  5a84fc23ee53db858bca06a51a9a1666197291918ee09e78faaee086cbb662bd
+    }
+    kir         3.04    Kirghiz {
+                rmd160  65e83d23e125b5ddf287cf451a152b3ab8743c65 \
+                sha256  03427b9a007b74afce39b5d0261b4fe6f6476e3667de4ea0c318458ccdb331ac
+    }
+    kor         3.04    Korean {
+                rmd160  0da1ed873f661bf0aed01105b63fc6d386fdc49f \
+                sha256  fb312ebe119a7673ca68c0a9f7b9ddd13a704f64609dd22f2fd606889c918de6
+    }
+    kur         3.04    Kurdish {
+                rmd160  a6dcfda19a26b2449dd7f2c41dd0d14f861b0d8f \
+                sha256  2c865e0519fe5b8fde0b6e2184745c9c06ec96eb93fb13fb7ec298679abbe2b2
+    }
+    lao         3.04    Lao {
+                rmd160  769e9bcc79ad2913a83f49eef674455b2b90958d \
+                sha256  aebf2025ee1ec71b0ee532825828d0d2d4ada7fb7f59bd535eebf63a55576d0d
+    }
+    lat         3.04    Latin {
+                rmd160  c262f288c7fe0fde1d5a626a2bb2d1aa0f2f1bc6 \
+                sha256  529ff48baad9d101116989c98ff30946861d3b6d4ba643c54cca5e6e733bfbe0
+    }
+    lav         3.04    Latvian {
+                rmd160  60629e4ad25ded98b4d0bff1d48da11db16319ab \
+                sha256  4f1f06376f498d0dae11fb03200ee124c615dc848fee1c05aff9187bf8f6bf3b
+    }
+    lit         3.04    Lithuanian {
+                rmd160  0833e40b831af8be82a14752f21698dbfdb421bf \
+                sha256  158a5277572f04bb9fb070a3bc00ad3a5fe7a5e25856c9f92489662ce57b0038
+    }
+    mal         3.04    Malayalam {
+                rmd160  90741a4210a232ad970509cfadc7b125b03e6645 \
+                sha256  0a75ab724eb5b65d6d3ed05f8ff77ea9fcf2aca77f8b7411d6a60e1b21bd03c5
+    }
+    mar         3.04    Marathi {
+                rmd160  01bc16ae1bfcf575df5b92f2a7c755a80e797204 \
+                sha256  3336e7d540507fb6edae99893e5aa986c3d365628916bb334be00cea47c1c72b
+    }
+    mkd         3.04    Macedonian {
+                rmd160  2ddf1c96042f0f3130b82dcd31b4f9f6318b758a \
+                sha256  e3f410684e90dc7345ec26efb82676dbb01f2b1ee463efb5fe2d489259533ce0
+    }
+    mlt         3.04    Maltese {
+                rmd160  179975099d834eee3e647fe530848085e6cdf5ba \
+                sha256  10680275987ff16b4943721d49aecbcd4ab9e9e3420c9efba161aaa5a0d9e4e2
+    }
+    msa         3.04    Malay {
+                rmd160  a6c9009b66d0d2ae6fa1b05044a39d00517b7816 \
+                sha256  d2f7d2d57af1ac8668703044f480e578c31fed0371eda2930624ffd467351711
+    }
+    mya         3.04    Burmese {
+                rmd160  6d37d54a603a7d5059117d3dcfb6e14aa962adc1 \
+                sha256  54a0d183d7ab6a67336a504928f3df89b4c9781d3608325adc7f0ad256c9de9e
+    }
+    nep         3.04    Nepali {
+                rmd160  68975e3237bd0a012f561e02f5e4ee69ed46db4e \
+                sha256  0ccbcfc9cf4be5ad575f685d1f63176b773eee7a7bb2702ddbb5693172398394
+    }
+    nld         3.04    Dutch {
+                rmd160  82803e4956e6bc931f5d5019b3642a052af93db3 \
+                sha256  bd849345e8476f47b40c17204fef5cf64287244c19b9d17e297ffe70fc5c9cb2
+    }
+    nor         3.04    Norwegian {
+                rmd160  214ed35496c1fcbcd1f0bc4cd20bd1e20458ca24 \
+                sha256  a990269f3d815ad206ea0f27b14d07e7a0be0c171335397bc0b46ea0cdcfdbfa
+    }
+    ori         3.04    Odiya {
+                rmd160  96045c2025c46972d747c75ec4a2d755ea338e6b \
+                sha256  4c2962c285ccc3c735e031ef32719cf38561d76c5cb03ecb371a72fb109b4a37
+    }
+    osd         3.04    OSD {
+                rmd160  c6a68284846faab8d6194d0c67a8873ae8bc7f81 \
+                sha256  9cf5d576fcc47564f11265841e5ca839001e7e6f38ff7f7aacf46d15a96b00ff
+    }
+    pan         3.04    Panjabi {
+                rmd160  848c47a60dc9aa64ea2fcd1b9d8b243266718cf6 \
+                sha256  7b551e7d52e275d8dbdee528016acb228bf013b21fcfc77333b9bae627bf8dbb
+    }
+    pol         3.04    Polish {
+                rmd160  414f1b7e598c261dac65720382fe8f7cc48085fc \
+                sha256  1d2292319d2e3c65e15f19f55b961c9b492651fc179f3bcd219affe7c141bf94
+    }
+    por         3.04    Portuguese {
+                rmd160  5def457251d1e2e2e8c1c0f907fa592241c48ada \
+                sha256  089fb419cd7bd135236244dd9a4b8a42dfe2ee97d97b481efdd7b92c9c6324a0
+    }
+    pus         3.04    Pushto {
+                rmd160  f07e893208c3fd6de2193702c2efecd76ed6e140 \
+                sha256  ab884e2fd3ff722affb661927e18e750b49052e731cbb05ea2c16ef783b5e5c7
+    }
+    ron         3.04    Romanian {
+                rmd160  5a43337d11a114a316ee46490394944767926827 \
+                sha256  f4f3614d4b009eeb0ab5815ebef080ebba7c470b3f80c9f97ed6da0d3f409986
+    }
+    rus         3.04    Russian {
+                rmd160  ed333348061de26e3b7b048b46194f51f39f2f3f \
+                sha256  1800dcaf043e95007269f07168a12258cd8b87bf413769c2b5a3d5451e45cab4
+    }
+    san         3.04    Sanskrit {
+                rmd160  33df0f9aa7a4c05953103c22bb0b24e6615dc46a \
+                sha256  6f4ca5053f14e16da70ee3b6eb0e554b85bd5fdb8ed3ec9af32959fea4222e99
+    }
+    sin         3.04    Sinhala {
+                rmd160  eef22d60cf2e7dd87005b5e35f9ecaaa61fad211 \
+                sha256  f5853c36efdedb142198ca6891d0a2773ea29f54c76a608933d2389351782190
+    }
+    slk         3.04    Slovak {
+                rmd160  702c4b0bae525e52dd9be453778da669ad0176e7 \
+                sha256  ba5d2aba09f59e1952583825dd7b0eb9ba706283d1c0f93be8d7381b5e5eae2f
+    }
+    slv         3.04    Slovenian {
+                rmd160  bb23971cb8924c99fcde501bbb1ffdb29eab8ac2 \
+                sha256  305884e151a01421e847a4a30f05e9c899fcefd483a12d2ea8e0f205534d56ce
+    }
+    spa         3.04    Spanish {
+                rmd160  2e5e122a51dca3e07b6b2a78541e560c2b07f58a \
+                sha256  f23985996bbcfe2b57864ccb082783c1c74c87429f04411a04a6ba4d3da2efda
+    }
+    sqi         3.04    Albanian {
+                rmd160  3446c407c2e68c7296eecd27136ed1e8422cd3c9 \
+                sha256  aecdb5aef70bcffa3a500676910fde1d2b5d63784796099c3fdd8f8a0ddc9f97
+    }
+    srp         3.04    Serbian {
+                rmd160  05c1823a37498e882f6dff14b1362402cc347066 \
+                sha256  35bfeb3ce14f5afeb82c9be2490db34178c0e13f7de8061013a083b163c67415
+    }
+    srp_latn    3.04    Serbian-latin {
+                rmd160  70e4547d155463e770faf8955fd713174de805a6 \
+                sha256  0d715855fd6dc0dc9a950b02ed1589f6c518f0456a4a321a18bf450b970a4a08
+    }
+    swa         3.04    Swahili {
+                rmd160  60dd0e44ed7c157fda6a8eeba0e8c8f475cde9f9 \
+                sha256  8e10a7254e77d931edf8c933a98be5b36abe1fd21c3266c06641e0464f879cdf
+    }
+    swe         3.04    Swedish {
+                rmd160  1aa2ccd27193b1d57f27a202bbd6dd96ed1bc475 \
+                sha256  2a6407bbf187eb1fcfd1633fae9abffcd6220e7ab74e05e65bf16426ac8f2050
+    }
+    syr         3.04    Syriac {
+                rmd160  a1c750aeead60e80755374689d24c78245648a01 \
+                sha256  603dc93c49b86cff4e1dc5dc9c0d790fbfeb8ff64cf6b52181e57a3e028d7d21
+    }
+    tam         3.04    Tamil {
+                rmd160  e3086a570b4e95a77cd579688dc2509150fc62e8 \
+                sha256  7fb7347e806d540ef83eb9c426dde2366a269a370f11fffe73920bb5fc2c25bc
+    }
+    tel         3.04    Telugu {
+                rmd160  d74b69340357919a8141dc2bc6ed95d5d1773f95 \
+                sha256  fb46ed549a15633bdef1a776b234314a443334e9678cf515aed52c5216cbcd3b
+    }
+    tgk         3.04    Tajik {
+                rmd160  e97ed1c04904d8eced04b8feb5dda42f28be9289 \
+                sha256  40f3b249bc18cb7587bc3aafb380435d13a94c95603b31823f92fb98dd19d238
+    }
+    tgl         3.04    Tagalog {
+                rmd160  8c0c0a894eb11d388daa591f23466260a43ffade \
+                sha256  e794af607426269bb32eedb2f20706e278fbb00e4a75c43dc4a7b8c8e2033938
+    }
+    tha         3.04    Thai {
+                rmd160  232470d4998b5b660785fa9c286381e4a23012a3 \
+                sha256  ca4a42d4481bd0377cd02731b5149c228bf73e8b7a61e44b9a2d5e274be150f8
+    }
+    tir         3.04    Tigrinya {
+                rmd160  39d67740cceb3fdad9640b15b67f6effde710060 \
+                sha256  10a58ab67d626e093928e602056e5e93f46c293e5fca023d516ca02ca1cff1f8
+    }
+    tur         3.04    Turkish {
+                rmd160  3b456c7b2e7f21e7a6c89791fdde0d56b6e55143 \
+                sha256  5cbcce5efb66b3da10a14397fbc3a88d8457b9f1b724b9c8d96449b152c21677
+    }
+    uig         3.04    Uighur {
+                rmd160  9d37371ee4b2055859f396c6c2ee8395e6f5af3f \
+                sha256  bb2f82f7b9f83aab4d3fad80603174ab84e668891f9e16da1c63d15f426eade9
+    }
+    ukr         3.04    Ukrainian {
+                rmd160  830afbeb1a84876bafc08fd2779e4c26063d5775 \
+                sha256  2f8b2cd0f0b5b8612a4b80abcebaa3ac46f5f0368926629b3cff576b9d95bc31
+    }
+    urd         3.04    Urdu {
+                rmd160  5f7fb67edcfc01c4427c8894eb60e0cd2d055a93 \
+                sha256  28307bf892b88c3856c4c7b192213ea868799e9f0c44e5cbe5da51a17fb0ac83
+    }
+    uzb         3.04    Uzbek {
+                rmd160  6e106172f7b743875f210e0861ed55bd248442a6 \
+                sha256  3491346b5ee4dcfdb92144a29a2f0907f21d1e772b5ffeca96a5eb6d646973ca
+    }
+    uzb_cyrl    3.04    Uzbek-cyrillic {
+                rmd160  379ce5fb011c9685db581858919e0be80dcc5ebe \
+                sha256  a520625d5de1f0089af836c004b2cfbd3fe5a5084401e4e96858d497d150b1cd
+    }
+    vie         3.04    Vietnamese {
+                rmd160  8fb57598747c6f1bfc61b620dd7cfb009f46b1f8 \
+                sha256  cef5e63747c86e21bcbbd30bb683a1b104f98293b74b2a89174870d5bb4441c9
+    }
+    yid         3.04    Yiddish {
+                rmd160  d9327fd213ac29e49268e1b2a1a33f763a94ddd2 \
+                sha256  cd99b89af3c0a4bd21a43dd43f137effdea3dd5d19ad593e00bbd48a1e68adc9
     }
 }
 
@@ -317,16 +456,23 @@
             
             supported_archs     noarch
             
-            distname            tesseract-ocr-${lang_version}.${lang_code}
+            master_sites        https://github.com/tesseract-ocr/tessdata/raw/master/
+            distfiles           ${lang_code}.traineddata
             
             checksums           [string trim ${lang_checksums}]
+
+            extract.mkdir       no
+            extract.cmd         cp
+            extract.pre_args    ""
+            extract.post_args   "."
             
             use_configure       no
             
             build {}
             
             destroot {
-                copy ${workpath}/tesseract-ocr/tessdata ${destroot}${prefix}/share/
+                file mkdir ${destroot}${prefix}/share/tessdata/
+                copy ${workpath}/${lang_code}.traineddata ${destroot}${prefix}/share/tessdata/
             }
         }
     }]
