/[gentoo-x86]/app-text/getxbook/getxbook-1.0.ebuild
Gentoo

Contents of /app-text/getxbook/getxbook-1.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Mon Aug 20 15:24:21 2012 UTC (23 months ago) by grozin
Branch: MAIN
Version bump

(Portage version: 2.2.0_alpha121/cvs/Linux i686)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-text/getxbook/getxbook-0.9.ebuild,v 1.1 2012/04/27 20:59:12 grozin Exp $
4 EAPI=4
5 inherit eutils toolchain-funcs
6
7 DESCRIPTION="Download books from google, amazon, barnes and noble."
8 HOMEPAGE="http://njw.me.uk/software/getxbook/"
9 SRC_URI="http://njw.me.uk/software/getxbook/${P}.tar.bz2"
10
11 LICENSE="ISC"
12 SLOT="0"
13 KEYWORDS="~x86"
14 IUSE="pdf djvu ocr tk"
15
16 DEPEND=""
17 RDEPEND="djvu? ( app-text/djvu )
18 pdf? ( media-gfx/imagemagick )
19 ocr? ( app-text/tesseract
20 pdf? ( media-gfx/exact-image app-text/pdftk ) )
21 tk? ( dev-lang/tk )"
22
23 src_prepare() {
24 epatch "${FILESDIR}"/${P}.patch
25 }
26
27 src_compile() {
28 tc-export CXX
29 emake
30 }
31
32 src_install() {
33 emake DESTDIR="${D}" install
34 dodoc README LEGAL
35 exeinto /usr/bin
36 use pdf && doexe extras/mkpdf.sh
37 use djvu && doexe extras/mkdjvu.sh
38 if use ocr; then
39 doexe extras/mkocrtxt.sh
40 use pdf && doexe extras/mkocrpdf.sh
41 use djvu && doexe extras/mkocrdjvu.sh
42 fi
43 use tk && doexe getxbookgui.tcl
44 }

  ViewVC Help
Powered by ViewVC 1.1.20