Gentoo Archives: gentoo-commits

From: Matthias Maier <tamiko@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/pdf2djvu/
Date: Mon, 05 Feb 2018 00:12:24
Message-Id: 1517789515.bb5366dfd17230a3a59c21817dae863c39458886.tamiko@gentoo
1 commit: bb5366dfd17230a3a59c21817dae863c39458886
2 Author: Matthias Maier <tamiko <AT> gentoo <DOT> org>
3 AuthorDate: Mon Feb 5 00:06:19 2018 +0000
4 Commit: Matthias Maier <tamiko <AT> gentoo <DOT> org>
5 CommitDate: Mon Feb 5 00:11:55 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bb5366df
7
8 app-text/pdf2djvu: Version bump to 0.9.8
9
10 Closes: https://bugs.gentoo.org/644798
11 Closes: https://bugs.gentoo.org/643130
12 Closes: https://bugs.gentoo.org/634728
13 Package-Manager: Portage-2.3.24, Repoman-2.3.6
14
15 app-text/pdf2djvu/Manifest | 1 +
16 app-text/pdf2djvu/pdf2djvu-0.9.8.ebuild | 60 +++++++++++++++++++++++++++++++++
17 2 files changed, 61 insertions(+)
18
19 diff --git a/app-text/pdf2djvu/Manifest b/app-text/pdf2djvu/Manifest
20 index 0a3fbc154d5..0068663b291 100644
21 --- a/app-text/pdf2djvu/Manifest
22 +++ b/app-text/pdf2djvu/Manifest
23 @@ -1,2 +1,3 @@
24 DIST pdf2djvu-0.9.3.tar.xz 239492 BLAKE2B e231f833075739e19a3dfe469eaa9f5eabf8b096473e9ea4d0dbbb296c33767cb612976f69548fd97966084cffeacc7f24230c789c6fbe5f1efed09988221b84 SHA512 388b76642c354480674b6eee4961792c4ef483313ffd25a6248d1d6302985ac5adfb558ae9241062893a419463c9626d8dac9d08297d66b68a98cebbcc4dc193
25 DIST pdf2djvu-0.9.4.tar.xz 250332 BLAKE2B 529c871216cb4ddc55560875b5c4d5a9aeb680140821c6d6d5ab71853a09f3661cfbf28ac4602d6d782afb682a14af8241d70cb82ca617f28a0752f45c852df7 SHA512 6b97d0577ee6e623d8c877393f551dd2a5e19508e5cd6dc5bb2d3ae1a2b71c2f0ffc7020d85507bc52a25da09a301dd5ddf45ab2628928477e0846707ea57322
26 +DIST pdf2djvu-0.9.8.tar.xz 268976 BLAKE2B 318ef4fd5677056d2404d769bf54911c9474d6f0f839ef472e121375ee268db31ddaaad2b8ed791ef093d6cb1c665f6431619918ee852e479b4a11a3d7ae0e23 SHA512 5f5330d3d15808b5b6233a15a984d0ebf28619cfb50807a20c8992fed68d17f73d1edd62b1ad7cd3a09d526f6c9f0827e2c5e03d6d7c8ad92c1f106755025f5e
27
28 diff --git a/app-text/pdf2djvu/pdf2djvu-0.9.8.ebuild b/app-text/pdf2djvu/pdf2djvu-0.9.8.ebuild
29 new file mode 100644
30 index 00000000000..d59dccb4f53
31 --- /dev/null
32 +++ b/app-text/pdf2djvu/pdf2djvu-0.9.8.ebuild
33 @@ -0,0 +1,60 @@
34 +# Copyright 1999-2018 Gentoo Foundation
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +EAPI=6
38 +
39 +PYTHON_COMPAT=( python2_7 )
40 +
41 +inherit python-any-r1 toolchain-funcs flag-o-matic
42 +
43 +DESCRIPTION="A tool to create DjVu files from PDF files"
44 +HOMEPAGE="http://jwilk.net/software/pdf2djvu"
45 +SRC_URI="https://github.com/jwilk/${PN}/releases/download/${PV}/${P}.tar.xz"
46 +
47 +LICENSE="GPL-2"
48 +SLOT="0"
49 +KEYWORDS="~amd64 ~x86"
50 +IUSE="+graphicsmagick nls openmp test"
51 +
52 +RDEPEND="
53 + >=app-text/djvu-3.5.21:=
54 + >=app-text/poppler-0.16.7:=
55 + dev-libs/libxml2:=
56 + dev-libs/libxslt:=
57 + graphicsmagick? ( media-gfx/graphicsmagick:= )
58 +"
59 +DEPEND="${RDEPEND}
60 + dev-cpp/pstreams
61 + virtual/pkgconfig
62 + nls? ( sys-devel/gettext )
63 + test? (
64 + ${PYTHON_DEPS}
65 + $(python_gen_any_dep 'dev-python/nose[${PYTHON_USEDEP}]')
66 + )
67 +"
68 +
69 +REQUIRED_USE="test? ( graphicsmagick ${PYTHON_REQUIRED_USE} )"
70 +
71 +DOCS=(
72 + doc/{changelog,credits,djvudigital,README}
73 +)
74 +
75 +pkg_setup() {
76 + use test && python-any-r1_pkg_setup
77 +}
78 +
79 +src_prepare() {
80 + # bug 626874, poppler headers require C++11
81 + append-cxxflags -std=c++11
82 + default
83 +}
84 +
85 +src_configure() {
86 + local openmp=--disable-openmp
87 + use openmp && tc-has-openmp && openmp=--enable-openmp
88 +
89 + econf \
90 + ${openmp} \
91 + $(use_enable nls) \
92 + $(use_with graphicsmagick)
93 +}