summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGilles Dartiguelongue <eva@gentoo.org>2015-09-07 02:05:06 +0200
committerGilles Dartiguelongue <eva@gentoo.org>2015-09-07 02:05:06 +0200
commit6985718be6fbc4b3dc4d8a8e1236285b8f50ca5b (patch)
treefeee994a58a6c8a07d5f9483b4c78b2bedc0cc9b /media-gfx/ocrfeeder/ocrfeeder-0.8.1.ebuild
parentdev-python/python-sane: initial ebuild (diff)
downloadeva-6985718be6fbc4b3dc4d8a8e1236285b8f50ca5b.tar.gz
eva-6985718be6fbc4b3dc4d8a8e1236285b8f50ca5b.tar.bz2
eva-6985718be6fbc4b3dc4d8a8e1236285b8f50ca5b.zip
media-gfx/ocrfeeder: initial ebuild
A far from perfect first attempt at packaging OCRFeeder. Appears to work ok with Tesseract. Probably needs some REQUIRED_USE for tiff handling.
Diffstat (limited to 'media-gfx/ocrfeeder/ocrfeeder-0.8.1.ebuild')
-rw-r--r--media-gfx/ocrfeeder/ocrfeeder-0.8.1.ebuild79
1 files changed, 79 insertions, 0 deletions
diff --git a/media-gfx/ocrfeeder/ocrfeeder-0.8.1.ebuild b/media-gfx/ocrfeeder/ocrfeeder-0.8.1.ebuild
new file mode 100644
index 0000000..8992c84
--- /dev/null
+++ b/media-gfx/ocrfeeder/ocrfeeder-0.8.1.ebuild
@@ -0,0 +1,79 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="5"
+GCONF_DEBUG="no"
+PYTHON_COMPAT=( python2_7 )
+
+inherit autotools eutils gnome2 python-r1
+
+DESCRIPTION="Document layout analysis and optical character recognition system"
+HOMEPAGE="https://wiki.gnome.org/Apps/OCRFeeder"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+COMMON_DEPEND="
+ ${PYTHON_DEPS}
+ app-text/gtkspell:3[introspection]
+ dev-libs/gobject-introspection
+ dev-python/lxml[${PYTHON_USEDEP}]
+ >=dev-python/odfpy-0.7[${PYTHON_USEDEP}]
+ dev-python/pyenchant[${PYTHON_USEDEP}]
+ dev-python/pygobject:3
+ dev-python/python-sane[${PYTHON_USEDEP}]
+ dev-python/reportlab[${PYTHON_USEDEP}]
+ virtual/python-imaging[${PYTHON_USEDEP}]
+ x11-libs/goocanvas:2.0[introspection]
+ x11-libs/gtk+:3[introspection]
+"
+RDEPEND="${COMMON_DEPEND}
+ media-gfx/sane-backends
+
+ app-text/unpaper
+ || (
+ app-text/tesseract
+ app-text/ocrad
+ app-text/gocr
+ app-text/cuneiform
+ )
+"
+DEPEND="${COMMON_DEPEND}
+ app-text/gnome-doc-utils[${PYTHON_USEDEP}]
+ >=dev-util/intltool-0.35
+"
+
+pkg_setup() {
+ python_setup
+}
+
+src_prepare() {
+ # Unbundle odfpy
+ #epatch "${FILESDIR}"/0002-Drop-bundled-odfpy-usage.patch
+ #rm -rf src/ocrfeeder/odf/ || die
+
+ #eautoreconf
+ gnome2_src_prepare
+ python_copy_sources
+}
+
+src_configure() {
+ python_foreach_impl run_in_build_dir gnome2_src_configure
+}
+
+src_compile() {
+ python_foreach_impl run_in_build_dir emake
+}
+
+src_test() {
+ python_foreach_impl run_in_build_dir emake check
+}
+
+src_install() {
+ python_foreach_impl run_in_build_dir gnome2_src_install
+ python_fix_shebang "${D}"/usr/bin
+}