diff options
author | Andrey Grozin <grozin@gentoo.org> | 2012-02-15 08:45:36 +0000 |
---|---|---|
committer | Andrey Grozin <grozin@gentoo.org> | 2012-02-15 08:45:36 +0000 |
commit | b4a34d67dc8cffda6ed7f7576caa6199d366f1a0 (patch) | |
tree | b858d6cb810afdbf562e062924c2f59ed1843c29 /app-text | |
parent | Get files from devspace (original home is inaccessible). Fix bug 379271 (diff) | |
download | historical-b4a34d67dc8cffda6ed7f7576caa6199d366f1a0.tar.gz historical-b4a34d67dc8cffda6ed7f7576caa6199d366f1a0.tar.bz2 historical-b4a34d67dc8cffda6ed7f7576caa6199d366f1a0.zip |
Initial import
Package-Manager: portage-2.2.0_alpha86/cvs/Linux i686
Diffstat (limited to 'app-text')
-rw-r--r-- | app-text/getxbook/ChangeLog | 10 | ||||
-rw-r--r-- | app-text/getxbook/Manifest | 5 | ||||
-rw-r--r-- | app-text/getxbook/files/getxbook-makefile.patch | 15 | ||||
-rw-r--r-- | app-text/getxbook/getxbook-0.8.ebuild | 44 | ||||
-rw-r--r-- | app-text/getxbook/metadata.xml | 18 |
5 files changed, 92 insertions, 0 deletions
diff --git a/app-text/getxbook/ChangeLog b/app-text/getxbook/ChangeLog new file mode 100644 index 000000000000..b2c0cc40f2e1 --- /dev/null +++ b/app-text/getxbook/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for app-text/getxbook +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-text/getxbook/ChangeLog,v 1.1 2012/02/15 08:45:36 grozin Exp $ + +*getxbook-0.8 (15 Feb 2012) + + 15 Feb 2012; Andrey Grozin <grozin@gentoo.org> +getxbook-0.8.ebuild, + +files/getxbook-makefile.patch, +metadata.xml: + Initial import + diff --git a/app-text/getxbook/Manifest b/app-text/getxbook/Manifest new file mode 100644 index 000000000000..e87d44ed2cb0 --- /dev/null +++ b/app-text/getxbook/Manifest @@ -0,0 +1,5 @@ +AUX getxbook-makefile.patch 505 RMD160 b8ec2dc180c521bb08d6d423777c397739f297a0 SHA1 71115d4cc606d1d707d060f0da539430eca05f2c SHA256 0ecc8e8a134ef39439f7249d005ed99c0eac5272459c73a51b0fc1cff2564998 +DIST getxbook-0.8.tar.bz2 12333 RMD160 50eb30a55676c88e26df6f885c40ab984e707a30 SHA1 d08d082cd6481302c102fcd7c373258737b2bd3d SHA256 eae5ca315cfbc5657d27454278b7e57d7a8ba2a88ef330bdbdf4ab0ba736e2c6 +EBUILD getxbook-0.8.ebuild 1097 RMD160 7424cb92ccd8f01be7edce26c2df73ea9da98f63 SHA1 2dc5b353317f28462173409fef35ff511e950739 SHA256 934c8ad66eee548572c66791837be9ec0fff66ca88b2da85fa150d9a2b513d0e +MISC ChangeLog 374 RMD160 b9fa8e76676b34a06267a97710e6a2503727f52e SHA1 af8a166f174c0e44e9046740f4bbdd2f4ec6c3f6 SHA256 5a151a8fa7b72e1db2063a21e352134191a01ef7f03945271f685bc38398fe2d +MISC metadata.xml 615 RMD160 1b36371f1d35e04c579c6562cda846752cf16307 SHA1 ddd6163d83594d0f829e8512f7e9572b46a29369 SHA256 4f4c2de046a2cbd1dc17fc7503046aed1a9d084f93ae3c5717877f8506befb67 diff --git a/app-text/getxbook/files/getxbook-makefile.patch b/app-text/getxbook/files/getxbook-makefile.patch new file mode 100644 index 000000000000..e63ead0358af --- /dev/null +++ b/app-text/getxbook/files/getxbook-makefile.patch @@ -0,0 +1,15 @@ +diff -r -U1 getxbook-0.8.orig/Makefile getxbook-0.8/Makefile +--- getxbook-0.8.orig/Makefile 2012-02-15 05:09:56.000000000 +0700 ++++ getxbook-0.8/Makefile 2012-02-15 15:11:55.000000000 +0700 +@@ -1,3 +1,10 @@ + # See COPYING file for copyright and license details. +-include config.mk ++VERSION = 0.8 ++RELDATE = 2012-02-14 ++PREFIX = /usr ++MANPREFIX = $(PREFIX)/share/man ++CFLAGS += -std=c99 -pedantic -Wall -Wextra -Werror \ ++ -D_POSIX_C_SOURCE=200112L -DVERSION=\"$(VERSION)\" ++CC = cc ++LD = $(CC) + diff --git a/app-text/getxbook/getxbook-0.8.ebuild b/app-text/getxbook/getxbook-0.8.ebuild new file mode 100644 index 000000000000..646b64e70376 --- /dev/null +++ b/app-text/getxbook/getxbook-0.8.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-text/getxbook/getxbook-0.8.ebuild,v 1.1 2012/02/15 08:45:36 grozin Exp $ +EAPI=4 +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.bz2" + +LICENSE="ISC" +SLOT="0" +KEYWORDS="~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 )" + +src_prepare() { + epatch "${FILESDIR}"/${PN}-makefile.patch +} + +src_compile() { + tc-export CXX + emake +} + +src_install() { + emake DESTDIR="${D}" install + dodoc README LEGAL + exeinto /usr/bin + use pdf && doexe extras/mkpdf.sh + use djvu && doexe extras/mkdjvu.sh + if use tesseract; then + doexe extras/mkocrtxt.sh + use pdf && doexe extras/mkocrpdf.sh + use djvu && doexe extras/mkocrdjvu.sh + fi + use tk && doexe getxbookgui.tcl +} diff --git a/app-text/getxbook/metadata.xml b/app-text/getxbook/metadata.xml new file mode 100644 index 000000000000..25d7048b9a78 --- /dev/null +++ b/app-text/getxbook/metadata.xml @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>grozin@gentoo.org</email> + <name>Andrey Grozin</name> + </maintainer> + <longdescription lang="en"> + A collection of tools to download books from + google books' "book preview", + amazon's "look inside the book", + barnes and noble's "book viewer", + optionally using tesseract to produce OCRed pdf or djvu. + </longdescription> +<use> + <flag name='ocr'>Use <pkg>app-text/tesseract</pkg> for optical character recognition</flag> +</use> +</pkgmetadata> |