summaryrefslogtreecommitdiff
path: root/app-text/pdf2djvu
diff options
context:
space:
mode:
Diffstat (limited to 'app-text/pdf2djvu')
-rw-r--r--app-text/pdf2djvu/Manifest2
-rw-r--r--app-text/pdf2djvu/metadata.xml8
-rw-r--r--app-text/pdf2djvu/pdf2djvu-0.7.19.ebuild53
-rw-r--r--app-text/pdf2djvu/pdf2djvu-0.7.21.ebuild53
4 files changed, 116 insertions, 0 deletions
diff --git a/app-text/pdf2djvu/Manifest b/app-text/pdf2djvu/Manifest
new file mode 100644
index 00000000000..c29a61944c5
--- /dev/null
+++ b/app-text/pdf2djvu/Manifest
@@ -0,0 +1,2 @@
+DIST pdf2djvu-0.7.19.tar.xz 227248 SHA256 c783cea31bf4016dbf85e242a2ebcb54fe70a41bcb046e1dd0cb502a7f5f003c SHA512 7e7ab8e92eb2f57dc678771333bb6c9f88ad460585cc8b886ae10f9c120833b3d95587f94c86ab1b152d6836d5531f64d031af33d95fc96f8219cd611cfe300f WHIRLPOOL 8434cd0ab7901176b3833ddabe7ed3eed8f5b4227afeff72b10e501009a02a6e67ad83d7ae261577945e3c97c5eb61ad36ff805891d94cfd27c517e5a916b2a7
+DIST pdf2djvu-0.7.21.tar.xz 229020 SHA256 12d480cc3ce2369e1f1b39b7f5e6fbb44351d8b07861295d34e6978f58b687b9 SHA512 920e49b23f9c1d1a8f6c0be9257dc175ef94350f6e488d88813eb2586344f373b4b173530031d9aeff24b1ad220cc68a3094d4e821cd3a1511ba01e492ed084f WHIRLPOOL 7d09ca40f330c79c0a1abf9967f9ce5d05cfaa8a5904bf69c751a4ca1cce5da2987c519cc001dd7b3fdaa0822127e3ead269ee723f78c6cc18d1c7666b8b28e5
diff --git a/app-text/pdf2djvu/metadata.xml b/app-text/pdf2djvu/metadata.xml
new file mode 100644
index 00000000000..8e976c44220
--- /dev/null
+++ b/app-text/pdf2djvu/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>printing</herd>
+ <use>
+ <flag name='graphicsmagick'>Enable <pkg>media-gfx/graphicsmagick</pkg> support</flag>
+ </use>
+</pkgmetadata>
diff --git a/app-text/pdf2djvu/pdf2djvu-0.7.19.ebuild b/app-text/pdf2djvu/pdf2djvu-0.7.19.ebuild
new file mode 100644
index 00000000000..292a05bd1d5
--- /dev/null
+++ b/app-text/pdf2djvu/pdf2djvu-0.7.19.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit python-single-r1 toolchain-funcs
+
+DESCRIPTION="A tool to create DjVu files from PDF files"
+HOMEPAGE="http://code.google.com/p/pdf2djvu/"
+SRC_URI="https://bitbucket.org/jwilk/${PN}/downloads/${P}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+graphicsmagick nls openmp test"
+
+RDEPEND="
+ >=app-text/djvu-3.5.21:=
+ >=app-text/poppler-0.16.7:=
+ dev-libs/libxml2:=
+ dev-libs/libxslt:=
+ graphicsmagick? ( media-gfx/graphicsmagick:= )
+"
+DEPEND="${RDEPEND}
+ dev-cpp/pstreams
+ virtual/pkgconfig
+ nls? ( sys-devel/gettext )
+ test? ( dev-python/nose[${PYTHON_USEDEP}] )
+"
+
+REQUIRED_USE="test? ( graphicsmagick ${PYTHON_REQUIRED_USE} )"
+
+pkg_setup() {
+ use test && python-single-r1_pkg_setup
+}
+
+src_configure() {
+ local openmp=--disable-openmp
+ use openmp && tc-has-openmp && openmp=--enable-openmp
+
+ econf \
+ ${openmp} \
+ $(use_enable nls) \
+ $(use_with graphicsmagick)
+}
+
+src_install() {
+ default
+ dodoc doc/{changelog,{cjk,credits,djvudigital}.txt}
+}
diff --git a/app-text/pdf2djvu/pdf2djvu-0.7.21.ebuild b/app-text/pdf2djvu/pdf2djvu-0.7.21.ebuild
new file mode 100644
index 00000000000..653e9bbc712
--- /dev/null
+++ b/app-text/pdf2djvu/pdf2djvu-0.7.21.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit python-single-r1 toolchain-funcs
+
+DESCRIPTION="A tool to create DjVu files from PDF files"
+HOMEPAGE="http://jwilk.net/software/pdf2djvu"
+SRC_URI="https://bitbucket.org/jwilk/${PN}/downloads/${P}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+graphicsmagick nls openmp test"
+
+RDEPEND="
+ >=app-text/djvu-3.5.21:=
+ >=app-text/poppler-0.16.7:=
+ dev-libs/libxml2:=
+ dev-libs/libxslt:=
+ graphicsmagick? ( media-gfx/graphicsmagick:= )
+"
+DEPEND="${RDEPEND}
+ dev-cpp/pstreams
+ virtual/pkgconfig
+ nls? ( sys-devel/gettext )
+ test? ( dev-python/nose[${PYTHON_USEDEP}] )
+"
+
+REQUIRED_USE="test? ( graphicsmagick ${PYTHON_REQUIRED_USE} )"
+
+pkg_setup() {
+ use test && python-single-r1_pkg_setup
+}
+
+src_configure() {
+ local openmp=--disable-openmp
+ use openmp && tc-has-openmp && openmp=--enable-openmp
+
+ econf \
+ ${openmp} \
+ $(use_enable nls) \
+ $(use_with graphicsmagick)
+}
+
+src_install() {
+ default
+ dodoc doc/{changelog,{cjk,credits,djvudigital}.txt}
+}