/[gentoo-x86]/app-text/tesseract/tesseract-3.03_rc1-r1.ebuild
Gentoo

Contents of /app-text/tesseract/tesseract-3.03_rc1-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Sun May 10 18:20:41 2015 UTC (2 years, 8 months ago) by jer
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +2 -2 lines
Mark ~ppc64 (bug #544622).

(Portage version: 2.2.18/cvs/Linux x86_64, RepoMan options: --ignore-arches, signed Manifest commit with key A792A613)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-text/tesseract/tesseract-3.03_rc1-r1.ebuild,v 1.3 2015/04/20 19:28:49 tomka Exp $
4
5 EAPI=5
6
7 MY_PN="${PN}-ocr"
8 DL_P="${MY_PN}-3.02"
9 URI_PREFIX="http://${MY_PN}.googlecode.com/files"
10
11 inherit eutils autotools autotools-utils versionator
12
13 S="${WORKDIR}/${PN}-$(get_version_component_range 1-2 )"
14
15 DESCRIPTION="An OCR Engine that was developed at HP and now at Google"
16 HOMEPAGE="http://code.google.com/p/tesseract-ocr/"
17 SRC_URI="http://dev.gentoo.org/~tomka/files/${PN}-3.03-rc1.tar.gz
18 ${URI_PREFIX}/${DL_P}.eng.tar.gz
19 doc? ( ${URI_PREFIX}/${DL_P}.02-doc-html.tar.gz )
20 linguas_ar? ( ${URI_PREFIX}/${DL_P}.ara.tar.gz )
21 linguas_bg? ( ${URI_PREFIX}/bul.traineddata.gz )
22 linguas_ca? ( ${URI_PREFIX}/cat.traineddata.gz )
23 linguas_chr? ( ${URI_PREFIX}/chr.traineddata.gz )
24 linguas_cs? ( ${URI_PREFIX}/ces.traineddata.gz )
25 linguas_de? ( ${URI_PREFIX}/deu.traineddata.gz
26 ${URI_PREFIX}/deu-frak.traineddata.gz )
27 linguas_da? ( ${URI_PREFIX}/dan.traineddata.gz
28 ${URI_PREFIX}/dan-frak.traineddata.gz )
29 linguas_el? ( ${URI_PREFIX}/ell.traineddata.gz )
30 linguas_es? ( ${URI_PREFIX}/spa.traineddata.gz )
31 linguas_fi? ( ${URI_PREFIX}/fin.traineddata.gz )
32 linguas_fr? ( ${URI_PREFIX}/fra.traineddata.gz )
33 linguas_he? ( ${URI_PREFIX}/${DL_P}.heb.tar.gz
34 ${URI_PREFIX}/${MY_PN}-3.01.heb-com.tar.gz )
35 linguas_hi? ( ${URI_PREFIX}/${DL_P}.hin.tar.gz )
36 linguas_hu? ( ${URI_PREFIX}/hun.traineddata.gz )
37 linguas_id? ( ${URI_PREFIX}/ind.traineddata.gz )
38 linguas_it? ( ${URI_PREFIX}/ita.traineddata.gz )
39 linguas_jp? ( ${URI_PREFIX}/jpn.traineddata.gz )
40 linguas_ko? ( ${URI_PREFIX}/kor.traineddata.gz )
41 linguas_lt? ( ${URI_PREFIX}/lit.traineddata.gz )
42 linguas_lv? ( ${URI_PREFIX}/lav.traineddata.gz )
43 linguas_nl? ( ${URI_PREFIX}/nld.traineddata.gz )
44 linguas_no? ( ${URI_PREFIX}/nor.traineddata.gz )
45 linguas_pl? ( ${URI_PREFIX}/pol.traineddata.gz )
46 linguas_pt? ( ${URI_PREFIX}/por.traineddata.gz )
47 linguas_ro? ( ${URI_PREFIX}/ron.traineddata.gz )
48 linguas_ru? ( ${URI_PREFIX}/rus.traineddata.gz )
49 linguas_sk? ( ${URI_PREFIX}/slk.traineddata.gz
50 ${URI_PREFIX}/${MY_PN}-3.01.slk-frak.tar.gz )
51 linguas_sl? ( ${URI_PREFIX}/slv.traineddata.gz )
52 linguas_sr? ( ${URI_PREFIX}/srp.traineddata.gz )
53 linguas_sv? ( ${URI_PREFIX}/swe.traineddata.gz
54 ${URI_PREFIX}/swe-frak.traineddata.gz )
55 linguas_th? ( ${URI_PREFIX}/${DL_P}.tha.tar.gz )
56 linguas_tl? ( ${URI_PREFIX}/tgl.traineddata.gz )
57 linguas_tr? ( ${URI_PREFIX}/tur.traineddata.gz )
58 linguas_uk? ( ${URI_PREFIX}/ukr.traineddata.gz )
59 linguas_vi? ( ${URI_PREFIX}/vie.traineddata.gz )
60 linguas_zh_CN? ( ${URI_PREFIX}/chi_sim.traineddata.gz )
61 linguas_zh_TW? ( ${URI_PREFIX}/chi_tra.traineddata.gz )
62 osd? ( ${URI_PREFIX}/${MY_PN}-3.01.osd.tar.gz )
63 "
64
65 LICENSE="Apache-2.0"
66 SLOT="0"
67 KEYWORDS="~alpha ~amd64 ~arm ~ppc ~ppc64 ~sparc ~x86"
68
69 IUSE="doc examples jpeg opencl osd png +scrollview static-libs tiff -webp linguas_ar linguas_bg linguas_ca linguas_chr linguas_cs linguas_de linguas_da linguas_el linguas_es linguas_fi linguas_fr linguas_he linguas_hi linguas_hu linguas_id linguas_it linguas_jp linguas_ko linguas_lt linguas_lv linguas_nl linguas_no linguas_pl linguas_pt linguas_ro linguas_ru linguas_sk linguas_sl linguas_sr linguas_sv linguas_th linguas_tl linguas_tr linguas_uk linguas_vi linguas_zh_CN linguas_zh_TW"
70
71 # With opencl tiff is necessary regardless of leptonica status
72 DEPEND=">=media-libs/leptonica-1.70[zlib,tiff?,jpeg?,png?,webp?]
73 opencl? ( virtual/opencl
74 media-libs/tiff:0 )"
75 RDEPEND="${DEPEND}"
76
77 DOCS=(AUTHORS ChangeLog NEWS README ReleaseNotes )
78
79 PATCHES=(
80 "${FILESDIR}/tesseract-2.04-gcc47.patch"
81 )
82
83 src_configure() {
84 local myeconfargs=(
85 $(use_enable opencl) \
86 $(use_enable scrollview graphics) \
87 --disable-dependency-tracking
88 )
89 autotools-utils_src_configure
90 }
91
92 src_install() {
93 autotools-utils_src_install
94
95 if use examples; then
96 insinto /usr/share/doc/${PF}/examples
97 doins eurotext.tif phototest.tif
98 fi
99
100 if use doc; then
101 dohtml -r "${WORKDIR}"/"${MY_PN}"/doc/html/*
102 fi
103
104 # install language files
105 insinto /usr/share/tessdata
106 find "${WORKDIR}" -maxdepth 1 -type f -name "*.traineddata" -exec doins '{}' +
107 doins "${WORKDIR}"/"${MY_PN}"/tessdata/*
108 }

  ViewVC Help
Powered by ViewVC 1.1.20