summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Volkov <pva@gentoo.org>2009-09-04 10:17:06 +0000
committerPeter Volkov <pva@gentoo.org>2009-09-04 10:17:06 +0000
commitc404e1f0f772f418e4e46f293fa0fb95672e9282 (patch)
tree5fc1f2539cd9bbee9f2f338d0cfb6c789730045e /app-text/cuneiform
parentMask x11-plugins/licq-osd for removal wrt #248609. (diff)
downloadgentoo-2-c404e1f0f772f418e4e46f293fa0fb95672e9282.tar.gz
gentoo-2-c404e1f0f772f418e4e46f293fa0fb95672e9282.tar.bz2
gentoo-2-c404e1f0f772f418e4e46f293fa0fb95672e9282.zip
Version bump, thank yaleks. Respect LDFLAGS.
(Portage version: 2.2_rc40/cvs/Linux i686)
Diffstat (limited to 'app-text/cuneiform')
-rw-r--r--app-text/cuneiform/ChangeLog8
-rw-r--r--app-text/cuneiform/cuneiform-0.8.0.ebuild39
-rw-r--r--app-text/cuneiform/metadata.xml2
3 files changed, 47 insertions, 2 deletions
diff --git a/app-text/cuneiform/ChangeLog b/app-text/cuneiform/ChangeLog
index 0fcb91865942..ca004b3260e5 100644
--- a/app-text/cuneiform/ChangeLog
+++ b/app-text/cuneiform/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for app-text/cuneiform
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-text/cuneiform/ChangeLog,v 1.1 2009/08/16 15:35:24 pva Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-text/cuneiform/ChangeLog,v 1.2 2009/09/04 10:17:06 pva Exp $
+
+*cuneiform-0.8.0 (04 Sep 2009)
+
+ 04 Sep 2009; Peter Volkov <pva@gentoo.org> +cuneiform-0.8.0.ebuild,
+ metadata.xml:
+ Version bump, thank yaleks. Respect LDFLAGS.
*cuneiform-0.7 (16 Aug 2009)
diff --git a/app-text/cuneiform/cuneiform-0.8.0.ebuild b/app-text/cuneiform/cuneiform-0.8.0.ebuild
new file mode 100644
index 000000000000..d002235250ac
--- /dev/null
+++ b/app-text/cuneiform/cuneiform-0.8.0.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-text/cuneiform/cuneiform-0.8.0.ebuild,v 1.1 2009/09/04 10:17:06 pva Exp $
+
+EAPI="2"
+inherit cmake-utils versionator
+
+PV_MAJ=$(get_version_component_range 1-2)
+MY_P=${PN}-linux-${PV}
+
+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/${MY_P}.tar.bz2"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+IUSE="debug +imagemagick"
+
+RDEPEND="imagemagick? ( media-gfx/imagemagick )"
+DEPEND=">=dev-util/cmake-2.6.2
+ ${RDEPEND}"
+
+DOCS="readme.txt"
+
+S=${WORKDIR}/${MY_P}
+
+src_prepare(){
+ # respect LDFLAGS
+ sed -i 's:\(set[(]CMAKE_SHARED_LINKER_FLAGS "[^"]*\):\1 $ENV{LDFLAGS}:' \
+ "${S}/cuneiform_src/CMakeLists.txt" || die "failed to sed for LDFLAGS"
+ # Fix automagic dependencies / linking
+ if ! use imagemagick; then
+ sed -i "s:find_package(ImageMagick COMPONENTS Magick++):#DONOTFIND:" \
+ "${S}/cuneiform_src/CMakeLists.txt" \
+ || die "Sed for ImageMagick automagic dependency failed."
+ fi
+}
diff --git a/app-text/cuneiform/metadata.xml b/app-text/cuneiform/metadata.xml
index 71fe32fc0064..c84295a2bcc8 100644
--- a/app-text/cuneiform/metadata.xml
+++ b/app-text/cuneiform/metadata.xml
@@ -7,7 +7,7 @@
<name>Peter Volkov</name>
</maintainer>
<maintainer>
- <email>skyaleks@ya.ru</email>
+ <email>yaleks@gentoo.ru</email>
<name>Aleksandr Yakimov</name>
</maintainer>
<longdescription lang="en">