app-text/pdf2djvu: Version bump
authorManuel Rüger <mrueg@gentoo.org>
Fri, 11 Sep 2015 14:26:22 +0000 (16:26 +0200)
committerManuel Rüger <mrueg@gentoo.org>
Fri, 11 Sep 2015 14:26:41 +0000 (16:26 +0200)
Package-Manager: portage-2.2.20.1

app-text/pdf2djvu/Manifest
app-text/pdf2djvu/pdf2djvu-0.8.2.ebuild [new file with mode: 0644]

index f8a8d28141b7e6eb6462af323a2475b008ddfe3a..7294ab8e07dddefbbba3fae4240476d1b25a2ef2 100644 (file)
@@ -1,2 +1,3 @@
 DIST pdf2djvu-0.7.21.tar.xz 229020 SHA256 12d480cc3ce2369e1f1b39b7f5e6fbb44351d8b07861295d34e6978f58b687b9 SHA512 920e49b23f9c1d1a8f6c0be9257dc175ef94350f6e488d88813eb2586344f373b4b173530031d9aeff24b1ad220cc68a3094d4e821cd3a1511ba01e492ed084f WHIRLPOOL 7d09ca40f330c79c0a1abf9967f9ce5d05cfaa8a5904bf69c751a4ca1cce5da2987c519cc001dd7b3fdaa0822127e3ead269ee723f78c6cc18d1c7666b8b28e5
 DIST pdf2djvu-0.8.1.tar.xz 239164 SHA256 716b1ac2c4328fcfee8b33a0b6cd011b2ebee040de57163978ddd84ffcf9f8e9 SHA512 f61940726a1c04d33ff71c2a9230c4decd81a26ac44c4859cd6929a505b159e21fa06d80ba1c86f464aaeb6246d76ea751a3f35e8211364855d082b1b96465c0 WHIRLPOOL cafe5b07977d6382dd4935d879ad7923b188c042c4b07b6d07a9e600a6d683f1b1d4a3cd1e83d9f82169d9d9bb88ac379625dbf9d81e6b6fe2c51d017b9da95a
+DIST pdf2djvu-0.8.2.tar.xz 234412 SHA256 40b0812e954f374704bd8dbb5952786f6744623a2ec6df1c56de0b8057be93d6 SHA512 72a3ee719b6311824c1f71269787b31cdd600bc8671f0486419f4d023cb10f9d338df18ce33c982ed43f893d441a723bffd502a17287be43a00dc695ca959042 WHIRLPOOL 72863dfc7f4a7d1665de77a3fa12242c83746f4c3a237b45e92fd3111581f55e16a5c020590d12185db13b7035a987ab2efaa8fee9b47adb60f0502703af6a7c
diff --git a/app-text/pdf2djvu/pdf2djvu-0.8.2.ebuild b/app-text/pdf2djvu/pdf2djvu-0.8.2.ebuild
new file mode 100644 (file)
index 0000000..653e9bb
--- /dev/null
@@ -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}
+}