diff options
Diffstat (limited to 'app-text/getxbook/getxbook-1.2.ebuild')
-rw-r--r-- | app-text/getxbook/getxbook-1.2.ebuild | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/app-text/getxbook/getxbook-1.2.ebuild b/app-text/getxbook/getxbook-1.2.ebuild new file mode 100644 index 000000000000..b1acfc5e944d --- /dev/null +++ b/app-text/getxbook/getxbook-1.2.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit eutils toolchain-funcs + +DESCRIPTION="Download books from google, amazon, barnes and noble" +HOMEPAGE="http://njw.me.uk/software/getxbook/" +SRC_URI="http://njw.me.uk/software/getxbook/${P}.tar.xz" + +LICENSE="ISC" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="pdf djvu ocr tk" + +DEPEND="" +RDEPEND=" + djvu? ( app-text/djvu ) + pdf? ( media-gfx/imagemagick ) + ocr? ( + app-text/tesseract + pdf? ( media-gfx/exact-image app-text/pdftk ) + ) + tk? ( dev-lang/tk:0= )" + +src_prepare() { + default + eapply "${FILESDIR}"/${P}.patch + tc-export CC AR +} + +src_install() { + DOCS=( README LEGAL ) + default + + use pdf && dobin extras/mkpdf.sh + use djvu && dobin extras/mkdjvu.sh + + if use ocr; then + dobin extras/mkocrtxt.sh + use pdf && dobin extras/mkocrpdf.sh + use djvu && dobin extras/mkocrdjvu.sh + fi + use tk && dobin getxbookgui.tcl +} |