Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/poppler/
Date: Mon, 13 Nov 2017 10:23:25
Message-Id: 1510568595.15674999205388b6bf64c411a45084178e7aeabb.polynomial-c@gentoo
1 commit: 15674999205388b6bf64c411a45084178e7aeabb
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Mon Nov 13 10:21:07 2017 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Mon Nov 13 10:23:15 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=15674999
7
8 app-text/poppler: Bump to version 0.61.1
9
10 Package-Manager: Portage-2.3.13, Repoman-2.3.4
11
12 app-text/poppler/Manifest | 1 +
13 app-text/poppler/poppler-0.61.1.ebuild | 146 +++++++++++++++++++++++++++++++++
14 2 files changed, 147 insertions(+)
15
16 diff --git a/app-text/poppler/Manifest b/app-text/poppler/Manifest
17 index bd59768ed12..a4eae7e106a 100644
18 --- a/app-text/poppler/Manifest
19 +++ b/app-text/poppler/Manifest
20 @@ -4,3 +4,4 @@ DIST poppler-0.58.0.tar.xz 1710412 SHA256 0e42e46419ae54b02d9f2b527c6475b6011d15
21 DIST poppler-0.59.0.tar.xz 1712004 SHA256 a3d626b24cd14efa9864e12584b22c9c32f51c46417d7c10ca17651f297c9641 SHA512 23777922dc95feee2a4459281081b37e124a39fc25cd00c2c3fc206f5484c13eb9ac5317f674fbbcb51e384f9a53e38b4cacbf1426c68d2bae21a7cefbc48a0e WHIRLPOOL 82ec203c17e2b2544cc0ac12d0b22bb051abf776114d17e1548f47d5e38ff289dee2e9c4b27dc16e3953b6f5b5ff0e0eeecfba73561dbc396ee0db7c5a4847e2
22 DIST poppler-0.60.1.tar.xz 1432712 SHA256 19f185e05c3b59b4a1de2cec8ef39f5446035493d17bbed41d02fb9a77c8a93c SHA512 db73524b7413dddee38d5a049f3926338ee123b8fc4893d80ee9cf5aaae47c8c7b75b112293b156cd375894e548ec68e5fbf4af305e77b43bc3868ad1c966cdc WHIRLPOOL fe1fe7a3f0c0bac57c7503ad183fe2e8e2f0378c4dedc0dadbc6dcfaeaf8044bf387256742a970af5ed9e2704e42c35e996957e765eeff1aca4bedcc427ae6a7
23 DIST poppler-0.61.0.tar.xz 1432952 SHA256 53cde17a2afa3b73eb8b209d24e4369b52bfac444065dbb0a8cbcc7356582b7f SHA512 d65a7ed87c8b87ee9a6b15ace90114c1538af29669a0bd6688895876f1fb726d38ddc4f686efdf5a33fc2a950cab10ca032dcd8f42ef5941b3b089239c6b11f5 WHIRLPOOL 56848f1248f42066c3fa76b617c9f24411209376fa088b39ee3a630ffb7a6368fa188050118f17b09af77a4ab6495e310edefc6c4f9dfd2082ef4d57eb902c0f
24 +DIST poppler-0.61.1.tar.xz 1433696 SHA256 1266096343f5163c1a585124e9a6d44474e1345de5cdfe55dc7b47357bcfcda9 SHA512 780ebf07ad757635f3f71c7b1f61ad0849526f99f0dc514c3290c4e8db7000a68dfe50c17253d4c086aec5c5390055102478eba96699088179822f3be5ce278d WHIRLPOOL 9d41a9c2ae551f71a82cdae763a4d9c032977c1140fb89f619b912169f9c48c6b310bba38b0138de16c5af04cb46f0f58c57c60a15a648fefcd92cee8c8583df
25
26 diff --git a/app-text/poppler/poppler-0.61.1.ebuild b/app-text/poppler/poppler-0.61.1.ebuild
27 new file mode 100644
28 index 00000000000..2cfa1ed7abe
29 --- /dev/null
30 +++ b/app-text/poppler/poppler-0.61.1.ebuild
31 @@ -0,0 +1,146 @@
32 +# Copyright 1999-2017 Gentoo Foundation
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=6
36 +
37 +inherit cmake-utils toolchain-funcs xdg-utils
38 +
39 +if [[ "${PV}" == "9999" ]] ; then
40 + inherit git-r3
41 + EGIT_REPO_URI="git://git.freedesktop.org/git/${PN}/${PN}"
42 + SLOT="0/9999"
43 +else
44 + SRC_URI="https://poppler.freedesktop.org/${P}.tar.xz"
45 + 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"
46 + SLOT="0/72" # CHECK THIS WHEN BUMPING!!! SUBSLOT IS libpoppler.so SOVERSION
47 +fi
48 +
49 +DESCRIPTION="PDF rendering library based on the xpdf-3.0 code base"
50 +HOMEPAGE="https://poppler.freedesktop.org/"
51 +
52 +LICENSE="GPL-2"
53 +IUSE="cairo cjk curl cxx debug doc +introspection +jpeg +jpeg2k +lcms nss png qt4 qt5 tiff +utils"
54 +
55 +# No test data provided
56 +RESTRICT="test"
57 +
58 +COMMON_DEPEND="
59 + >=media-libs/fontconfig-2.6.0
60 + >=media-libs/freetype-2.3.9
61 + sys-libs/zlib
62 + cairo? (
63 + dev-libs/glib:2
64 + >=x11-libs/cairo-1.10.0
65 + introspection? ( >=dev-libs/gobject-introspection-1.32.1:= )
66 + )
67 + curl? ( net-misc/curl )
68 + jpeg? ( virtual/jpeg:0 )
69 + jpeg2k? ( media-libs/openjpeg:2= )
70 + lcms? ( media-libs/lcms:2 )
71 + nss? ( >=dev-libs/nss-3.19:0 )
72 + png? ( media-libs/libpng:0= )
73 + qt4? (
74 + dev-qt/qtcore:4
75 + dev-qt/qtgui:4
76 + )
77 + qt5? (
78 + dev-qt/qtcore:5
79 + dev-qt/qtgui:5
80 + dev-qt/qtxml:5
81 + )
82 + tiff? ( media-libs/tiff:0 )
83 +"
84 +DEPEND="${COMMON_DEPEND}
85 + virtual/pkgconfig
86 +"
87 +RDEPEND="${COMMON_DEPEND}
88 + cjk? ( >=app-text/poppler-data-0.4.7 )
89 +"
90 +
91 +DOCS=(AUTHORS NEWS README README-XPDF)
92 +
93 +PATCHES=(
94 + "${FILESDIR}/${PN}-0.60.1-qt5-dependencies.patch"
95 + "${FILESDIR}/${PN}-0.28.1-fix-multilib-configuration.patch"
96 + "${FILESDIR}/${PN}-0.61.0-respect-cflags.patch"
97 + "${FILESDIR}/${PN}-0.33.0-openjpeg2.patch"
98 + "${FILESDIR}/${PN}-0.40-FindQt4.patch"
99 +)
100 +
101 +src_prepare() {
102 + cmake-utils_src_prepare
103 +
104 + # Clang doesn't grok this flag, the configure nicely tests that, but
105 + # cmake just uses it, so remove it if we use clang
106 + if [[ ${CC} == clang ]] ; then
107 + sed -i -e 's/-fno-check-new//' cmake/modules/PopplerMacros.cmake || die
108 + fi
109 +
110 + if ! grep -Fq 'cmake_policy(SET CMP0002 OLD)' CMakeLists.txt ; then
111 + sed '/^cmake_minimum_required/acmake_policy(SET CMP0002 OLD)' \
112 + -i CMakeLists.txt || die
113 + else
114 + einfo "policy(SET CMP0002 OLD) - workaround can be removed"
115 + fi
116 +
117 + if tc-is-clang && [[ ${CHOST} == *-darwin* ]] ; then
118 + # we need to up the C++ version, bug #622526
119 + export CXX="$(tc-getCXX) -std=c++11"
120 + fi
121 +}
122 +
123 +src_configure() {
124 + xdg_environment_reset
125 + local mycmakeargs=(
126 + -DBUILD_GTK_TESTS=OFF
127 + -DBUILD_QT4_TESTS=OFF
128 + -DBUILD_QT5_TESTS=OFF
129 + -DBUILD_CPP_TESTS=OFF
130 + -DENABLE_SPLASH=ON
131 + -DENABLE_ZLIB=ON
132 + -DENABLE_ZLIB_UNCOMPRESS=OFF
133 + -DENABLE_XPDF_HEADERS=ON
134 + -DENABLE_LIBCURL="$(usex curl)"
135 + -DENABLE_CPP="$(usex cxx)"
136 + -DENABLE_UTILS="$(usex utils)"
137 + -DSPLASH_CMYK=OFF
138 + -DUSE_FIXEDPOINT=OFF
139 + -DUSE_FLOAT=OFF
140 + -DWITH_Cairo="$(usex cairo)"
141 + -DWITH_GObjectIntrospection="$(usex introspection)"
142 + -DWITH_JPEG="$(usex jpeg)"
143 + -DWITH_NSS3="$(usex nss)"
144 + -DWITH_PNG="$(usex png)"
145 + -DWITH_Qt4="$(usex qt4)"
146 + $(cmake-utils_use_find_package qt5 Qt5Core)
147 + -DWITH_TIFF="$(usex tiff)"
148 + )
149 + if use jpeg; then
150 + mycmakeargs+=(-DENABLE_DCTDECODER=libjpeg)
151 + else
152 + mycmakeargs+=(-DENABLE_DCTDECODER=none)
153 + fi
154 + if use jpeg2k; then
155 + mycmakeargs+=(-DENABLE_LIBOPENJPEG=openjpeg2)
156 + else
157 + mycmakeargs+=(-DENABLE_LIBOPENJPEG=none)
158 + fi
159 + if use lcms; then
160 + mycmakeargs+=(-DENABLE_CMS=lcms2)
161 + else
162 + mycmakeargs+=(-DENABLE_CMS=)
163 + fi
164 +
165 + cmake-utils_src_configure
166 +}
167 +
168 +src_install() {
169 + cmake-utils_src_install
170 +
171 + # live version doesn't provide html documentation
172 + if use cairo && use doc && [[ ${PV} != 9999 ]]; then
173 + # For now install gtk-doc there
174 + insinto /usr/share/gtk-doc/html/poppler
175 + doins -r "${S}"/glib/reference/html/*
176 + fi
177 +}