Ticket #51128: Portfile-tesseract.diff
File Portfile-tesseract.diff, 2.4 KB (added by hmijail (Horacio Mijail Antón Quiles), 8 years ago) |
---|
-
Portfile.
old new 5 5 6 6 PortGroup github 1.0 7 7 8 github.setup tesseract-ocr tesseract 3.04.0 08 github.setup tesseract-ocr tesseract 3.04.01 9 9 categories textproc graphics pdf 10 10 platforms darwin 11 11 license Apache-2 … … 24 24 25 25 github.master_sites ${github.homepage}/archive/${git.branch} 26 26 27 checksums rmd160 02fa37b56ae668e68fffadb94e4f652372f67a05\28 sha256 7e6e48b625e1fba9bc825a4ef8c39f12c60aae1084939133b3c6a00f8f8dc38c27 checksums rmd160 5e754411afa74cfc4e6b601fe2c770ba93a25f23 \ 28 sha256 57f63e1b14ae04c3932a2683e4be4954a2849e17edd638ffe91bc5a2156adc6a 29 29 30 30 if {${name} eq ${subport}} { 31 revision 331 revision 0 32 32 33 33 depends_lib port:zlib \ 34 34 port:libpng \ 35 35 port:leptonica \ 36 36 port:jpeg 37 37 38 38 configure.env-append LIBLEPT_HEADERSDIR=${prefix}/include/leptonica 39 39 40 40 livecheck.regex "/tag/(\[\.0-9\]+\[-a-z\]*)" … … 42 42 revision 1 43 43 44 44 depends_run port:tesseract 45 45 46 46 livecheck.type none 47 47 } 48 48 … … 449 449 eval [subst { 450 450 subport ${name}-[strsed ${lang_code} {g/_/-/}] { 451 451 version ${lang_version} 452 452 453 453 description ${lang_name} language data for the Tesseract OCR engine 454 454 455 455 long_description ${lang_name} language data for the Tesseract OCR engine 456 456 457 457 supported_archs noarch 458 458 459 459 master_sites https://github.com/tesseract-ocr/tessdata/raw/master/ 460 460 distfiles ${lang_code}.traineddata 461 461 462 462 checksums [string trim ${lang_checksums}] 463 463 464 464 extract.mkdir no 465 465 extract.cmd cp 466 466 extract.pre_args "" 467 467 extract.post_args "." 468 468 469 469 use_configure no 470 470 471 471 build {} 472 472 473 473 destroot { 474 474 file mkdir ${destroot}${prefix}/share/tessdata/ 475 475 copy ${workpath}/${lang_code}.traineddata ${destroot}${prefix}/share/tessdata/