Gentoo Archives: gentoo-commits

From: "Manuel Rüger" <mrueg@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/poppler/
Date: Thu, 22 Jun 2017 11:50:27
Message-Id: 1498132209.efcac15619ac56783ca32034237b95567690662d.mrueg@gentoo
1 commit: efcac15619ac56783ca32034237b95567690662d
2 Author: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jun 22 11:49:49 2017 +0000
4 Commit: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
5 CommitDate: Thu Jun 22 11:50:09 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=efcac156
7
8 app-text/poppler: Version bump to 0.56.0
9
10 Package-Manager: Portage-2.3.6, Repoman-2.3.2
11
12 app-text/poppler/Manifest | 1 +
13 app-text/poppler/poppler-0.56.0.ebuild | 141 +++++++++++++++++++++++++++++++++
14 2 files changed, 142 insertions(+)
15
16 diff --git a/app-text/poppler/Manifest b/app-text/poppler/Manifest
17 index ade19e01b9d..45993c10e3a 100644
18 --- a/app-text/poppler/Manifest
19 +++ b/app-text/poppler/Manifest
20 @@ -1,2 +1,3 @@
21 DIST poppler-0.45.0.tar.xz 1674464 SHA256 96dd1a6024bcdaa4530a3b49687db3d5c24ddfd072ccb37c6de0e42599728798 SHA512 b703bed35da3572801834740bf61d59b6a3ee3b88bc1b3181bde3472264be4f6b89ceacb56179d7093329946abd6ba2501acfaf209d4f543352ff9fd38c47f1b WHIRLPOOL 687b1ba816dbff1b0a69cb05914dd7fb161bfd8c0fa4e26b77bb0ad26e27f7d7d94085a1022716a8d7a7563145f0acead9fccbbd332959d0216b81b27f3632e8
22 DIST poppler-0.55.0.tar.xz 1700440 SHA256 537f2bc60d796525705ad9ca8e46899dcc99c2e9480b80051808bae265cdc658 SHA512 ea3008f2945da862236fcc64d320367e04e3c71d4cc5e996e0c50ac49457e5e42eb06af92486fe7f15c04f07a88367f5344f8dc76549c57c4a19e2fbb60f55d6 WHIRLPOOL 9aec88be85548d217f90fedb12530b5a61e2bf8172154146b3003d6ebbe53b6b2af947ec6f07ddde499a6b0863090470d1b379485984e27068e6741ef3bbf101
23 +DIST poppler-0.56.0.tar.xz 1701488 SHA256 869dbadf99ed882e776acbdbc06689d8a81872a2963440b1e8516cd7a2577173 SHA512 74d2ca63afcb7e155c153b4ddc71621b7f4f2c60d4fcafd873176d5ac59fafedc35b200a22c7af2013d7f75e670a1cc23d6ba878167a02209917f8d30002d528 WHIRLPOOL 3b7b4330306f46bc6c1f72205a8cff95f23a82011260a629762ad52bdcbc89e5c071da8aeb48c15ff21e7b38893aa01b3421d9d232938ac8a61745f798271b04
24
25 diff --git a/app-text/poppler/poppler-0.56.0.ebuild b/app-text/poppler/poppler-0.56.0.ebuild
26 new file mode 100644
27 index 00000000000..088e5a72c43
28 --- /dev/null
29 +++ b/app-text/poppler/poppler-0.56.0.ebuild
30 @@ -0,0 +1,141 @@
31 +# Copyright 1999-2017 Gentoo Foundation
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=6
35 +
36 +inherit cmake-utils toolchain-funcs xdg-utils
37 +
38 +if [[ "${PV}" == "9999" ]] ; then
39 + inherit git-r3
40 + EGIT_REPO_URI="git://git.freedesktop.org/git/${PN}/${PN}"
41 + SLOT="0/9999"
42 +else
43 + SRC_URI="https://poppler.freedesktop.org/${P}.tar.xz"
44 + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
45 + SLOT="0/67" # CHECK THIS WHEN BUMPING!!! SUBSLOT IS libpoppler.so SOVERSION
46 +fi
47 +
48 +DESCRIPTION="PDF rendering library based on the xpdf-3.0 code base"
49 +HOMEPAGE="https://poppler.freedesktop.org/"
50 +
51 +LICENSE="GPL-2"
52 +IUSE="cairo cjk curl cxx debug doc +introspection +jpeg +jpeg2k +lcms nss png qt4 qt5 tiff +utils"
53 +
54 +# No test data provided
55 +RESTRICT="test"
56 +
57 +COMMON_DEPEND="
58 + >=media-libs/fontconfig-2.6.0
59 + >=media-libs/freetype-2.3.9
60 + sys-libs/zlib
61 + cairo? (
62 + dev-libs/glib:2
63 + >=x11-libs/cairo-1.10.0
64 + introspection? ( >=dev-libs/gobject-introspection-1.32.1:= )
65 + )
66 + curl? ( net-misc/curl )
67 + jpeg? ( virtual/jpeg:0 )
68 + jpeg2k? ( media-libs/openjpeg:2= )
69 + lcms? ( media-libs/lcms:2 )
70 + nss? ( >=dev-libs/nss-3.19:0 )
71 + png? ( media-libs/libpng:0= )
72 + qt4? (
73 + dev-qt/qtcore:4
74 + dev-qt/qtgui:4
75 + )
76 + qt5? (
77 + dev-qt/qtcore:5
78 + dev-qt/qtgui:5
79 + dev-qt/qtxml:5
80 + )
81 + tiff? ( media-libs/tiff:0 )
82 +"
83 +DEPEND="${COMMON_DEPEND}
84 + virtual/pkgconfig
85 +"
86 +RDEPEND="${COMMON_DEPEND}
87 + cjk? ( >=app-text/poppler-data-0.4.7 )
88 +"
89 +
90 +DOCS=(AUTHORS NEWS README README-XPDF TODO)
91 +
92 +PATCHES=(
93 + "${FILESDIR}/${PN}-0.26.0-qt5-dependencies.patch"
94 + "${FILESDIR}/${PN}-0.28.1-fix-multilib-configuration.patch"
95 + "${FILESDIR}/${PN}-0.53.0-respect-cflags.patch"
96 + "${FILESDIR}/${PN}-0.33.0-openjpeg2.patch"
97 + "${FILESDIR}/${PN}-0.40-FindQt4.patch"
98 +)
99 +
100 +src_prepare() {
101 + cmake-utils_src_prepare
102 +
103 + # Clang doesn't grok this flag, the configure nicely tests that, but
104 + # cmake just uses it, so remove it if we use clang
105 + if [[ ${CC} == clang ]] ; then
106 + sed -i -e 's/-fno-check-new//' cmake/modules/PopplerMacros.cmake || die
107 + fi
108 +
109 + if ! grep -Fq 'cmake_policy(SET CMP0002 OLD)' CMakeLists.txt ; then
110 + sed '/^cmake_minimum_required/acmake_policy(SET CMP0002 OLD)' \
111 + -i CMakeLists.txt || die
112 + else
113 + einfo "policy(SET CMP0002 OLD) - workaround can be removed"
114 + fi
115 +}
116 +
117 +src_configure() {
118 + xdg_environment_reset
119 + local mycmakeargs=(
120 + -DBUILD_GTK_TESTS=OFF
121 + -DBUILD_QT4_TESTS=OFF
122 + -DBUILD_QT5_TESTS=OFF
123 + -DBUILD_CPP_TESTS=OFF
124 + -DENABLE_SPLASH=ON
125 + -DENABLE_ZLIB=ON
126 + -DENABLE_ZLIB_UNCOMPRESS=OFF
127 + -DENABLE_XPDF_HEADERS=ON
128 + -DENABLE_LIBCURL="$(usex curl)"
129 + -DENABLE_CPP="$(usex cxx)"
130 + -DENABLE_UTILS="$(usex utils)"
131 + -DSPLASH_CMYK=OFF
132 + -DUSE_FIXEDPOINT=OFF
133 + -DUSE_FLOAT=OFF
134 + -DWITH_Cairo="$(usex cairo)"
135 + -DWITH_GObjectIntrospection="$(usex introspection)"
136 + -DWITH_JPEG="$(usex jpeg)"
137 + -DWITH_NSS3="$(usex nss)"
138 + -DWITH_PNG="$(usex png)"
139 + -DWITH_Qt4="$(usex qt4)"
140 + $(cmake-utils_use_find_package qt5 Qt5Core)
141 + -DWITH_TIFF="$(usex tiff)"
142 + )
143 + if use jpeg; then
144 + mycmakeargs+=(-DENABLE_DCTDECODER=libjpeg)
145 + else
146 + mycmakeargs+=(-DENABLE_DCTDECODER=none)
147 + fi
148 + if use jpeg2k; then
149 + mycmakeargs+=(-DENABLE_LIBOPENJPEG=openjpeg2)
150 + else
151 + mycmakeargs+=(-DENABLE_LIBOPENJPEG=none)
152 + fi
153 + if use lcms; then
154 + mycmakeargs+=(-DENABLE_CMS=lcms2)
155 + else
156 + mycmakeargs+=(-DENABLE_CMS=)
157 + fi
158 +
159 + cmake-utils_src_configure
160 +}
161 +
162 +src_install() {
163 + cmake-utils_src_install
164 +
165 + # live version doesn't provide html documentation
166 + if use cairo && use doc && [[ ${PV} != 9999 ]]; then
167 + # For now install gtk-doc there
168 + insinto /usr/share/gtk-doc/html/poppler
169 + doins -r "${S}"/glib/reference/html/*
170 + fi
171 +}