summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <ssuominen@gentoo.org>2014-02-27 21:14:33 +0000
committerSamuli Suominen <ssuominen@gentoo.org>2014-02-27 21:14:33 +0000
commit5abf58e1a72480b56e9c0862e3f5b505a3713f47 (patch)
treef7eefa0180123988f357c629114a8e3f9866c097 /app-text/ocrad
parentUse the unpacker_src_uri_depends() function to pull in either pdlzip or lzip ... (diff)
downloadgentoo-2-5abf58e1a72480b56e9c0862e3f5b505a3713f47.tar.gz
gentoo-2-5abf58e1a72480b56e9c0862e3f5b505a3713f47.tar.bz2
gentoo-2-5abf58e1a72480b56e9c0862e3f5b505a3713f47.zip
Use the unpacker.eclass wrt #501912
(Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 4868F14D)
Diffstat (limited to 'app-text/ocrad')
-rw-r--r--app-text/ocrad/ChangeLog7
-rw-r--r--app-text/ocrad/ocrad-0.21.ebuild30
2 files changed, 15 insertions, 22 deletions
diff --git a/app-text/ocrad/ChangeLog b/app-text/ocrad/ChangeLog
index 0f2df62d2851..b9106417ac76 100644
--- a/app-text/ocrad/ChangeLog
+++ b/app-text/ocrad/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for app-text/ocrad
-# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-text/ocrad/ChangeLog,v 1.35 2011/04/19 13:51:35 aballier Exp $
+# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-text/ocrad/ChangeLog,v 1.36 2014/02/27 21:14:33 ssuominen Exp $
+
+ 27 Feb 2014; Samuli Suominen <ssuominen@gentoo.org> ocrad-0.21.ebuild:
+ Use the unpacker.eclass wrt #501912
*ocrad-0.21 (19 Apr 2011)
diff --git a/app-text/ocrad/ocrad-0.21.ebuild b/app-text/ocrad/ocrad-0.21.ebuild
index 3a05e9c9e61d..6095e265ccd3 100644
--- a/app-text/ocrad/ocrad-0.21.ebuild
+++ b/app-text/ocrad/ocrad-0.21.ebuild
@@ -1,8 +1,9 @@
-# Copyright 1999-2011 Gentoo Foundation
+# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-text/ocrad/ocrad-0.21.ebuild,v 1.1 2011/04/19 13:51:35 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-text/ocrad/ocrad-0.21.ebuild,v 1.2 2014/02/27 21:14:33 ssuominen Exp $
-inherit toolchain-funcs
+EAPI=5
+inherit unpacker toolchain-funcs
DESCRIPTION="GNU Ocrad is an OCR (Optical Character Recognition) program"
HOMEPAGE="http://www.gnu.org/software/ocrad/ocrad.html"
@@ -14,27 +15,16 @@ KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86"
IUSE=""
RDEPEND=""
-DEPEND="app-arch/lzip"
+DEPEND="$(unpacker_src_uri_depends)"
-src_unpack() {
- local i s
- for i in ${A}
- do
- s="${DISTDIR%/}/${i}"
- einfo "Unpacking ${s} to ${PWD}"
- test -s "${s}" || die "${s} does not exist"
- lzip -dc -- "${s}" | tar xof - || die "Unpacking ${s} failed"
- done
-}
+DOCS="AUTHORS NEWS README TODO"
-src_compile() {
+src_configure() {
econf CXX="$(tc-getCXX)" CXXFLAGS="${CXXFLAGS}" LDFLAGS="${LDFLAGS}"
- emake || die "emake failed."
}
src_install() {
- emake DESTDIR="${D}" install || die "emake install failed."
- doman doc/ocrad.1
- doinfo doc/ocrad.info
- dodoc AUTHORS NEWS README TODO
+ default
+ doman doc/${PN}.1
+ doinfo doc/${PN}.info
}