summaryrefslogtreecommitdiff
path: root/app-text/pdf2djvu
diff options
context:
space:
mode:
Diffstat (limited to 'app-text/pdf2djvu')
-rw-r--r--app-text/pdf2djvu/Manifest7
-rw-r--r--app-text/pdf2djvu/metadata.xml11
-rw-r--r--app-text/pdf2djvu/pdf2djvu-0.9.3.ebuild55
-rw-r--r--app-text/pdf2djvu/pdf2djvu-0.9.4.ebuild61
4 files changed, 134 insertions, 0 deletions
diff --git a/app-text/pdf2djvu/Manifest b/app-text/pdf2djvu/Manifest
new file mode 100644
index 000000000000..82dfe30ec050
--- /dev/null
+++ b/app-text/pdf2djvu/Manifest
@@ -0,0 +1,7 @@
+DIST pdf2djvu-0.9.3.tar.xz 239492 SHA256 d05eb7a10e22d18b77113831ac1c6e380c4569e021c39554d5bb54effe4c7077 SHA512 388b76642c354480674b6eee4961792c4ef483313ffd25a6248d1d6302985ac5adfb558ae9241062893a419463c9626d8dac9d08297d66b68a98cebbcc4dc193 WHIRLPOOL 76f5d53c11c921968eaf9f91b4fcf7ff25bd6405b6f92638af4fd38c5931941f6c48f4ba586d0ef3a6f5f8bdcfff68b1681c6429e32c818ffe379bd3a6891bfc
+DIST pdf2djvu-0.9.4.tar.xz 250332 SHA256 c5702283fc6f39e8c0c49c2dc67b95e321dc926199bc77578d3daeef4de62fa8 SHA512 6b97d0577ee6e623d8c877393f551dd2a5e19508e5cd6dc5bb2d3ae1a2b71c2f0ffc7020d85507bc52a25da09a301dd5ddf45ab2628928477e0846707ea57322 WHIRLPOOL 007e1d2a150ca1300d67852ef6ee5e47e0ab36c253d0628438f3a199c42b889613f0aeb8d2ab661555d87bf0b913975ffa65f80fc3d9c5fad475d581d13fb2b6
+EBUILD pdf2djvu-0.9.3.ebuild 1153 SHA256 2a2330887ff966dcce9b2f5e9fa7fb6a588593752890fd1c2184a3e5e636dbd4 SHA512 5524e8d7423c0ab0052a4800bbbfde3092743fc35cc0a9479508ae91c9255b398cada18cd391a62e50ac930e6a854661a61b9794f99ade9b826fbcffdfc7ff7e WHIRLPOOL e88bb928e09afa2fb2fe85cf4a62775682bb2b7da853d2dec9ec4e086b56744e541e39d606fef73cdf05adbbc65027b21f38f7c9272a7cb48e41e5258aa90e12
+EBUILD pdf2djvu-0.9.4.ebuild 1267 SHA256 b114c8a4a594574e3df7960480d1601f5e0c8ddf69276ae9263c4d0865f5845b SHA512 558acd5d80cf329db929f3a47d054d7f083db867bc5e375e3b3e545c320d10e1512550c8f6c6ca42428670ac686f0af1d644f09ae43b54555f0ca6b0e6a1bd57 WHIRLPOOL f6f09b855760e0fefd6f02a0c70b8851f3028d4f39fd1837390977584b1cf57f0e241d8ceb96b51835102200c1a94d6078a325ed08507b5b41b266cbf2459272
+MISC ChangeLog 4363 SHA256 09098e70e75919e46c2827b1acfb740205d94582cd45b2a031f25ffba6f2b5b3 SHA512 921090069750950c51a4ac5a747909053c4108c0b01b0a2120380cf7b6b41b176daea3578bb38159d9195f002d3b2887017fa34cd1ce8127eeb676c543c5c2ca WHIRLPOOL a19fc90333fb4f564891fdd58c2d5b4da7fcb4c7b1b11a91f67535e009f6df6eb3c543c42c0828cc69a9f6d981bfb6c32b8726fe8c473048d78761ca99f7e6fb
+MISC ChangeLog-2015 3966 SHA256 387cfc9608b23ea40a8b32a6c6322a9cb6cf42f293bd8b30fd4d1c17e9401274 SHA512 bf415ed259d95bc792ee9dbe0fba967161c859e014d34bf1fb9d1f2f579e8133b728c2398d91e8b942c4131b61563a36b0c543aebd6912ede11c6525d3362195 WHIRLPOOL 2c29b062f0d4c1f4962c9fbbc835f8a983e6e6043bf3c2b4df74a0717c47fdd1ba2ae53a7ea779c5e4163257d0825c24a02fa8b14f1c6de6194cf99dbaee968b
+MISC metadata.xml 351 SHA256 74773f1472f3515cf5d80670cb0d0e69cdab9fa6b5031d455da24d0383d1787a SHA512 98cfb584785e967dfd11dc82da694ccde0031609c28faca492d2384d6257020ebf8ac264dcb512129f5a681455ce3228b9f443aa2aa99197134ed7957901eb06 WHIRLPOOL f1c3f3c652a4cf497d09df8859f84817746e8e9bbcbbd636661cf18837d24cbc3431e829796232f1599e9e15f55f26cc2c4b3924d2f38c99254c55422c17e1dc
diff --git a/app-text/pdf2djvu/metadata.xml b/app-text/pdf2djvu/metadata.xml
new file mode 100644
index 000000000000..7ae0b54679c3
--- /dev/null
+++ b/app-text/pdf2djvu/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>printing@gentoo.org</email>
+ <name>Gentoo Printing Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="bitbucket">jwilk/pdf2djvu</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-text/pdf2djvu/pdf2djvu-0.9.3.ebuild b/app-text/pdf2djvu/pdf2djvu-0.9.3.ebuild
new file mode 100644
index 000000000000..af5fbd00e708
--- /dev/null
+++ b/app-text/pdf2djvu/pdf2djvu-0.9.3.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit python-any-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? (
+ ${PYTHON_DEPS}
+ $(python_gen_any_dep 'dev-python/nose[${PYTHON_USEDEP}]')
+ )
+"
+
+REQUIRED_USE="test? ( graphicsmagick ${PYTHON_REQUIRED_USE} )"
+
+pkg_setup() {
+ use test && python-any-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.9.4.ebuild b/app-text/pdf2djvu/pdf2djvu-0.9.4.ebuild
new file mode 100644
index 000000000000..d046e0746aa2
--- /dev/null
+++ b/app-text/pdf2djvu/pdf2djvu-0.9.4.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit python-any-r1 toolchain-funcs flag-o-matic
+
+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? (
+ ${PYTHON_DEPS}
+ $(python_gen_any_dep 'dev-python/nose[${PYTHON_USEDEP}]')
+ )
+"
+
+REQUIRED_USE="test? ( graphicsmagick ${PYTHON_REQUIRED_USE} )"
+
+pkg_setup() {
+ use test && python-any-r1_pkg_setup
+}
+
+src_prepare() {
+ # bug 626874, poppler headers require C++11
+ append-cxxflags -std=c++11
+ default
+}
+
+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}
+}