diff options
Diffstat (limited to 'app-text/cuneiform/cuneiform-0.7.ebuild')
-rw-r--r-- | app-text/cuneiform/cuneiform-0.7.ebuild | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/app-text/cuneiform/cuneiform-0.7.ebuild b/app-text/cuneiform/cuneiform-0.7.ebuild new file mode 100644 index 000000000..d7fd62256 --- /dev/null +++ b/app-text/cuneiform/cuneiform-0.7.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit cmake-utils versionator + +PV_MAJ=$(get_version_component_range 1-2) + +DESCRIPTION="An enterprise quality OCR engine developed in USSR/Russia in the 90's." +HOMEPAGE="https://launchpad.net/cuneiform-linux" +SRC_URI="http://launchpad.net/${PN}-linux/${PV_MAJ}/${PV_MAJ}/+download/${PN}-linux-${PV_MAJ}.tar.bz2" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +IUSE="imagemagick debug" + +RDEPEND="imagemagick? ( media-gfx/imagemagick )" +DEPEND=">=dev-util/cmake-2.6.2 + ${RDEPEND}" + +DOCS="readme.txt" + +S="${WORKDIR}/cf_linux-${PV_MAJ}.0" + +src_unpack(){ + unpack ${A} + # Fix automagic dependencies / linking + if ! use imagemagick; then + sed -e '/pkg_check_modules(MAGICK ImageMagick++)/s/^/#DONOTFIND /' \ + -i "${S}/cuneiform_src/Kern/CMakeLists.txt" \ + || die "Sed for ImageMagick automagic dependency failed." + fi +} |