1 |
commit: 1dedc24a3a823478432e0664ac4958ea68c01089 |
2 |
Author: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Dec 30 13:26:23 2019 +0000 |
4 |
Commit: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Dec 30 13:57:25 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1dedc24a |
7 |
|
8 |
app-text/tesseract: drop old |
9 |
|
10 |
Signed-off-by: Bernard Cafarelli <voyageur <AT> gentoo.org> |
11 |
|
12 |
.../tesseract/files/tesseract-4.0.0-manpages.patch | 49 ------- |
13 |
app-text/tesseract/tesseract-3.05.01.ebuild | 148 --------------------- |
14 |
app-text/tesseract/tesseract-4.0.0.ebuild | 129 ------------------ |
15 |
app-text/tesseract/tesseract-4.1.0.ebuild | 83 ------------ |
16 |
4 files changed, 409 deletions(-) |
17 |
|
18 |
diff --git a/app-text/tesseract/files/tesseract-4.0.0-manpages.patch b/app-text/tesseract/files/tesseract-4.0.0-manpages.patch |
19 |
deleted file mode 100644 |
20 |
index dfa8e9fde34..00000000000 |
21 |
--- a/app-text/tesseract/files/tesseract-4.0.0-manpages.patch |
22 |
+++ /dev/null |
23 |
@@ -1,49 +0,0 @@ |
24 |
-From 39ed30ad834a43cf403f88158c6db7a96f1bed29 Mon Sep 17 00:00:00 2001 |
25 |
-From: Stefan Weil <sw@××××××××.de> |
26 |
-Date: Fri, 1 Feb 2019 19:47:46 +0100 |
27 |
-Subject: Fix build rule for manpages |
28 |
- |
29 |
-This is similar to commit 2106cba0a98a90451df835f3ab7b2aaf54826442 |
30 |
-which fixed doc/generate_manpages.sh. |
31 |
- |
32 |
-Signed-off-by: Stefan Weil <sw@××××××××.de> |
33 |
---- |
34 |
- doc/Makefile.am | 8 ++++---- |
35 |
- 1 file changed, 4 insertions(+), 4 deletions(-) |
36 |
- |
37 |
-diff --git a/doc/Makefile.am b/doc/Makefile.am |
38 |
-index a218aca3..c0eeda84 100644 |
39 |
---- a/doc/Makefile.am |
40 |
-+++ b/doc/Makefile.am |
41 |
-@@ -2,9 +2,6 @@ |
42 |
- |
43 |
- if ASCIIDOC |
44 |
- |
45 |
--asciidoc=asciidoc -d manpage |
46 |
-- |
47 |
-- |
48 |
- man_MANS = \ |
49 |
- combine_lang_model.1 \ |
50 |
- combine_tessdata.1 \ |
51 |
-@@ -29,6 +26,8 @@ man_MANS += \ |
52 |
- unicharset.5 |
53 |
- endif |
54 |
- |
55 |
-+man_xslt = http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl |
56 |
-+ |
57 |
- EXTRA_DIST = $(man_MANS) Doxyfile |
58 |
- |
59 |
- .PHONY: html |
60 |
-@@ -36,7 +35,8 @@ EXTRA_DIST = $(man_MANS) Doxyfile |
61 |
- html: $(patsubst %,%.html,$(man_MANS)) |
62 |
- |
63 |
- %: %.asc |
64 |
-- $(asciidoc) -o $@ $< |
65 |
-+ asciidoc -b docbook -d manpage -o - $< | \ |
66 |
-+ xsltproc --nonet $(man_xslt) - |
67 |
- |
68 |
- %.html: %.asc |
69 |
- asciidoc -b html5 -o $@ $< |
70 |
--- |
71 |
-cgit v1.2.1 |
72 |
- |
73 |
|
74 |
diff --git a/app-text/tesseract/tesseract-3.05.01.ebuild b/app-text/tesseract/tesseract-3.05.01.ebuild |
75 |
deleted file mode 100644 |
76 |
index 02784759ea3..00000000000 |
77 |
--- a/app-text/tesseract/tesseract-3.05.01.ebuild |
78 |
+++ /dev/null |
79 |
@@ -1,148 +0,0 @@ |
80 |
-# Copyright 1999-2019 Gentoo Authors |
81 |
-# Distributed under the terms of the GNU General Public License v2 |
82 |
- |
83 |
-EAPI=6 |
84 |
- |
85 |
-MY_PN="tesseract-ocr" |
86 |
-LANGPACKV="3.04.00" |
87 |
-URI_PREFIX="https://github.com/${MY_PN}/tessdata/raw/${LANGPACKV}/" |
88 |
-JAVA_PKG_OPT_USE="scrollview" |
89 |
- |
90 |
-inherit autotools java-pkg-opt-2 toolchain-funcs |
91 |
- |
92 |
-DESCRIPTION="An OCR Engine, orginally developed at HP, now open source." |
93 |
-HOMEPAGE="https://github.com/tesseract-ocr" |
94 |
-SRC_URI="https://github.com/${MY_PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz |
95 |
- ${URI_PREFIX}eng.traineddata -> eng.traineddata-${LANGPACKV} |
96 |
- math? ( ${URI_PREFIX}equ.traineddata -> equ.traineddata-${LANGPACKV} ) |
97 |
- l10n_ar? ( ${URI_PREFIX}ara.traineddata -> ara.traineddata-${LANGPACKV} ) |
98 |
- l10n_bg? ( ${URI_PREFIX}bul.traineddata -> bul.traineddata-${LANGPACKV} ) |
99 |
- l10n_ca? ( ${URI_PREFIX}cat.traineddata -> cat.traineddata-${LANGPACKV} ) |
100 |
- l10n_chr? ( ${URI_PREFIX}chr.traineddata -> chr.traineddata-${LANGPACKV} ) |
101 |
- l10n_cs? ( ${URI_PREFIX}ces.traineddata -> ces.traineddata-${LANGPACKV} ) |
102 |
- l10n_de? ( ${URI_PREFIX}deu.traineddata -> deu.traineddata-${LANGPACKV} |
103 |
- ${URI_PREFIX}deu_frak.traineddata -> deu_frak.traineddata-${LANGPACKV} ) |
104 |
- l10n_da? ( ${URI_PREFIX}dan.traineddata -> dan.traineddata-${LANGPACKV} |
105 |
- ${URI_PREFIX}dan_frak.traineddata -> dan_frak.traineddata-${LANGPACKV} ) |
106 |
- l10n_el? ( ${URI_PREFIX}ell.traineddata -> ell.traineddata-${LANGPACKV} ) |
107 |
- l10n_es? ( ${URI_PREFIX}spa.traineddata -> spa.traineddata-${LANGPACKV} ) |
108 |
- l10n_fi? ( ${URI_PREFIX}fin.traineddata -> fin.traineddata-${LANGPACKV} ) |
109 |
- l10n_fr? ( ${URI_PREFIX}fra.traineddata -> fra.traineddata-${LANGPACKV} ) |
110 |
- l10n_he? ( ${URI_PREFIX}heb.traineddata -> heb.traineddata-${LANGPACKV} ) |
111 |
- l10n_hi? ( ${URI_PREFIX}hin.traineddata -> hin.traineddata-${LANGPACKV} ) |
112 |
- l10n_hu? ( ${URI_PREFIX}hun.traineddata -> hun.traineddata-${LANGPACKV} ) |
113 |
- l10n_id? ( ${URI_PREFIX}ind.traineddata -> ind.traineddata-${LANGPACKV} ) |
114 |
- l10n_it? ( ${URI_PREFIX}ita.traineddata -> ita.traineddata-${LANGPACKV} ) |
115 |
- l10n_ja? ( ${URI_PREFIX}jpn.traineddata -> jpn.traineddata-${LANGPACKV} ) |
116 |
- l10n_ko? ( ${URI_PREFIX}kor.traineddata -> kor.traineddata-${LANGPACKV} ) |
117 |
- l10n_lt? ( ${URI_PREFIX}lit.traineddata -> lit.traineddata-${LANGPACKV} ) |
118 |
- l10n_lv? ( ${URI_PREFIX}lav.traineddata -> lav.traineddata-${LANGPACKV} ) |
119 |
- l10n_nl? ( ${URI_PREFIX}nld.traineddata -> nld.traineddata-${LANGPACKV} ) |
120 |
- l10n_no? ( ${URI_PREFIX}nor.traineddata -> nor.traineddata-${LANGPACKV} ) |
121 |
- l10n_pl? ( ${URI_PREFIX}pol.traineddata -> pol.traineddata-${LANGPACKV} ) |
122 |
- l10n_pt? ( ${URI_PREFIX}por.traineddata -> por.traineddata-${LANGPACKV} ) |
123 |
- l10n_ro? ( ${URI_PREFIX}ron.traineddata -> ron.traineddata-${LANGPACKV} ) |
124 |
- l10n_ru? ( ${URI_PREFIX}rus.traineddata -> rus.traineddata-${LANGPACKV} ) |
125 |
- l10n_sk? ( ${URI_PREFIX}slk.traineddata -> slk.traineddata-${LANGPACKV} |
126 |
- ${URI_PREFIX}slk_frak.traineddata -> slk_frak.traineddata-${LANGPACKV} ) |
127 |
- l10n_sl? ( ${URI_PREFIX}slv.traineddata -> slv.traineddata-${LANGPACKV} ) |
128 |
- l10n_sr? ( ${URI_PREFIX}srp.traineddata -> srp.traineddata-${LANGPACKV} ) |
129 |
- l10n_sv? ( ${URI_PREFIX}swe.traineddata -> swe.traineddata-${LANGPACKV} ) |
130 |
- l10n_th? ( ${URI_PREFIX}tha.traineddata -> tha.traineddata-${LANGPACKV} ) |
131 |
- l10n_tl? ( ${URI_PREFIX}tgl.traineddata -> tgl.traineddata-${LANGPACKV} ) |
132 |
- l10n_tr? ( ${URI_PREFIX}tur.traineddata -> tur.traineddata-${LANGPACKV} ) |
133 |
- l10n_uk? ( ${URI_PREFIX}ukr.traineddata -> ukr.traineddata-${LANGPACKV} ) |
134 |
- l10n_vi? ( ${URI_PREFIX}vie.traineddata -> vie.traineddata-${LANGPACKV} ) |
135 |
- l10n_zh-CN? ( ${URI_PREFIX}chi_sim.traineddata -> chi_sim.traineddata-${LANGPACKV} ) |
136 |
- l10n_zh-TW? ( ${URI_PREFIX}chi_tra.traineddata -> chi_tra.traineddata-${LANGPACKV} ) |
137 |
- osd? ( ${URI_PREFIX}osd.traineddata -> osd.traineddata-${LANGPACKV} ) |
138 |
-" |
139 |
- |
140 |
-LICENSE="Apache-2.0" |
141 |
-SLOT="0" |
142 |
-KEYWORDS="alpha amd64 ~arm arm64 ~mips ppc ppc64 ~sparc x86" |
143 |
- |
144 |
-IUSE="doc examples jpeg math opencl osd png scrollview static-libs tiff training webp l10n_ar l10n_bg l10n_ca l10n_chr l10n_cs l10n_de l10n_da l10n_el l10n_es l10n_fi l10n_fr l10n_he l10n_hi l10n_hu l10n_id l10n_it l10n_ja l10n_ko l10n_lt l10n_lv l10n_nl l10n_no l10n_pl l10n_pt l10n_ro l10n_ru l10n_sk l10n_sl l10n_sr l10n_sv l10n_th l10n_tl l10n_tr l10n_uk l10n_vi l10n_zh-CN l10n_zh-TW" |
145 |
- |
146 |
-# With opencl USE=tiff is necessary in leptonica |
147 |
-CDEPEND=">=media-libs/leptonica-1.71:=[zlib,tiff?,jpeg?,png?,webp?] |
148 |
- opencl? ( |
149 |
- virtual/opencl |
150 |
- media-libs/tiff:0= |
151 |
- media-libs/leptonica:=[tiff] |
152 |
- ) |
153 |
- scrollview? ( |
154 |
- >=dev-java/piccolo2d-3.0:0 |
155 |
- ) |
156 |
- training? ( |
157 |
- dev-libs/icu:= |
158 |
- x11-libs/pango:= |
159 |
- x11-libs/cairo:= |
160 |
- )" |
161 |
- |
162 |
-DEPEND="${CDEPEND} |
163 |
- doc? ( app-doc/doxygen ) |
164 |
- scrollview? ( >=virtual/jdk-1.7 )" |
165 |
- |
166 |
-RDEPEND="${CDEPEND} |
167 |
- scrollview? ( >=virtual/jre-1.7 )" |
168 |
- |
169 |
-DOCS=( AUTHORS ChangeLog NEWS README.md ) |
170 |
- |
171 |
-PATCHES=( |
172 |
- "${FILESDIR}/${PN}-3.05.00-no_graphics.patch" |
173 |
- "${FILESDIR}/${PN}-3.05.00-use-system-piccolo2d.patch" |
174 |
-) |
175 |
- |
176 |
-src_unpack() { |
177 |
- unpack ${P}.tar.gz |
178 |
- for file in ${A}; do |
179 |
- if [[ "${file}" == *traineddata* ]]; then |
180 |
- cp "${DISTDIR}/${file}" "${S}/tessdata/${file%-*}" || die |
181 |
- fi |
182 |
- done |
183 |
-} |
184 |
- |
185 |
-src_prepare() { |
186 |
- default |
187 |
- eautoreconf |
188 |
- |
189 |
- java-pkg-opt-2_src_prepare |
190 |
-} |
191 |
- |
192 |
-src_configure() { |
193 |
- local myeconfargs=( |
194 |
- --enable-shared |
195 |
- $(use_enable opencl) |
196 |
- $(use_enable scrollview graphics) |
197 |
- $(use_enable static-libs static) |
198 |
- ) |
199 |
- |
200 |
- econf "${myeconfargs[@]}" |
201 |
-} |
202 |
- |
203 |
-src_compile() { |
204 |
- default |
205 |
- use doc && emake doc |
206 |
- use scrollview && emake ScrollView.jar JAVAC="javac $(java-pkg_javac-args)" |
207 |
- use training && emake training |
208 |
-} |
209 |
- |
210 |
-src_install() { |
211 |
- use doc && HTML_DOCS=( doc/html/. ) |
212 |
- default |
213 |
- prune_libtool_files |
214 |
- |
215 |
- if use training; then |
216 |
- emake DESTDIR="${D}" training-install |
217 |
- fi |
218 |
- |
219 |
- if use examples; then |
220 |
- insinto /usr/share/doc/${PF}/examples |
221 |
- doins testing/eurotext.tif testing/phototest.tif |
222 |
- fi |
223 |
- |
224 |
- insinto /usr/share/tessdata |
225 |
- doins tessdata/*traineddata* # language files |
226 |
- use scrollview && doins java/ScrollView.jar # scrollview |
227 |
-} |
228 |
|
229 |
diff --git a/app-text/tesseract/tesseract-4.0.0.ebuild b/app-text/tesseract/tesseract-4.0.0.ebuild |
230 |
deleted file mode 100644 |
231 |
index d4ba59d9b35..00000000000 |
232 |
--- a/app-text/tesseract/tesseract-4.0.0.ebuild |
233 |
+++ /dev/null |
234 |
@@ -1,129 +0,0 @@ |
235 |
-# Copyright 1999-2019 Gentoo Authors |
236 |
-# Distributed under the terms of the GNU General Public License v2 |
237 |
- |
238 |
-EAPI=7 |
239 |
- |
240 |
-MY_PN="tesseract-ocr" |
241 |
-LANGPACKV="4.00" |
242 |
-URI_PREFIX="https://github.com/${MY_PN}/tessdata/raw/${LANGPACKV}/" |
243 |
- |
244 |
-inherit autotools toolchain-funcs |
245 |
- |
246 |
-DESCRIPTION="An OCR Engine, orginally developed at HP, now open source." |
247 |
-HOMEPAGE="https://github.com/tesseract-ocr" |
248 |
-SRC_URI="https://github.com/${MY_PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz |
249 |
- ${URI_PREFIX}eng.traineddata -> eng.traineddata-${LANGPACKV} |
250 |
- math? ( ${URI_PREFIX}equ.traineddata -> equ.traineddata-${LANGPACKV} ) |
251 |
- osd? ( ${URI_PREFIX}osd.traineddata -> osd.traineddata-${LANGPACKV} )" |
252 |
- |
253 |
-LICENSE="Apache-2.0" |
254 |
-SLOT="0" |
255 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~mips ~ppc ~ppc64 ~sparc ~x86" |
256 |
-IUSE="doc jpeg math opencl openmp osd png static-libs tiff training webp" |
257 |
- |
258 |
-# List of supported Gentoo linguas and their upstream mapping |
259 |
-# https://github.com/tesseract-ocr/tesseract/wiki/Data-Files |
260 |
-# "old" variants were regrouped in the matching modern locale |
261 |
-LANGUAGES="af:afr am:amh ar:ara as:asm az:aze,aze_cyrl be:bel bn:ben bo:bod bs:bos bg:bul ca:cat cs:ces zh:chi_sim,chi_tra cy:cym da:dan de:deu,frk dz:dzo el:ell,grc en:enm eo:epo et:est eu:eus fa:fas fi:fin fr:fra,frm ga:gle gl:glg gu:guj he:heb hi:hin hr:hrv hu:hun id:ind is:isl it:ita,ita_old ja:jpn kn:kan ka:kat,kat_old kk:kaz km:khm ky:kir ko:kor ku:kur lo:lao la:lat lv:lav lt:lit ml:mal mr:mar mk:mkd ms:msa my:mya ne:nep nl:nld no:nor or:ori pa:pan pl:pol pt:por ro:ron ru:rus sa:san si:sin sk:slk sl:slv es:spa,spa_old sq:sqi sr:srp,srp_latn sw:swa sv:swe syc:syr ta:tam te:tel tg:tgk tl:tgl th:tha tr:tur ug:uig uk:ukr uz:uzb,uzb_cyrl vi:vie" |
262 |
-# Missing matches: |
263 |
-# ceb Cebuano |
264 |
-# chr Cherokee |
265 |
-# hat Haitian; Haitian Creole |
266 |
-# iku Inuktitut |
267 |
-# jav Javanese |
268 |
-# mlt Maltese |
269 |
-# pus Pushto; Pashto |
270 |
-# tir Tigrinya |
271 |
-# urd Urdu |
272 |
-# yid Yiddish |
273 |
-# l10n_en provides the additional data: |
274 |
-# enm English, Middle (1100-1500) |
275 |
- |
276 |
-for lang in ${LANGUAGES}; do |
277 |
- gentoo_lang=${lang%:*} |
278 |
- tess_langs=${lang#*:} |
279 |
- for tess_lang in ${tess_langs//,/ }; do |
280 |
- SRC_URI+=" l10n_${gentoo_lang}? ( ${URI_PREFIX}${tess_lang}.traineddata -> ${tess_lang}.traineddata-${LANGPACKV} )" |
281 |
- done |
282 |
- IUSE+=" l10n_${gentoo_lang}" |
283 |
-done |
284 |
- |
285 |
-# With opencl USE=tiff is necessary in leptonica |
286 |
-RDEPEND=">=media-libs/leptonica-1.74:=[zlib,tiff?,jpeg?,png?,webp?] |
287 |
- opencl? ( |
288 |
- virtual/opencl |
289 |
- media-libs/tiff:0= |
290 |
- media-libs/leptonica:=[tiff] |
291 |
- ) |
292 |
- training? ( |
293 |
- dev-libs/icu:= |
294 |
- x11-libs/pango:= |
295 |
- x11-libs/cairo:= |
296 |
- )" |
297 |
- |
298 |
-DEPEND="${RDEPEND} |
299 |
- app-text/asciidoc |
300 |
- app-text/docbook-xsl-stylesheets |
301 |
- dev-libs/libxslt |
302 |
- doc? ( app-doc/doxygen )" |
303 |
- |
304 |
-DOCS=( AUTHORS ChangeLog README.md ) |
305 |
- |
306 |
-PATCHES=( |
307 |
- "${FILESDIR}"/${P}-manpages.patch |
308 |
-) |
309 |
- |
310 |
-pkg_pretend() { |
311 |
- [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp |
312 |
-} |
313 |
- |
314 |
-pkg_setup() { |
315 |
- [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp |
316 |
-} |
317 |
- |
318 |
-src_unpack() { |
319 |
- unpack ${P}.tar.gz |
320 |
- for file in ${A}; do |
321 |
- if [[ "${file}" == *traineddata* ]]; then |
322 |
- cp "${DISTDIR}/${file}" "${S}/tessdata/${file%-*}" || die |
323 |
- fi |
324 |
- done |
325 |
-} |
326 |
- |
327 |
-src_prepare() { |
328 |
- default |
329 |
- eautoreconf |
330 |
-} |
331 |
- |
332 |
-src_configure() { |
333 |
- # scrollview disabled for now, see bug #686944 |
334 |
- local myeconfargs=( |
335 |
- --enable-shared |
336 |
- --disable-graphics |
337 |
- $(use_enable opencl) |
338 |
- $(use_enable openmp) |
339 |
- $(use_enable static-libs static) |
340 |
- ) |
341 |
- |
342 |
- econf "${myeconfargs[@]}" |
343 |
-} |
344 |
- |
345 |
-src_compile() { |
346 |
- default |
347 |
- use doc && emake doc |
348 |
- use training && emake training |
349 |
-} |
350 |
- |
351 |
-src_install() { |
352 |
- use doc && HTML_DOCS=( doc/html/. ) |
353 |
- default |
354 |
- |
355 |
- find "${D}" -name '*.la' -type f -delete || die |
356 |
- |
357 |
- if use training; then |
358 |
- emake DESTDIR="${D}" training-install |
359 |
- fi |
360 |
- |
361 |
- insinto /usr/share/tessdata |
362 |
- doins tessdata/*traineddata* # language files |
363 |
-} |
364 |
|
365 |
diff --git a/app-text/tesseract/tesseract-4.1.0.ebuild b/app-text/tesseract/tesseract-4.1.0.ebuild |
366 |
deleted file mode 100644 |
367 |
index c7877cb2d44..00000000000 |
368 |
--- a/app-text/tesseract/tesseract-4.1.0.ebuild |
369 |
+++ /dev/null |
370 |
@@ -1,83 +0,0 @@ |
371 |
-# Copyright 1999-2019 Gentoo Authors |
372 |
-# Distributed under the terms of the GNU General Public License v2 |
373 |
- |
374 |
-EAPI=7 |
375 |
- |
376 |
-inherit autotools toolchain-funcs |
377 |
- |
378 |
-DESCRIPTION="An OCR Engine, orginally developed at HP, now open source." |
379 |
-HOMEPAGE="https://github.com/tesseract-ocr" |
380 |
-SRC_URI="https://github.com/tesseract-ocr/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
381 |
- |
382 |
-LICENSE="Apache-2.0" |
383 |
-SLOT="0" |
384 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~mips ~ppc ~ppc64 ~sparc ~x86" |
385 |
-IUSE="doc jpeg opencl openmp png static-libs tiff training webp" |
386 |
- |
387 |
-COMMON_DEPEND=">=media-libs/leptonica-1.74:=[zlib,tiff?,jpeg?,png?,webp?] |
388 |
- opencl? ( |
389 |
- virtual/opencl |
390 |
- media-libs/tiff:0= |
391 |
- media-libs/leptonica:=[tiff] |
392 |
- ) |
393 |
- training? ( |
394 |
- dev-libs/icu:= |
395 |
- x11-libs/pango:= |
396 |
- x11-libs/cairo:= |
397 |
- )" |
398 |
-RDEPEND="${COMMON_DEPEND} |
399 |
- || ( |
400 |
- >=app-text/tessdata_fast-4.0.0 |
401 |
- >=app-text/tessdata_best-4.0.0 |
402 |
- >=app-text/tessdata_legacy-4.0.0 |
403 |
- )" |
404 |
-DEPEND="${COMMON_DEPEND} |
405 |
- app-text/asciidoc |
406 |
- app-text/docbook-xsl-stylesheets |
407 |
- dev-libs/libxslt |
408 |
- doc? ( app-doc/doxygen )" |
409 |
- |
410 |
-DOCS=( AUTHORS ChangeLog README.md ) |
411 |
- |
412 |
-pkg_pretend() { |
413 |
- [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp |
414 |
-} |
415 |
- |
416 |
-pkg_setup() { |
417 |
- [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp |
418 |
-} |
419 |
- |
420 |
-src_prepare() { |
421 |
- default |
422 |
- eautoreconf |
423 |
-} |
424 |
- |
425 |
-src_configure() { |
426 |
- # scrollview disabled for now, see bug #686944 |
427 |
- local myeconfargs=( |
428 |
- --enable-shared |
429 |
- --disable-graphics |
430 |
- $(use_enable opencl) |
431 |
- $(use_enable openmp) |
432 |
- $(use_enable static-libs static) |
433 |
- ) |
434 |
- |
435 |
- econf "${myeconfargs[@]}" |
436 |
-} |
437 |
- |
438 |
-src_compile() { |
439 |
- default |
440 |
- use doc && emake doc |
441 |
- use training && emake training |
442 |
-} |
443 |
- |
444 |
-src_install() { |
445 |
- use doc && HTML_DOCS=( doc/html/. ) |
446 |
- default |
447 |
- |
448 |
- find "${D}" -name '*.la' -type f -delete || die |
449 |
- |
450 |
- if use training; then |
451 |
- emake DESTDIR="${D}" training-install |
452 |
- fi |
453 |
-} |