From 0f15659d48c193027158492acb726297501202c5 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 25 Dec 2021 20:34:27 +0000 Subject: gentoo xmass resync : 25.12.2021 --- app-text/tesseract/Manifest | 6 +- app-text/tesseract/tesseract-5.0.0.ebuild | 92 +++++++++++++++++++++ .../tesseract/tesseract-5.0.0_beta20210815.ebuild | 95 ---------------------- app-text/tesseract/tesseract-9999.ebuild | 7 +- 4 files changed, 99 insertions(+), 101 deletions(-) create mode 100644 app-text/tesseract/tesseract-5.0.0.ebuild delete mode 100644 app-text/tesseract/tesseract-5.0.0_beta20210815.ebuild (limited to 'app-text/tesseract') diff --git a/app-text/tesseract/Manifest b/app-text/tesseract/Manifest index 78ce38860ff2..fa3463358332 100644 --- a/app-text/tesseract/Manifest +++ b/app-text/tesseract/Manifest @@ -1,6 +1,6 @@ DIST tesseract-4.1.1.tar.gz 1974988 BLAKE2B f729beb017ec81704b84f5e6539706ff0cd6a51a4d1b7b730c394af58ce2ea2a659203bf239417e8d500cfbde845a73d6e6e181ca946257c2f22525820899602 SHA512 017723a2268be789fe98978eed02fd294968cc8050dde376dee026f56f2b99df42db935049ae5e72c4519a920e263b40af1a6a40d9942e66608145b3131a71a2 -DIST tesseract-5.0.0_beta20210815.tar.gz 1914265 BLAKE2B eadefb46a84fcc73d3da7a1780d1e0669840183266176021871e57ca55c79e9b56a78334414732b9024ae911cee522069c3170bf71af877c46c1ffae37c88b3f SHA512 4b78af9119c35d783e47523b41ee8bbf63913f8c122e94b6e6538a4cbab8e751df9f00f3a50d48e8a7beb948c6b23794e2481721696bf3e0f284de8aa6e9e8e7 +DIST tesseract-5.0.0.tar.gz 1919742 BLAKE2B 39897f8778017627ce70227c6c162d6b53b504a95c92d9c13e1a27f8b71ec9828bfba8497535cd1684330a110001380433ad6120c0d2a61d86a01bbf1f1db015 SHA512 80e0d6e9076eb8d6b0d99942586acbb43aaec7bee7f7b13a500470aa11bf03f1c128434d764abd67839355e3fb80d41d0bcf10400b33e57fa0ae4659adb42af9 EBUILD tesseract-4.1.1.ebuild 2060 BLAKE2B 666503a1ac91f31b3ccc17263d15892f9ee8c9887e021f019e62abb635e7069b8394d2548c66b3d5c60c1b1903569a40bb1b1c81a252c39a86cc02b6acc803cb SHA512 c0f22b7a07c8371cc81744eae7b90359f02d8399c6362ef71bf7e7bd67ebe88b2e18777f122fbfbea721871a342c92456a5363a1eaf642134f2faee5554a980c -EBUILD tesseract-5.0.0_beta20210815.ebuild 2162 BLAKE2B 8156c2a37451e795214650f4530fefbcddc6d01b2ef689e2f4583d4b4bddeacfc3e4305d83c6bae3c39501f804746ae0bc0eb0b025af7bcc40162da76383630e SHA512 4025bbff27c73c245004531db4446a2c83f25d430bd0feb86e5f58909cd2984580d23e49c4fd89bed43d10f68fe448cc2f5fe4bb9db7142c2e2f167574f239db -EBUILD tesseract-9999.ebuild 1985 BLAKE2B 61ca3f12ce35a89999de392f8f96a3a55571c7b37a10d59d28fbd8a14f97ba3eea2c96ea17337ace2a6ff768f3bed96efbf45ca0b3bd5cca79ebb0edf15d8a7b SHA512 4e84e0f3a68232333182b1195ef8b443ba95575bd5912acbbe306788d2174ead368becd43fb1d7daa20b7d73e136309143572322b85860adf05826c5289e5023 +EBUILD tesseract-5.0.0.ebuild 2100 BLAKE2B 04c14590bf3a3521aea591732db1dd04ec2459a404b0478dea5030870f7050e936b7eff6b4cdb0f4cfc0553cc9123afef8c8afd91dc4b5c9fe09e6d84ddbc0ec SHA512 5c9b281b4eee41fbcc0cf97c86c68c7091f225fa9cf07f6b839d512d6165fae153b44ca9bd8e82ae2101d4708bf396c8970729dab0b1651d9c9cab13427573ae +EBUILD tesseract-9999.ebuild 2017 BLAKE2B 43d83acb3cf9691916e30d10ce902b1c7e2d87c21699db48fce5ce88e70c3d3d5671982bd14137dae535ee33adcd6c7c769f61b7184fabf80b6bd95fd8b8100b SHA512 c76b1907746ba00595bd82cc80ed5145ddf58f76ed73ff6d16383cd550fec62c32e9e4d2bb0cd944bb94c3644f96b562d5001753d422ac07b4f5bb92d24c62ae MISC metadata.xml 1020 BLAKE2B 77f6c8f3962e00b65495fff0176e7765a9583de651db12b0e532ad5ff4b8005ede93d42d58093ae3b397c40d085963f47ef0e41cfed609b581c1a2f8231ccc72 SHA512 d9ea277a6ad9ec5178252863d60bac1244e372ab6c4f4ce3fe4f7220492e78dec2349742699031ed727251f87173e821c64dec44fb9787c08aad216cad64fa05 diff --git a/app-text/tesseract/tesseract-5.0.0.ebuild b/app-text/tesseract/tesseract-5.0.0.ebuild new file mode 100644 index 000000000000..2f9c1be1d631 --- /dev/null +++ b/app-text/tesseract/tesseract-5.0.0.ebuild @@ -0,0 +1,92 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools multilib-minimal toolchain-funcs + +DESCRIPTION="An OCR Engine, originally developed at HP, now open source." +HOMEPAGE="https://github.com/tesseract-ocr" +SRC_URI="https://github.com/tesseract-ocr/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0/5" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86" +IUSE="doc float32 jpeg opencl openmp png static-libs tiff training webp" + +COMMON_DEPEND=">=media-libs/leptonica-1.74:=[${MULTILIB_USEDEP},zlib,tiff?,jpeg?,png?,webp?] + opencl? ( + virtual/opencl[${MULTILIB_USEDEP}] + media-libs/tiff:0=[${MULTILIB_USEDEP}] + media-libs/leptonica:=[tiff] + ) + training? ( + dev-libs/icu:= + x11-libs/pango:= + x11-libs/cairo:= + )" +RDEPEND="${COMMON_DEPEND} + || ( + >=app-text/tessdata_fast-4.0.0 + >=app-text/tessdata_best-4.0.0 + >=app-text/tessdata_legacy-4.0.0 + )" +DEPEND="${COMMON_DEPEND} + app-text/asciidoc + app-text/docbook-xsl-stylesheets + dev-libs/libxslt + doc? ( app-doc/doxygen )" + +pkg_pretend() { + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp +} + +pkg_setup() { + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp +} + +src_prepare() { + default + eautoreconf +} + +multilib_src_configure() { + # scrollview disabled for now, see bug #686944 + local myeconfargs=( + --enable-shared + --disable-graphics + $(use_enable float32) + $(use_enable opencl) + $(use_enable openmp) + $(use_enable static-libs static) + ) + + ECONF_SOURCE="${S}" econf "${myeconfargs[@]}" +} + +multilib_src_compile() { + default + if multilib_is_native_abi; then + use doc && emake doc + use training && emake training + fi +} + +multilib_src_install() { + if multilib_is_native_abi; then + DOCS=( "${S}"/AUTHORS "${S}"/ChangeLog "${S}"/README.md ) + if use doc; then + HTML_DOCS=( doc/html/. ) + fi + einstalldocs + + if use training; then + emake DESTDIR="${D}" training-install + fi + fi + emake DESTDIR="${D}" install +} + +multilib_src_install_all() { + find "${D}" -name '*.la' -type f -delete || die +} diff --git a/app-text/tesseract/tesseract-5.0.0_beta20210815.ebuild b/app-text/tesseract/tesseract-5.0.0_beta20210815.ebuild deleted file mode 100644 index 0cd624612031..000000000000 --- a/app-text/tesseract/tesseract-5.0.0_beta20210815.ebuild +++ /dev/null @@ -1,95 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit autotools multilib-minimal toolchain-funcs - -DESCRIPTION="An OCR Engine, originally developed at HP, now open source." -HOMEPAGE="https://github.com/tesseract-ocr" -BETA_PV=$(ver_rs 3-4 "-") -SRC_URI="https://github.com/tesseract-ocr/${PN}/archive/${BETA_PV}.tar.gz -> ${P}.tar.gz" - -LICENSE="Apache-2.0" -SLOT="0/5" -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86" -IUSE="doc float32 jpeg opencl openmp png static-libs tiff training webp" - -COMMON_DEPEND=">=media-libs/leptonica-1.74:=[${MULTILIB_USEDEP},zlib,tiff?,jpeg?,png?,webp?] - opencl? ( - virtual/opencl[${MULTILIB_USEDEP}] - media-libs/tiff:0=[${MULTILIB_USEDEP}] - media-libs/leptonica:=[tiff] - ) - training? ( - dev-libs/icu:= - x11-libs/pango:= - x11-libs/cairo:= - )" -RDEPEND="${COMMON_DEPEND} - || ( - >=app-text/tessdata_fast-4.0.0 - >=app-text/tessdata_best-4.0.0 - >=app-text/tessdata_legacy-4.0.0 - )" -DEPEND="${COMMON_DEPEND} - app-text/asciidoc - app-text/docbook-xsl-stylesheets - dev-libs/libxslt - doc? ( app-doc/doxygen )" - -S=${WORKDIR}/${PN}-${BETA_PV} - -pkg_pretend() { - [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp -} - -pkg_setup() { - [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp -} - -src_prepare() { - default - eautoreconf -} - -multilib_src_configure() { - # scrollview disabled for now, see bug #686944 - local myeconfargs=( - --enable-shared - --disable-graphics - $(use_enable float32) - $(use_enable opencl) - $(use_enable openmp) - $(use_enable static-libs static) - ) - - ECONF_SOURCE="${S}" econf "${myeconfargs[@]}" -} - -multilib_src_compile() { - default - if multilib_is_native_abi; then - use doc && emake doc - use training && emake training - fi -} - -multilib_src_install() { - if multilib_is_native_abi; then - DOCS=( "${S}"/AUTHORS "${S}"/ChangeLog "${S}"/README.md ) - if use doc; then - HTML_DOCS=( doc/html/. ) - fi - einstalldocs - - if use training; then - emake DESTDIR="${D}" training-install - fi - fi - emake DESTDIR="${D}" install -} - -multilib_src_install_all() { - find "${D}" -name '*.la' -type f -delete || die -} diff --git a/app-text/tesseract/tesseract-9999.ebuild b/app-text/tesseract/tesseract-9999.ebuild index 3e7941c6798e..5523890d242b 100644 --- a/app-text/tesseract/tesseract-9999.ebuild +++ b/app-text/tesseract/tesseract-9999.ebuild @@ -1,7 +1,7 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=7 +EAPI=8 inherit autotools git-r3 multilib-minimal toolchain-funcs @@ -12,7 +12,7 @@ EGIT_REPO_URI="https://github.com/tesseract-ocr/${PN}.git" LICENSE="Apache-2.0" SLOT="0" KEYWORDS="" -IUSE="doc jpeg opencl openmp png static-libs tiff training webp" +IUSE="doc float32 jpeg opencl openmp png static-libs tiff training webp" COMMON_DEPEND=">=media-libs/leptonica-1.74:=[${MULTILIB_USEDEP},zlib,tiff?,jpeg?,png?,webp?] opencl? ( @@ -55,6 +55,7 @@ multilib_src_configure() { local myeconfargs=( --enable-shared --disable-graphics + $(use_enable float32) $(use_enable opencl) $(use_enable openmp) $(use_enable static-libs static) -- cgit v1.2.3