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