From b62381b18b4bf2e919cbfbae11ebcad391e38e77 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Fri, 16 Dec 2022 03:35:12 +0000 Subject: gentoo auto-resync : 16:12:2022 - 03:35:12 --- app-text/tesseract/Manifest | 10 +-- app-text/tesseract/tesseract-4.1.1-r1.ebuild | 91 +++++++++++++++++++++++++++ app-text/tesseract/tesseract-4.1.1.ebuild | 91 --------------------------- app-text/tesseract/tesseract-5.0.1-r1.ebuild | 92 ++++++++++++++++++++++++++++ app-text/tesseract/tesseract-5.0.1.ebuild | 92 ---------------------------- app-text/tesseract/tesseract-5.1.0-r1.ebuild | 92 ++++++++++++++++++++++++++++ app-text/tesseract/tesseract-5.1.0.ebuild | 92 ---------------------------- app-text/tesseract/tesseract-5.2.0-r1.ebuild | 92 ++++++++++++++++++++++++++++ app-text/tesseract/tesseract-5.2.0.ebuild | 92 ---------------------------- app-text/tesseract/tesseract-9999-r1.ebuild | 92 ++++++++++++++++++++++++++++ app-text/tesseract/tesseract-9999.ebuild | 92 ---------------------------- 11 files changed, 464 insertions(+), 464 deletions(-) create mode 100644 app-text/tesseract/tesseract-4.1.1-r1.ebuild delete mode 100644 app-text/tesseract/tesseract-4.1.1.ebuild create mode 100644 app-text/tesseract/tesseract-5.0.1-r1.ebuild delete mode 100644 app-text/tesseract/tesseract-5.0.1.ebuild create mode 100644 app-text/tesseract/tesseract-5.1.0-r1.ebuild delete mode 100644 app-text/tesseract/tesseract-5.1.0.ebuild create mode 100644 app-text/tesseract/tesseract-5.2.0-r1.ebuild delete mode 100644 app-text/tesseract/tesseract-5.2.0.ebuild create mode 100644 app-text/tesseract/tesseract-9999-r1.ebuild delete mode 100644 app-text/tesseract/tesseract-9999.ebuild (limited to 'app-text/tesseract') diff --git a/app-text/tesseract/Manifest b/app-text/tesseract/Manifest index ecd15b2cdb0b..958b86b2bf77 100644 --- a/app-text/tesseract/Manifest +++ b/app-text/tesseract/Manifest @@ -2,9 +2,9 @@ DIST tesseract-4.1.1.tar.gz 1974988 BLAKE2B f729beb017ec81704b84f5e6539706ff0cd6 DIST tesseract-5.0.1.tar.gz 1913596 BLAKE2B 94098704c0a177eb1afc365036f9ff8d7648f80398f20a410e11b7884e1411432c2938e3ab176930630500793ef2e3f33b82f214461ef6677d289c56919f8d55 SHA512 0a4824f71eb76ab022f3b9258d12b9a059adcf2f37fac6442ae1096d0efc80404ba1bfd9c90e8263178c1af606c2aad2b277ceb93efc3b9e93c125f931ff08c1 DIST tesseract-5.1.0.tar.gz 1910376 BLAKE2B e1c1c5c563e30689d66fb09ab73fdce853a469dfcf3c759571f6e6e1da71809a8fd1fb74c0be38588e97bbdac230c2ce10a35fd66faa6a4370d78efe112d3243 SHA512 d874fc995182c2c7ce210ebd79ad36414fa73afc53063505bc0b0aa0f090dc48db09c650c86a727778584f34a421b7d64c129cefe282ea112560cd7ca24e7f59 DIST tesseract-5.2.0.tar.gz 1913462 BLAKE2B 6b80e5bb71543cf971683f66b87fd45a971a6f337ca53567d134c3bdc227f1338a3340f5bb5c2f183288135acd6521031b0f6de6e96e333fed4dc10e93b7319e SHA512 23ed931495e4ea793904f99a06a95a47873b923c4e5d8f3fc8f9203cac86b0e0013c416ab4d8d4a863a081eea00a196a0198c6fb17a39917a1baea2280d84794 -EBUILD tesseract-4.1.1.ebuild 2059 BLAKE2B e571ac11d2d9b42c0aa97ce6b61ae21c553fec237c420b62bfa43c01b12b156766ba1afcb5c54e08b222823683815a5b82de19a302f52043c7b4c2d4f0da50e3 SHA512 3f8b8168ec4139e78387540b2593e210145a58d60a31aefa58ddd3132adeabc87f810c343498a90b644748cbc57028b7b0b983691dd5c139183ba0f4de30ea43 -EBUILD tesseract-5.0.1.ebuild 2099 BLAKE2B 0dd97154e37643e9b9bd155ac24e67d137a8316b204dcbe3d36d99482054bcd3e350b0624b5a2d91fe6f07df13186193113a8cbd231254c84247ef772bbd2647 SHA512 3c6e7d6d908898f78fa362bbd3760c202cd8337b40d239efa90aa2a8388d0aa9e9152033e3e91a457f2177c31393bf2e8c5dda9a25001acca906178a3de43814 -EBUILD tesseract-5.1.0.ebuild 2099 BLAKE2B 0dd97154e37643e9b9bd155ac24e67d137a8316b204dcbe3d36d99482054bcd3e350b0624b5a2d91fe6f07df13186193113a8cbd231254c84247ef772bbd2647 SHA512 3c6e7d6d908898f78fa362bbd3760c202cd8337b40d239efa90aa2a8388d0aa9e9152033e3e91a457f2177c31393bf2e8c5dda9a25001acca906178a3de43814 -EBUILD tesseract-5.2.0.ebuild 2099 BLAKE2B 0dd97154e37643e9b9bd155ac24e67d137a8316b204dcbe3d36d99482054bcd3e350b0624b5a2d91fe6f07df13186193113a8cbd231254c84247ef772bbd2647 SHA512 3c6e7d6d908898f78fa362bbd3760c202cd8337b40d239efa90aa2a8388d0aa9e9152033e3e91a457f2177c31393bf2e8c5dda9a25001acca906178a3de43814 -EBUILD tesseract-9999.ebuild 2016 BLAKE2B 25fbf431abce082969e2a1c2f83ca0382617cf34796295737372dbee9f0d5c7123252dd007f82068e907462447c175d1824feb1670c4ac610e00d5c3487abf8a SHA512 286eb30f1c6f36dbf0f18b97a9dd7d8f1416c8362fe1a8df60593392a0289eee5bc96c57cca91505e0ca5cfa5bc853869a0b1322307683f82dcec2edf3b63a2c +EBUILD tesseract-4.1.1-r1.ebuild 2058 BLAKE2B c6dc012b5c08976caf609ef582abbf448b1600ad2662ed2e9a8b392b9023ca60cc0e38a4865a2eb0e2865720432fea77797d285ad8d7456db655853ab75cbdca SHA512 aa34edc5c33973df0933752b182a70c76e037b2a9540c1a7bbccda9201ea775f245e25f38ef2b8c976649e4fcf6bbec8c31b3b0958c09eb86fc2d3b3550b86e9 +EBUILD tesseract-5.0.1-r1.ebuild 2098 BLAKE2B c5af7218c00662fca7f198e564e54d5c6afd6816e1bb26ffb49c29c90247db484130ddff9d19e3fef817fc8c70a0b698b4ef0719ba391efd48b615f329a2aab4 SHA512 608fb9c3af3c41ff6c6ea3a99e91b126b755ca85964f77602f0f7cb11ecd4bcd22a11c927bb331c068087caddab7338d1d6931963fc76be0db15907e3b4c5a51 +EBUILD tesseract-5.1.0-r1.ebuild 2098 BLAKE2B c5af7218c00662fca7f198e564e54d5c6afd6816e1bb26ffb49c29c90247db484130ddff9d19e3fef817fc8c70a0b698b4ef0719ba391efd48b615f329a2aab4 SHA512 608fb9c3af3c41ff6c6ea3a99e91b126b755ca85964f77602f0f7cb11ecd4bcd22a11c927bb331c068087caddab7338d1d6931963fc76be0db15907e3b4c5a51 +EBUILD tesseract-5.2.0-r1.ebuild 2098 BLAKE2B c5af7218c00662fca7f198e564e54d5c6afd6816e1bb26ffb49c29c90247db484130ddff9d19e3fef817fc8c70a0b698b4ef0719ba391efd48b615f329a2aab4 SHA512 608fb9c3af3c41ff6c6ea3a99e91b126b755ca85964f77602f0f7cb11ecd4bcd22a11c927bb331c068087caddab7338d1d6931963fc76be0db15907e3b4c5a51 +EBUILD tesseract-9999-r1.ebuild 2015 BLAKE2B 66bf7e18c2028ea2e219119394a5d0d22d2080533c25f108074b47958acbcbce43824f7d7e718a558d9ded2b12a35b348872d0c161620c315b25c8c1266ddbcf SHA512 9711dbbfe399b7d80343778461632fe9ba1907475ba78ef7df6142b2e308f46b332f7c8f32c31ff8f58c65509851929a4bf4e5547c8564af87109cf6b16ed6bc MISC metadata.xml 1020 BLAKE2B 77f6c8f3962e00b65495fff0176e7765a9583de651db12b0e532ad5ff4b8005ede93d42d58093ae3b397c40d085963f47ef0e41cfed609b581c1a2f8231ccc72 SHA512 d9ea277a6ad9ec5178252863d60bac1244e372ab6c4f4ce3fe4f7220492e78dec2349742699031ed727251f87173e821c64dec44fb9787c08aad216cad64fa05 diff --git a/app-text/tesseract/tesseract-4.1.1-r1.ebuild b/app-text/tesseract/tesseract-4.1.1-r1.ebuild new file mode 100644 index 000000000000..da21cdb9b7cb --- /dev/null +++ b/app-text/tesseract/tesseract-4.1.1-r1.ebuild @@ -0,0 +1,91 @@ +# Copyright 1999-2022 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" +SRC_URI="https://github.com/tesseract-ocr/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~alpha amd64 arm arm64 ~mips ppc ppc64 ~riscv ~sparc x86" +IUSE="doc 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:=[${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 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-4.1.1.ebuild b/app-text/tesseract/tesseract-4.1.1.ebuild deleted file mode 100644 index 4a7bff8a180e..000000000000 --- a/app-text/tesseract/tesseract-4.1.1.ebuild +++ /dev/null @@ -1,91 +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" -SRC_URI="https://github.com/tesseract-ocr/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" - -LICENSE="Apache-2.0" -SLOT="0" -KEYWORDS="~alpha amd64 arm arm64 ~mips ppc ppc64 ~riscv ~sparc x86" -IUSE="doc 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 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.1-r1.ebuild b/app-text/tesseract/tesseract-5.0.1-r1.ebuild new file mode 100644 index 000000000000..0a4c4d47b1ba --- /dev/null +++ b/app-text/tesseract/tesseract-5.0.1-r1.ebuild @@ -0,0 +1,92 @@ +# Copyright 1999-2022 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:=[${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.1.ebuild b/app-text/tesseract/tesseract-5.0.1.ebuild deleted file mode 100644 index 302638df9e4d..000000000000 --- a/app-text/tesseract/tesseract-5.0.1.ebuild +++ /dev/null @@ -1,92 +0,0 @@ -# Copyright 1999-2022 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.1.0-r1.ebuild b/app-text/tesseract/tesseract-5.1.0-r1.ebuild new file mode 100644 index 000000000000..0a4c4d47b1ba --- /dev/null +++ b/app-text/tesseract/tesseract-5.1.0-r1.ebuild @@ -0,0 +1,92 @@ +# Copyright 1999-2022 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:=[${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.1.0.ebuild b/app-text/tesseract/tesseract-5.1.0.ebuild deleted file mode 100644 index 302638df9e4d..000000000000 --- a/app-text/tesseract/tesseract-5.1.0.ebuild +++ /dev/null @@ -1,92 +0,0 @@ -# Copyright 1999-2022 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.2.0-r1.ebuild b/app-text/tesseract/tesseract-5.2.0-r1.ebuild new file mode 100644 index 000000000000..0a4c4d47b1ba --- /dev/null +++ b/app-text/tesseract/tesseract-5.2.0-r1.ebuild @@ -0,0 +1,92 @@ +# Copyright 1999-2022 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:=[${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.2.0.ebuild b/app-text/tesseract/tesseract-5.2.0.ebuild deleted file mode 100644 index 302638df9e4d..000000000000 --- a/app-text/tesseract/tesseract-5.2.0.ebuild +++ /dev/null @@ -1,92 +0,0 @@ -# Copyright 1999-2022 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-9999-r1.ebuild b/app-text/tesseract/tesseract-9999-r1.ebuild new file mode 100644 index 000000000000..c5874d14572d --- /dev/null +++ b/app-text/tesseract/tesseract-9999-r1.ebuild @@ -0,0 +1,92 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools git-r3 multilib-minimal toolchain-funcs + +DESCRIPTION="An OCR Engine, originally developed at HP, now open source" +HOMEPAGE="https://github.com/tesseract-ocr" +EGIT_REPO_URI="https://github.com/tesseract-ocr/${PN}.git" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="" +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:=[${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-9999.ebuild b/app-text/tesseract/tesseract-9999.ebuild deleted file mode 100644 index 3a7c6ac54ed6..000000000000 --- a/app-text/tesseract/tesseract-9999.ebuild +++ /dev/null @@ -1,92 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit autotools git-r3 multilib-minimal toolchain-funcs - -DESCRIPTION="An OCR Engine, originally developed at HP, now open source" -HOMEPAGE="https://github.com/tesseract-ocr" -EGIT_REPO_URI="https://github.com/tesseract-ocr/${PN}.git" - -LICENSE="Apache-2.0" -SLOT="0" -KEYWORDS="" -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 -} -- cgit v1.2.3