summaryrefslogtreecommitdiff
path: root/app-text/getxbook
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
commit8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch)
tree7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /app-text/getxbook
parent30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff)
gentoo resync : 14.07.2018
Diffstat (limited to 'app-text/getxbook')
-rw-r--r--app-text/getxbook/Manifest7
-rw-r--r--app-text/getxbook/files/getxbook-1.0.patch42
-rw-r--r--app-text/getxbook/files/getxbook-1.2.patch35
-rw-r--r--app-text/getxbook/getxbook-1.0-r1.ebuild45
-rw-r--r--app-text/getxbook/getxbook-1.2.ebuild46
-rw-r--r--app-text/getxbook/metadata.xml18
6 files changed, 193 insertions, 0 deletions
diff --git a/app-text/getxbook/Manifest b/app-text/getxbook/Manifest
new file mode 100644
index 000000000000..2fff325e4660
--- /dev/null
+++ b/app-text/getxbook/Manifest
@@ -0,0 +1,7 @@
+AUX getxbook-1.0.patch 863 BLAKE2B 1ffbd7f11a195620ebda24e9da1aa4ea183efb0438797f0cbacce87dbbae2691f2fc0f8c61e965e86f4ed3066f2aa58c7dfef2d4828747839e773b6d8e51ecdd SHA512 3b953cafff23f01918eb910d06cc6bc81d8420fbbe18cfa3cab59458977c7a843ac62ef8789ce0883c225200593f657efce593afcd5bc9a8d87a8f30784ed0cc
+AUX getxbook-1.2.patch 853 BLAKE2B 03778bceed27f4582ffdf3fb2ac9de1fd2f6101d78e697126d86a829e5a13bf97f9ad2948feb274c10dd05ce611d7142bd9f624da19020ce891073402cbbf0d8 SHA512 04699a133cfba3d2a7d0f4eb9cb420abb93eec9b890f23130c23ea7b9e07b7a0da1b69f34aff0482acc79fe07c8abeb7de9de1163ae04d9c581d7a3f5af084a0
+DIST getxbook-1.0.tar.bz2 22314 BLAKE2B cc3b652d4c580c8a5f41a0fc58c2d7cfc9e783fe2c159fb871c0a89d8246f65f9601265e8a7b51c593ef27a726b07faa84a9d2333f2d448b1661d1dad2e48e0f SHA512 df912e67ddd823e4b1ce1539522ef0804f74758aa27baa0c568790859fac97d40dbc8f574be936fdf3ba8a1135bcc3d9af1bedf0205353d7a12f8993393fe941
+DIST getxbook-1.2.tar.xz 23776 BLAKE2B 327a35a73a5e29eefcf3f87cd8ba1237da5d045e3ef009d3ae708797fa78e6d844baa4cba2e8ff021d71951ca100e087d69a98dac3ddce953afa549b63e7e1f8 SHA512 fec397d4fd979421658f7ef9535f3c25369c8bd4ea2f9adcd719f760fd01265ed789f9eca34374b245c24acd485b951c91fa92a36d5b6401a0e0bf4db746788d
+EBUILD getxbook-1.0-r1.ebuild 935 BLAKE2B e9f6642fcda1362867dd44202c58eb0ee812bc9567d1fb97057bf8805d19e56c70e751150569b0c9cfeae0983671041c88eb9e76a137ca0d262155a947f77541 SHA512 bc0d6f4a98efbd087552ede80bef2c81645e559f2d18df1b606cf7de6379a6cf36acb7ff04ad708fdb4d01b54e65dbdf9198684289179f79a19ecbeb1c8d6bdb
+EBUILD getxbook-1.2.ebuild 936 BLAKE2B a4f057509fb8195718b53aa5491a57279eb5feeed587a3b896e7608b06db5c28ff2d15fc8f26841fd7675b211fb468741391545a8447c821a09cd04dcbd80e05 SHA512 33818a0e2e930c48d1a330691d60cabb3552b5a97d2ef692e0d1a39bf463a454e90703e0675ce7ca0e75ac59a171155425b07be3fe0b9a2cf867a62912fcb1d1
+MISC metadata.xml 635 BLAKE2B 73ed8df477413c663fd0821b3aa61301dcfeef8b3ccded5465d4903782572cde1ccef3da28f5804be740ae230a836139359f9c80cb97b70fca383a5bac8fe9a5 SHA512 297c1e817da165662e84bda74934d4493edf3cca336d48ac6e1cd7bf5bb599d9967e0fe38f0fffbafc526185b0bdbcd6244cf7c5b61fb303791e64dcfd80e504
diff --git a/app-text/getxbook/files/getxbook-1.0.patch b/app-text/getxbook/files/getxbook-1.0.patch
new file mode 100644
index 000000000000..50da6328bf8a
--- /dev/null
+++ b/app-text/getxbook/files/getxbook-1.0.patch
@@ -0,0 +1,42 @@
+ Makefile | 17 ++++++++++++-----
+ 1 file changed, 12 insertions(+), 5 deletions(-)
+
+diff --git a/Makefile b/Makefile
+index f6507b5..d080f2b 100644
+--- a/Makefile
++++ b/Makefile
+@@ -1,5 +1,12 @@
+ # See COPYING file for copyright and license details.
+-include config.mk
++VERSION = 1.0
++RELDATE = 2012-08-19
++PREFIX = /usr
++MANPREFIX = $(PREFIX)/share/man
++CFLAGS += -std=c99 -pedantic -Wall -Wextra \
++ -D_POSIX_C_SOURCE=200112L -DVERSION=\"$(VERSION)\"
++CC ?= cc
++LD = $(CC)
+
+ NAME = getxbook
+
+@@ -20,16 +27,16 @@ $(BIN): util.a
+
+ .o:
+ @echo LD $@
+- @$(LD) -o $@ $< util.a $(LDFLAGS)
++ $(LD) $(LDFLAGS) -o $@ $< util.a
+
+ .c.o:
+ @echo CC $<
+- @$(CC) -c $(CFLAGS) $<
++ $(CC) -c $(CFLAGS) $<
+
+ util.a: $(LIB)
+ @echo AR $@
+- @$(AR) -r -c $@ $(LIB)
+- @ranlib $@
++ $(AR) -r -c $@ $(LIB)
++ $(RANLIB) $@
+
+ install: all
+ mkdir -p $(DESTDIR)$(PREFIX)/bin
diff --git a/app-text/getxbook/files/getxbook-1.2.patch b/app-text/getxbook/files/getxbook-1.2.patch
new file mode 100644
index 000000000000..da0ac83264e1
--- /dev/null
+++ b/app-text/getxbook/files/getxbook-1.2.patch
@@ -0,0 +1,35 @@
+diff -r -U2 getxbook-1.2.orig/Makefile getxbook-1.2/Makefile
+--- getxbook-1.2.orig/Makefile 2015-07-28 21:52:40.000000000 +0600
++++ getxbook-1.2/Makefile 2017-12-16 11:27:18.554822718 +0700
+@@ -1,4 +1,13 @@
+ # See COPYING file for copyright and license details.
+-include config.mk
++VERSION = 1.2
++RELDATE = 2015-07-28
++PREFIX = /usr
++MANPREFIX = $(PREFIX)/share/man
++CFLAGS += -std=c99 -pedantic -Wall -Wextra -Werror -g -D_POSIX_C_SOURCE=200112L \
++ -DVERSION=\"$(VERSION)\"
++CC ?= cc
++LD = $(CC)
++LIBS = -lssl -lcrypto
++LDFLAGS += $(LIBS)
+
+ NAME = getxbook
+@@ -21,13 +30,13 @@
+ .o:
+ @echo LD $@
+- @$(LD) -o $@ $< util.a $(LDFLAGS)
++ $(LD) -o $@ $< util.a $(LDFLAGS)
+
+ .c.o:
+ @echo CC $<
+- @$(CC) -c $(CFLAGS) $<
++ $(CC) -c $(CFLAGS) $<
+
+ util.a: $(LIB)
+ @echo AR $@
+- @$(AR) -r -s -c $@ $(LIB)
++ $(AR) -r -s -c $@ $(LIB)
+
+ install: all
diff --git a/app-text/getxbook/getxbook-1.0-r1.ebuild b/app-text/getxbook/getxbook-1.0-r1.ebuild
new file mode 100644
index 000000000000..575f7242613f
--- /dev/null
+++ b/app-text/getxbook/getxbook-1.0-r1.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+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="~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() {
+ epatch "${FILESDIR}"/${P}.patch
+ tc-export CC AR RANLIB
+}
+
+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
+}
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
+}
diff --git a/app-text/getxbook/metadata.xml b/app-text/getxbook/metadata.xml
new file mode 100644
index 000000000000..3b5c78cf814d
--- /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 type="person">
+ <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>