diff options
author | Bernard Cafarelli <voyageur@gentoo.org> | 2018-02-07 10:56:18 +0100 |
---|---|---|
committer | Bernard Cafarelli <voyageur@gentoo.org> | 2018-02-07 11:31:27 +0100 |
commit | a6e24a2f2fcef48c6127f9812d71201399aead77 (patch) | |
tree | 4097f407d397923da27ba1213b180cf9546691d3 /app-text | |
parent | app-backup/backup-manager: drop old (diff) | |
download | gentoo-a6e24a2f2fcef48c6127f9812d71201399aead77.tar.gz gentoo-a6e24a2f2fcef48c6127f9812d71201399aead77.tar.bz2 gentoo-a6e24a2f2fcef48c6127f9812d71201399aead77.zip |
app-text/tesseract: drop old
Package-Manager: Portage-2.3.24, Repoman-2.3.6
Diffstat (limited to 'app-text')
-rw-r--r-- | app-text/tesseract/Manifest | 3 | ||||
-rw-r--r-- | app-text/tesseract/files/tesseract-2.04-gcc47.patch | 10 | ||||
-rw-r--r-- | app-text/tesseract/files/tesseract-3.04.01-fix-opencl-ldflags.patch | 11 | ||||
-rw-r--r-- | app-text/tesseract/files/tesseract-3.05.00-libtiff.patch | 25 | ||||
-rw-r--r-- | app-text/tesseract/tesseract-3.04.01-r1.ebuild | 149 | ||||
-rw-r--r-- | app-text/tesseract/tesseract-3.04.01.ebuild | 153 | ||||
-rw-r--r-- | app-text/tesseract/tesseract-3.05.00.ebuild | 149 |
7 files changed, 0 insertions, 500 deletions
diff --git a/app-text/tesseract/Manifest b/app-text/tesseract/Manifest index fd4879a3d72a..514151081a2c 100644 --- a/app-text/tesseract/Manifest +++ b/app-text/tesseract/Manifest @@ -121,11 +121,8 @@ DIST swe.traineddata-4.00 19062525 BLAKE2B bcdd4b24e671c47d7c4e2bc88c19c92576512 DIST syr.traineddata-4.00 8056121 BLAKE2B bacf6ee42b8a9dac7042ca2608ec72b6db1a760f505e3325105141a24395d7e4e35fed3fe737785e92232bf89584822b46af05e97308f76edad0c7bd28a048e7 SHA512 c79acc0bde79d7f38b5ddd34683615886d7c284040273849e4b31dd988c4c0ac1617c0f6ef9d246b47eaade5ad5fdfdc4bf99dbb29e2d33c3827927135ea6f06 DIST tam.traineddata-4.00 17333471 BLAKE2B 67e4b10d8e9fab5df8455b35483972d5543ccf76d7440e7b1c9c8fe89a3cc4e19359a8695b1410004e202b138b8524c000487fdf2ee26247c0a2d4190b7184ed SHA512 9ad90eb8c291712e4cd874d41ed9bcd4169427a50509a353f5549382909458b46a7e4a092dec0d475c548e681426a81597c577f2f821978405a94f965fd4d05f DIST tel.traineddata-4.00 54446537 BLAKE2B 0ecb044b58017e36a6d9e28927242ecb6ac8975f079c42c78a661faa87ac1ed7f9d38fd59383d3ca1b484fbf371aeb5e872765921d4b79066a938b88671a3d9f SHA512 5e5c2ca84f095ec4dd3184d6cb75702482c699b5cd04f8750ab8958f578f7b24cf3253a83d19a4a1f3716466b95a81737d473339e3593538e46372c4588febb6 -DIST tesseract-3.04.01.tar.gz 2269105 BLAKE2B 298b388619b3dfa1d2aac331f50dcf8f840fb44826df568aa4c831903b8a4b511cd05cb7c54a27502bcfb457630ed6561f314934cadc0e1f5be7479096606307 SHA512 816f6c29f8efeaf157891ddb022bd0daf8eb27c0cb8b6df5542e745d209f0ce617245e4583c59a561ed3216044d3afb38f8620ee94cdea656364923dcb140b5b -DIST tesseract-3.05.00.tar.gz 3581853 BLAKE2B 1053ccec6a85601757a0b64a952b522b70b618ff78f3b8f33756298676151359891fb5b89d09f0d7c93db0109587745398d1dc5854806242308cd275caed06d4 SHA512 54ba96bd1b0d19883e8a0f717ecfddd459945f9dda0fd340e29e2dab3af94d0eceb7f3d207f34685ee97d1ec763efac5d94dec7e0498a7ca85fec35da4ed76b1 DIST tesseract-3.05.01.tar.gz 3574810 BLAKE2B 0af97d0a58c05ce4d6f8fb3f76302344f75b5894b036adc327ecc79f90f2b41da58c8145509dc131706e806e291355e221482980294e2c9caff4be93d9b448b6 SHA512 a49c20c98386684cd89582e57b772811204fad8e5ff18214fb0da109f73629c70845054985e31e8deeb49107fbcf56e546aff661f08eb5dd60fbf83dbe976e81 DIST tesseract-4.00.00_alpha.tar.gz 3706567 BLAKE2B e3790c95ca7f219a3e1a90de09b9464bc54210d6f553132d4fa9e39f0afe56e458e16424a10a1a6e6461e8e98a84fbea826542a32d3432533165a9d400a416c4 SHA512 282ec941233ceb80fe1008e585a6069fe8ecd6bf2dd1d0f56e2e79b772a0b83bca918d5da892a6cab194a7828607e41a7fd873acec33181b8b86c3c37e434103 -DIST tesseract-ocr-3.02.02-doc-html.tar.gz 10635901 BLAKE2B 2c54d12d796c760acfac88bfa4307843776262b2637376d7aa356e0da5e8426a1ef1dea8bd544ffcf87125827061713455d42b4c0037f4a40f91263f47f61f58 SHA512 4cca5974635ed9c1656a00735bf682ed1eca5cb9a3641a0d063f66ffbdf9dcbc0476628a5b5c48684bd23f5616412e71e9cec608ac979760010c1ee91764290f DIST tgk.traineddata-4.00 6555909 BLAKE2B a3023ec0fa10e3f52e5059b20da48a81eaa90b6665b55b50ac74d7f1f4acea3d7b6eae9f00f2a0a1f58798eb15d976367145d72976db1dd019fe249cae36a1b2 SHA512 abc5f2c4ac91b17a250f2f4847c9528a7673d51230415b7a069dc7243e2c210564400d34d5c38da6b727c8c24af26cbde3e7ef8a9674fa1605da001b4b1b60bb DIST tgl.traineddata-3.04.00 4114554 BLAKE2B 1cbd5e20fcf5fa7ea183daa76e1d09d7bd4427ce2456de49f23e374af8ae48219a32f71a25d0a98c26c79ac87dc4f8f68621c76fad85b6105561f5285d635c8d SHA512 8c205fd0d4b2fc774e5b6a19cb56dcdb91b7d001acd881e34363e437d5eeae8615b853ae09f93c4957328d3a423300b9a20a443ca971a14ede1867de6194a2bb DIST tgl.traineddata-4.00 11991699 BLAKE2B d888013c0416c1e057522ec828e2c2b4470d50b55b6de580ecf20090771cd6726167ca1dc66f02afab1f7c369035db1ea84cb0c7ddcc36d37820c0c065648986 SHA512 fda51303a8963432fa541510287aec32ea9ee7342e0ca7dfba4f40c5d352aec74bf7982bc469e12196d51a8906dd224df01aead0d14859102267e7ffd19f0380 diff --git a/app-text/tesseract/files/tesseract-2.04-gcc47.patch b/app-text/tesseract/files/tesseract-2.04-gcc47.patch deleted file mode 100644 index afc560a8dc4a..000000000000 --- a/app-text/tesseract/files/tesseract-2.04-gcc47.patch +++ /dev/null @@ -1,10 +0,0 @@ ---- ./viewer/svutil.cpp.ori 2012-04-28 01:59:58.441072997 +0200 -+++ ./viewer/svutil.cpp 2012-04-28 02:00:35.085467955 +0200 -@@ -37,6 +37,7 @@ - #include <signal.h> - #include <stdlib.h> - #include <string.h> -+#include <unistd.h> - #include <netdb.h> - #include <sys/socket.h> - #ifdef __linux__ diff --git a/app-text/tesseract/files/tesseract-3.04.01-fix-opencl-ldflags.patch b/app-text/tesseract/files/tesseract-3.04.01-fix-opencl-ldflags.patch deleted file mode 100644 index b1b2b63fb539..000000000000 --- a/app-text/tesseract/files/tesseract-3.04.01-fix-opencl-ldflags.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- tesseract-3.04.01/configure.ac.orig 2016-08-11 10:50:28.853292674 +0200 -+++ tesseract-3.04.01/configure.ac 2016-08-11 11:06:32.919076995 +0200 -@@ -248,7 +248,7 @@ - fi - AC_SUBST([AM_CPPFLAGS], [-DUSE_OPENCL]) - OPENCL_CPPFLAGS="-I${OPENCL_INC}" -- OPENCL_LDFLAGS="-l${OPENCL_LIBS}" -+ OPENCL_LDFLAGS="${OPENCL_LIBS}" - fi - ;; - esac diff --git a/app-text/tesseract/files/tesseract-3.05.00-libtiff.patch b/app-text/tesseract/files/tesseract-3.05.00-libtiff.patch deleted file mode 100644 index 5771739c3445..000000000000 --- a/app-text/tesseract/files/tesseract-3.05.00-libtiff.patch +++ /dev/null @@ -1,25 +0,0 @@ -From 9ec0c4fa9c9836d414c02662a6f94f48815d61b2 Mon Sep 17 00:00:00 2001 -From: Stefan Weil <sw@weilnetz.de> -Date: Tue, 13 Dec 2016 13:28:29 +0100 -Subject: [PATCH] api: Add missing dependency on libtiff - -It is needed because of a direct call to TIFFSetWarningHandler. - -Signed-off-by: Stefan Weil <sw@weilnetz.de> ---- - api/Makefile.am | 2 ++ - 1 file changed, 2 insertions(+) - -diff --git a/api/Makefile.am b/api/Makefile.am -index 76a8ed4..25e7f21 100644 ---- a/api/Makefile.am -+++ b/api/Makefile.am -@@ -90,6 +90,8 @@ tesseract_LDFLAGS = $(OPENCL_LDFLAGS) - - tesseract_LDADD += $(OPENMP_CXXFLAGS) - -+tesseract_LDADD += -ltiff -+ - if T_WIN - tesseract_LDADD += -lws2_32 - libtesseract_la_LDFLAGS += -no-undefined -Wl,--as-needed -lws2_32 diff --git a/app-text/tesseract/tesseract-3.04.01-r1.ebuild b/app-text/tesseract/tesseract-3.04.01-r1.ebuild deleted file mode 100644 index d7d23a447a0a..000000000000 --- a/app-text/tesseract/tesseract-3.04.01-r1.ebuild +++ /dev/null @@ -1,149 +0,0 @@ -# Copyright 1999-2017 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -MY_PN="tesseract-ocr" -LANGPACKV="3.04.00" -URI_PREFIX="https://github.com/${MY_PN}/tessdata/raw/${LANGPACKV}/" -JAVA_PKG_OPT_USE="scrollview" - -inherit autotools java-pkg-opt-2 toolchain-funcs - -DESCRIPTION="An OCR Engine, orginally developed at HP, now open source." -HOMEPAGE="https://github.com/tesseract-ocr" -SRC_URI="https://github.com/${MY_PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz - ${URI_PREFIX}eng.traineddata -> eng.traineddata-${LANGPACKV} - math? ( ${URI_PREFIX}equ.traineddata -> equ.traineddata-${LANGPACKV} ) - l10n_ar? ( ${URI_PREFIX}ara.traineddata -> ara.traineddata-${LANGPACKV} ) - l10n_bg? ( ${URI_PREFIX}bul.traineddata -> bul.traineddata-${LANGPACKV} ) - l10n_ca? ( ${URI_PREFIX}cat.traineddata -> cat.traineddata-${LANGPACKV} ) - l10n_chr? ( ${URI_PREFIX}chr.traineddata -> chr.traineddata-${LANGPACKV} ) - l10n_cs? ( ${URI_PREFIX}ces.traineddata -> ces.traineddata-${LANGPACKV} ) - l10n_de? ( ${URI_PREFIX}deu.traineddata -> deu.traineddata-${LANGPACKV} - ${URI_PREFIX}deu_frak.traineddata -> deu_frak.traineddata-${LANGPACKV} ) - l10n_da? ( ${URI_PREFIX}dan.traineddata -> dan.traineddata-${LANGPACKV} - ${URI_PREFIX}dan_frak.traineddata -> dan_frak.traineddata-${LANGPACKV} ) - l10n_el? ( ${URI_PREFIX}ell.traineddata -> ell.traineddata-${LANGPACKV} ) - l10n_es? ( ${URI_PREFIX}spa.traineddata -> spa.traineddata-${LANGPACKV} ) - l10n_fi? ( ${URI_PREFIX}fin.traineddata -> fin.traineddata-${LANGPACKV} ) - l10n_fr? ( ${URI_PREFIX}fra.traineddata -> fra.traineddata-${LANGPACKV} ) - l10n_he? ( ${URI_PREFIX}heb.traineddata -> heb.traineddata-${LANGPACKV} ) - l10n_hi? ( ${URI_PREFIX}hin.traineddata -> hin.traineddata-${LANGPACKV} ) - l10n_hu? ( ${URI_PREFIX}hun.traineddata -> hun.traineddata-${LANGPACKV} ) - l10n_id? ( ${URI_PREFIX}ind.traineddata -> ind.traineddata-${LANGPACKV} ) - l10n_it? ( ${URI_PREFIX}ita.traineddata -> ita.traineddata-${LANGPACKV} ) - l10n_ja? ( ${URI_PREFIX}jpn.traineddata -> jpn.traineddata-${LANGPACKV} ) - l10n_ko? ( ${URI_PREFIX}kor.traineddata -> kor.traineddata-${LANGPACKV} ) - l10n_lt? ( ${URI_PREFIX}lit.traineddata -> lit.traineddata-${LANGPACKV} ) - l10n_lv? ( ${URI_PREFIX}lav.traineddata -> lav.traineddata-${LANGPACKV} ) - l10n_nl? ( ${URI_PREFIX}nld.traineddata -> nld.traineddata-${LANGPACKV} ) - l10n_no? ( ${URI_PREFIX}nor.traineddata -> nor.traineddata-${LANGPACKV} ) - l10n_pl? ( ${URI_PREFIX}pol.traineddata -> pol.traineddata-${LANGPACKV} ) - l10n_pt? ( ${URI_PREFIX}por.traineddata -> por.traineddata-${LANGPACKV} ) - l10n_ro? ( ${URI_PREFIX}ron.traineddata -> ron.traineddata-${LANGPACKV} ) - l10n_ru? ( ${URI_PREFIX}rus.traineddata -> rus.traineddata-${LANGPACKV} ) - l10n_sk? ( ${URI_PREFIX}slk.traineddata -> slk.traineddata-${LANGPACKV} - ${URI_PREFIX}slk_frak.traineddata -> slk_frak.traineddata-${LANGPACKV} ) - l10n_sl? ( ${URI_PREFIX}slv.traineddata -> slv.traineddata-${LANGPACKV} ) - l10n_sr? ( ${URI_PREFIX}srp.traineddata -> srp.traineddata-${LANGPACKV} ) - l10n_sv? ( ${URI_PREFIX}swe.traineddata -> swe.traineddata-${LANGPACKV} ) - l10n_th? ( ${URI_PREFIX}tha.traineddata -> tha.traineddata-${LANGPACKV} ) - l10n_tl? ( ${URI_PREFIX}tgl.traineddata -> tgl.traineddata-${LANGPACKV} ) - l10n_tr? ( ${URI_PREFIX}tur.traineddata -> tur.traineddata-${LANGPACKV} ) - l10n_uk? ( ${URI_PREFIX}ukr.traineddata -> ukr.traineddata-${LANGPACKV} ) - l10n_vi? ( ${URI_PREFIX}vie.traineddata -> vie.traineddata-${LANGPACKV} ) - l10n_zh-CN? ( ${URI_PREFIX}chi_sim.traineddata -> chi_sim.traineddata-${LANGPACKV} ) - l10n_zh-TW? ( ${URI_PREFIX}chi_tra.traineddata -> chi_tra.traineddata-${LANGPACKV} ) - osd? ( ${URI_PREFIX}osd.traineddata -> osd.traineddata-${LANGPACKV} ) -" - -LICENSE="Apache-2.0" -SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~mips ~ppc ~ppc64 ~sparc ~x86" - -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" - -# With opencl USE=tiff is necessary in leptonica -CDEPEND=">=media-libs/leptonica-1.71:=[zlib,tiff?,jpeg?,png?,webp?] - opencl? ( - virtual/opencl - media-libs/tiff:0= - media-libs/leptonica:=[tiff] - ) - scrollview? ( - >=dev-java/piccolo2d-3.0:0 - ) - training? ( - dev-libs/icu:= - x11-libs/pango:= - x11-libs/cairo:= - ) -" - -DEPEND="${CDEPEND} - doc? ( app-doc/doxygen ) - scrollview? ( >=virtual/jdk-1.7 )" - -RDEPEND="${CDEPEND} - scrollview? ( >=virtual/jre-1.7 )" - -DOCS=( AUTHORS ChangeLog NEWS README.md ReleaseNotes ) - -PATCHES=( - "${FILESDIR}/${P}-use-system-piccolo2d.patch" - "${FILESDIR}/${P}-fix-opencl-ldflags.patch" -) - -src_unpack() { - unpack ${P}.tar.gz - for file in ${A}; do - if [[ "${file}" == *traineddata* ]]; then - cp "${DISTDIR}/${file}" "${S}/tessdata/${file%-*}" || die - fi - done -} - -src_prepare() { - default - eautoreconf - - java-pkg-opt-2_src_prepare -} - -src_configure() { - local myeconfargs=( - --enable-shared - $(use_enable opencl) - $(use_enable scrollview graphics) - $(use_enable static-libs static) - ) - - econf "${myeconfargs[@]}" -} - -src_compile() { - default - use doc && emake doc - use scrollview && emake ScrollView.jar JAVAC="javac $(java-pkg_javac-args)" - use training && emake training -} - -src_install() { - use doc && HTML_DOCS=( doc/html/. ) - default - prune_libtool_files - - if use training; then - emake DESTDIR="${D}" training-install - fi - - if use examples; then - insinto /usr/share/doc/${PF}/examples - doins testing/eurotext.tif testing/phototest.tif - fi - - insinto /usr/share/tessdata - doins tessdata/*traineddata* # language files - use scrollview && doins java/ScrollView.jar # scrollview -} diff --git a/app-text/tesseract/tesseract-3.04.01.ebuild b/app-text/tesseract/tesseract-3.04.01.ebuild deleted file mode 100644 index 6852fc486ef1..000000000000 --- a/app-text/tesseract/tesseract-3.04.01.ebuild +++ /dev/null @@ -1,153 +0,0 @@ -# Copyright 1999-2017 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=5 - -MY_PN="tesseract-ocr" -LANGPACKV="3.04.00" -URI_PREFIX="https://github.com/${MY_PN}/tessdata/raw/${LANGPACKV}/" -JAVA_PKG_OPT_USE="scrollview" - -inherit eutils autotools java-pkg-opt-2 - -DESCRIPTION="An OCR Engine, orginally developed at HP, now open source." -HOMEPAGE="https://github.com/tesseract-ocr" -SRC_URI="https://github.com/${MY_PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz - ${URI_PREFIX}eng.traineddata -> eng.traineddata-${LANGPACKV} - doc? ( https://tesseract-ocr.googlecode.com/files/tesseract-ocr-3.02.02-doc-html.tar.gz ) - math? ( ${URI_PREFIX}equ.traineddata -> equ.traineddata-${LANGPACKV} ) - l10n_ar? ( ${URI_PREFIX}ara.traineddata -> ara.traineddata-${LANGPACKV} ) - l10n_bg? ( ${URI_PREFIX}bul.traineddata -> bul.traineddata-${LANGPACKV} ) - l10n_ca? ( ${URI_PREFIX}cat.traineddata -> cat.traineddata-${LANGPACKV} ) - l10n_chr? ( ${URI_PREFIX}chr.traineddata -> chr.traineddata-${LANGPACKV} ) - l10n_cs? ( ${URI_PREFIX}ces.traineddata -> ces.traineddata-${LANGPACKV} ) - l10n_de? ( ${URI_PREFIX}deu.traineddata -> deu.traineddata-${LANGPACKV} - ${URI_PREFIX}deu_frak.traineddata -> deu_frak.traineddata-${LANGPACKV} ) - l10n_da? ( ${URI_PREFIX}dan.traineddata -> dan.traineddata-${LANGPACKV} - ${URI_PREFIX}dan_frak.traineddata -> dan_frak.traineddata-${LANGPACKV} ) - l10n_el? ( ${URI_PREFIX}ell.traineddata -> ell.traineddata-${LANGPACKV} ) - l10n_es? ( ${URI_PREFIX}spa.traineddata -> spa.traineddata-${LANGPACKV} ) - l10n_fi? ( ${URI_PREFIX}fin.traineddata -> fin.traineddata-${LANGPACKV} ) - l10n_fr? ( ${URI_PREFIX}fra.traineddata -> fra.traineddata-${LANGPACKV} ) - l10n_he? ( ${URI_PREFIX}heb.traineddata -> heb.traineddata-${LANGPACKV} ) - l10n_hi? ( ${URI_PREFIX}hin.traineddata -> hin.traineddata-${LANGPACKV} ) - l10n_hu? ( ${URI_PREFIX}hun.traineddata -> hun.traineddata-${LANGPACKV} ) - l10n_id? ( ${URI_PREFIX}ind.traineddata -> ind.traineddata-${LANGPACKV} ) - l10n_it? ( ${URI_PREFIX}ita.traineddata -> ita.traineddata-${LANGPACKV} ) - l10n_ja? ( ${URI_PREFIX}jpn.traineddata -> jpn.traineddata-${LANGPACKV} ) - l10n_ko? ( ${URI_PREFIX}kor.traineddata -> kor.traineddata-${LANGPACKV} ) - l10n_lt? ( ${URI_PREFIX}lit.traineddata -> lit.traineddata-${LANGPACKV} ) - l10n_lv? ( ${URI_PREFIX}lav.traineddata -> lav.traineddata-${LANGPACKV} ) - l10n_nl? ( ${URI_PREFIX}nld.traineddata -> nld.traineddata-${LANGPACKV} ) - l10n_no? ( ${URI_PREFIX}nor.traineddata -> nor.traineddata-${LANGPACKV} ) - l10n_pl? ( ${URI_PREFIX}pol.traineddata -> pol.traineddata-${LANGPACKV} ) - l10n_pt? ( ${URI_PREFIX}por.traineddata -> por.traineddata-${LANGPACKV} ) - l10n_ro? ( ${URI_PREFIX}ron.traineddata -> ron.traineddata-${LANGPACKV} ) - l10n_ru? ( ${URI_PREFIX}rus.traineddata -> rus.traineddata-${LANGPACKV} ) - l10n_sk? ( ${URI_PREFIX}slk.traineddata -> slk.traineddata-${LANGPACKV} - ${URI_PREFIX}slk_frak.traineddata -> slk_frak.traineddata-${LANGPACKV} ) - l10n_sl? ( ${URI_PREFIX}slv.traineddata -> slv.traineddata-${LANGPACKV} ) - l10n_sr? ( ${URI_PREFIX}srp.traineddata -> srp.traineddata-${LANGPACKV} ) - l10n_sv? ( ${URI_PREFIX}swe.traineddata -> swe.traineddata-${LANGPACKV} ) - l10n_th? ( ${URI_PREFIX}tha.traineddata -> tha.traineddata-${LANGPACKV} ) - l10n_tl? ( ${URI_PREFIX}tgl.traineddata -> tgl.traineddata-${LANGPACKV} ) - l10n_tr? ( ${URI_PREFIX}tur.traineddata -> tur.traineddata-${LANGPACKV} ) - l10n_uk? ( ${URI_PREFIX}ukr.traineddata -> ukr.traineddata-${LANGPACKV} ) - l10n_vi? ( ${URI_PREFIX}vie.traineddata -> vie.traineddata-${LANGPACKV} ) - l10n_zh-CN? ( ${URI_PREFIX}chi_sim.traineddata -> chi_sim.traineddata-${LANGPACKV} ) - l10n_zh-TW? ( ${URI_PREFIX}chi_tra.traineddata -> chi_tra.traineddata-${LANGPACKV} ) - osd? ( ${URI_PREFIX}osd.traineddata -> osd.traineddata-${LANGPACKV} ) -" - -LICENSE="Apache-2.0" -SLOT="0" -KEYWORDS="alpha amd64 ~arm ~mips ppc ppc64 sparc x86" - -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" - -# With opencl USE=tiff is necessary in leptonica -CDEPEND=">=media-libs/leptonica-1.71:=[zlib,tiff?,jpeg?,png?,webp?] - opencl? ( - virtual/opencl - media-libs/tiff:0= - media-libs/leptonica:=[tiff] - ) - scrollview? ( - >=dev-java/piccolo2d-3.0:0 - ) - training? ( - dev-libs/icu:= - x11-libs/pango:= - x11-libs/cairo:= - ) -" - -DEPEND="${CDEPEND} - scrollview? ( >=virtual/jdk-1.7 )" - -RDEPEND="${CDEPEND} - scrollview? ( >=virtual/jre-1.7 )" - -DOCS=( AUTHORS ChangeLog NEWS README.md ReleaseNotes ) - -PATCHES=( - "${FILESDIR}/tesseract-2.04-gcc47.patch" - "${FILESDIR}/${P}-use-system-piccolo2d.patch" - "${FILESDIR}/${P}-fix-opencl-ldflags.patch" -) - -src_unpack() { - unpack ${P}.tar.gz - use doc && unpack tesseract-ocr-3.02.02-doc-html.tar.gz - for file in ${A}; do - if [[ "${file}" == *traineddata* ]]; then - cp "${DISTDIR}/${file}" "${S}/tessdata/${file%-*}" || die - fi - done -} - -src_prepare() { - epatch "${PATCHES[@]}" - eautoreconf - - java-pkg-opt-2_src_prepare -} - -src_configure() { - local myeconfargs=( - --enable-shared - $(use_enable opencl) - $(use_enable scrollview graphics) - $(use_enable static-libs static) - ) - - econf "${myeconfargs[@]}" -} - -src_compile() { - default - use scrollview && emake ScrollView.jar JAVAC="javac $(java-pkg_javac-args)" - use training && emake training -} - -src_install() { - default - prune_libtool_files - - if use training; then - emake DESTDIR="${D}" training-install - fi - - if use examples; then - insinto /usr/share/doc/${PF}/examples - doins testing/eurotext.tif testing/phototest.tif - fi - - if use doc; then - dohtml -r "${WORKDIR}/${MY_PN}"/doc/html/* - fi - - insinto /usr/share/tessdata - doins tessdata/*traineddata* # language files - use scrollview && doins java/ScrollView.jar # scrollview -} diff --git a/app-text/tesseract/tesseract-3.05.00.ebuild b/app-text/tesseract/tesseract-3.05.00.ebuild deleted file mode 100644 index 7b1c14b4f5b0..000000000000 --- a/app-text/tesseract/tesseract-3.05.00.ebuild +++ /dev/null @@ -1,149 +0,0 @@ -# Copyright 1999-2017 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -MY_PN="tesseract-ocr" -LANGPACKV="3.04.00" -URI_PREFIX="https://github.com/${MY_PN}/tessdata/raw/${LANGPACKV}/" -JAVA_PKG_OPT_USE="scrollview" - -inherit autotools java-pkg-opt-2 toolchain-funcs - -DESCRIPTION="An OCR Engine, orginally developed at HP, now open source." -HOMEPAGE="https://github.com/tesseract-ocr" -SRC_URI="https://github.com/${MY_PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz - ${URI_PREFIX}eng.traineddata -> eng.traineddata-${LANGPACKV} - math? ( ${URI_PREFIX}equ.traineddata -> equ.traineddata-${LANGPACKV} ) - l10n_ar? ( ${URI_PREFIX}ara.traineddata -> ara.traineddata-${LANGPACKV} ) - l10n_bg? ( ${URI_PREFIX}bul.traineddata -> bul.traineddata-${LANGPACKV} ) - l10n_ca? ( ${URI_PREFIX}cat.traineddata -> cat.traineddata-${LANGPACKV} ) - l10n_chr? ( ${URI_PREFIX}chr.traineddata -> chr.traineddata-${LANGPACKV} ) - l10n_cs? ( ${URI_PREFIX}ces.traineddata -> ces.traineddata-${LANGPACKV} ) - l10n_de? ( ${URI_PREFIX}deu.traineddata -> deu.traineddata-${LANGPACKV} - ${URI_PREFIX}deu_frak.traineddata -> deu_frak.traineddata-${LANGPACKV} ) - l10n_da? ( ${URI_PREFIX}dan.traineddata -> dan.traineddata-${LANGPACKV} - ${URI_PREFIX}dan_frak.traineddata -> dan_frak.traineddata-${LANGPACKV} ) - l10n_el? ( ${URI_PREFIX}ell.traineddata -> ell.traineddata-${LANGPACKV} ) - l10n_es? ( ${URI_PREFIX}spa.traineddata -> spa.traineddata-${LANGPACKV} ) - l10n_fi? ( ${URI_PREFIX}fin.traineddata -> fin.traineddata-${LANGPACKV} ) - l10n_fr? ( ${URI_PREFIX}fra.traineddata -> fra.traineddata-${LANGPACKV} ) - l10n_he? ( ${URI_PREFIX}heb.traineddata -> heb.traineddata-${LANGPACKV} ) - l10n_hi? ( ${URI_PREFIX}hin.traineddata -> hin.traineddata-${LANGPACKV} ) - l10n_hu? ( ${URI_PREFIX}hun.traineddata -> hun.traineddata-${LANGPACKV} ) - l10n_id? ( ${URI_PREFIX}ind.traineddata -> ind.traineddata-${LANGPACKV} ) - l10n_it? ( ${URI_PREFIX}ita.traineddata -> ita.traineddata-${LANGPACKV} ) - l10n_ja? ( ${URI_PREFIX}jpn.traineddata -> jpn.traineddata-${LANGPACKV} ) - l10n_ko? ( ${URI_PREFIX}kor.traineddata -> kor.traineddata-${LANGPACKV} ) - l10n_lt? ( ${URI_PREFIX}lit.traineddata -> lit.traineddata-${LANGPACKV} ) - l10n_lv? ( ${URI_PREFIX}lav.traineddata -> lav.traineddata-${LANGPACKV} ) - l10n_nl? ( ${URI_PREFIX}nld.traineddata -> nld.traineddata-${LANGPACKV} ) - l10n_no? ( ${URI_PREFIX}nor.traineddata -> nor.traineddata-${LANGPACKV} ) - l10n_pl? ( ${URI_PREFIX}pol.traineddata -> pol.traineddata-${LANGPACKV} ) - l10n_pt? ( ${URI_PREFIX}por.traineddata -> por.traineddata-${LANGPACKV} ) - l10n_ro? ( ${URI_PREFIX}ron.traineddata -> ron.traineddata-${LANGPACKV} ) - l10n_ru? ( ${URI_PREFIX}rus.traineddata -> rus.traineddata-${LANGPACKV} ) - l10n_sk? ( ${URI_PREFIX}slk.traineddata -> slk.traineddata-${LANGPACKV} - ${URI_PREFIX}slk_frak.traineddata -> slk_frak.traineddata-${LANGPACKV} ) - l10n_sl? ( ${URI_PREFIX}slv.traineddata -> slv.traineddata-${LANGPACKV} ) - l10n_sr? ( ${URI_PREFIX}srp.traineddata -> srp.traineddata-${LANGPACKV} ) - l10n_sv? ( ${URI_PREFIX}swe.traineddata -> swe.traineddata-${LANGPACKV} ) - l10n_th? ( ${URI_PREFIX}tha.traineddata -> tha.traineddata-${LANGPACKV} ) - l10n_tl? ( ${URI_PREFIX}tgl.traineddata -> tgl.traineddata-${LANGPACKV} ) - l10n_tr? ( ${URI_PREFIX}tur.traineddata -> tur.traineddata-${LANGPACKV} ) - l10n_uk? ( ${URI_PREFIX}ukr.traineddata -> ukr.traineddata-${LANGPACKV} ) - l10n_vi? ( ${URI_PREFIX}vie.traineddata -> vie.traineddata-${LANGPACKV} ) - l10n_zh-CN? ( ${URI_PREFIX}chi_sim.traineddata -> chi_sim.traineddata-${LANGPACKV} ) - l10n_zh-TW? ( ${URI_PREFIX}chi_tra.traineddata -> chi_tra.traineddata-${LANGPACKV} ) - osd? ( ${URI_PREFIX}osd.traineddata -> osd.traineddata-${LANGPACKV} ) -" - -LICENSE="Apache-2.0" -SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~mips ~ppc ~ppc64 ~sparc ~x86" - -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" - -# With opencl USE=tiff is necessary in leptonica -CDEPEND=">=media-libs/leptonica-1.71:=[zlib,tiff?,jpeg?,png?,webp?] - opencl? ( - virtual/opencl - media-libs/tiff:0= - media-libs/leptonica:=[tiff] - ) - scrollview? ( - >=dev-java/piccolo2d-3.0:0 - ) - training? ( - dev-libs/icu:= - x11-libs/pango:= - x11-libs/cairo:= - )" - -DEPEND="${CDEPEND} - doc? ( app-doc/doxygen ) - scrollview? ( >=virtual/jdk-1.7 )" - -RDEPEND="${CDEPEND} - scrollview? ( >=virtual/jre-1.7 )" - -DOCS=( AUTHORS ChangeLog NEWS README.md ) - -PATCHES=( - "${FILESDIR}/${P}-libtiff.patch" - "${FILESDIR}/${P}-no_graphics.patch" - "${FILESDIR}/${PN}-4.00.00-use-system-piccolo2d.patch" -) - -src_unpack() { - unpack ${P}.tar.gz - for file in ${A}; do - if [[ "${file}" == *traineddata* ]]; then - cp "${DISTDIR}/${file}" "${S}/tessdata/${file%-*}" || die - fi - done -} - -src_prepare() { - default - eautoreconf - - java-pkg-opt-2_src_prepare -} - -src_configure() { - local myeconfargs=( - --enable-shared - $(use_enable opencl) - $(use_enable scrollview graphics) - $(use_enable static-libs static) - ) - - econf "${myeconfargs[@]}" -} - -src_compile() { - default - use doc && emake doc - use scrollview && emake ScrollView.jar JAVAC="javac $(java-pkg_javac-args)" - use training && emake training -} - -src_install() { - use doc && HTML_DOCS=( doc/html/. ) - default - prune_libtool_files - - if use training; then - emake DESTDIR="${D}" training-install - fi - - if use examples; then - insinto /usr/share/doc/${PF}/examples - doins testing/eurotext.tif testing/phototest.tif - fi - - insinto /usr/share/tessdata - doins tessdata/*traineddata* # language files - use scrollview && doins java/ScrollView.jar # scrollview -} |