Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/poppler/, app-text/poppler/files/
Date: Sat, 28 Dec 2019 16:10:45
Message-Id: 1577549393.8783027e928808066d3fa4c88a4e5665661e1a3c.asturm@gentoo
1 commit: 8783027e928808066d3fa4c88a4e5665661e1a3c
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Sat Dec 28 16:00:47 2019 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Sat Dec 28 16:09:53 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8783027e
7
8 app-text/poppler: Drop 0.79.0-r1
9
10 Package-Manager: Portage-2.3.84, Repoman-2.3.20
11 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
12
13 app-text/poppler/Manifest | 1 -
14 .../files/poppler-0.78.0-respect-cflags.patch | 31 -----
15 app-text/poppler/poppler-0.79.0-r1.ebuild | 127 ---------------------
16 3 files changed, 159 deletions(-)
17
18 diff --git a/app-text/poppler/Manifest b/app-text/poppler/Manifest
19 index 13e16601467..45d4ec9453b 100644
20 --- a/app-text/poppler/Manifest
21 +++ b/app-text/poppler/Manifest
22 @@ -1,3 +1,2 @@
23 -DIST poppler-0.79.0.tar.xz 1544140 BLAKE2B b5ecf204c5246f640d9f5ca5ffce9648a1a2c957efdb1e31ace9c1ccdff1be85337b67f7c4019b52eefce17e6f5869aa1911a60e54e421b80ddd3b6eec97a0ec SHA512 f0024fb86887e147ec1cbe9481498d348076dbd6b960716da65defab3365c67ab39626f946758dddbe438634a7116773d8ded8684b65e18abbfc299f56563ec9
24 DIST poppler-0.82.0.tar.xz 1553336 BLAKE2B a83d476ce1174cb7789f857a52a8a9ed29dfe8863d082ef662508ad9957667349aa62b038fa1a52e9e7ae3ddf4701eb5fbd58545b041b6aebd69cb8b91376d8d SHA512 1631be30e398dd18a4e8c2cc893cf0d9469a98d93f02f2ffe3bc14857518b76674a10cafe89ee92b9886c3c6b03d50e214a6838c102f673a62789c9832cfa4a2
25 DIST poppler-0.83.0.tar.xz 1555456 BLAKE2B 4ab24a85e879d0ddbf24cf7bab5b1da7c15fc026e88b4076dc2b8cd34d69a5bcc0113df20fabda6915afea880480613ba34be6e23b5b0d79a3c6197c92af7853 SHA512 bfde1e3cc4d9c626949aab770d84fccbe47bdde2331d3b9f5b98c24319eb573a5db62acbfa5a524b21ed0f195f8b163fee64677c2bd616d31d0bb219d1e66713
26
27 diff --git a/app-text/poppler/files/poppler-0.78.0-respect-cflags.patch b/app-text/poppler/files/poppler-0.78.0-respect-cflags.patch
28 deleted file mode 100644
29 index 137af0dedc4..00000000000
30 --- a/app-text/poppler/files/poppler-0.78.0-respect-cflags.patch
31 +++ /dev/null
32 @@ -1,31 +0,0 @@
33 ---- poppler-0.78.0/cmake/modules/PopplerMacros.cmake
34 -+++ poppler-0.78.0/cmake/modules/PopplerMacros.cmake
35 -@@ -145,28 +145,6 @@
36 - endif(GCC_HAS_AS_NEEDED)
37 - endif (CMAKE_COMPILER_IS_GNUCXX)
38 -
39 --if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
40 --# set the default compile warnings
41 -- set(_warn "-Wall -Wextra -Wpedantic")
42 -- set(_warn "${_warn} -Wno-unused-parameter")
43 -- set(_warn "${_warn} -Wcast-align")
44 -- set(_warn "${_warn} -Wformat-security")
45 -- set(_warn "${_warn} -Wframe-larger-than=65536")
46 -- set(_warn "${_warn} -Wmissing-format-attribute")
47 -- set(_warn "${_warn} -Wnon-virtual-dtor")
48 -- set(_warn "${_warn} -Woverloaded-virtual")
49 -- set(_warn "${_warn} -Wmissing-declarations")
50 -- set(_warn "${_warn} -Wundef")
51 -- set(_warn "${_warn} -Wzero-as-null-pointer-constant")
52 -- set(_warn "${_warn} -Wshadow")
53 --
54 -- # set extra warnings
55 -- set(_warnx "${_warnx} -Wconversion")
56 --
57 -- set(DEFAULT_COMPILE_WARNINGS "${_warn}")
58 -- set(DEFAULT_COMPILE_WARNINGS_EXTRA "${_warn} ${_warnx}")
59 --endif()
60 --
61 - if(CMAKE_C_COMPILER MATCHES "icc")
62 - set(_save_cxxflags "${CMAKE_CXX_FLAGS}")
63 - set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O2 -g ${_save_cxxflags}")
64
65 diff --git a/app-text/poppler/poppler-0.79.0-r1.ebuild b/app-text/poppler/poppler-0.79.0-r1.ebuild
66 deleted file mode 100644
67 index 7043b939f9b..00000000000
68 --- a/app-text/poppler/poppler-0.79.0-r1.ebuild
69 +++ /dev/null
70 @@ -1,127 +0,0 @@
71 -# Copyright 1999-2019 Gentoo Authors
72 -# Distributed under the terms of the GNU General Public License v2
73 -
74 -EAPI=7
75 -
76 -inherit cmake-utils flag-o-matic toolchain-funcs xdg-utils
77 -
78 -if [[ ${PV} == *9999* ]] ; then
79 - inherit git-r3
80 - EGIT_REPO_URI="https://anongit.freedesktop.org/git/poppler/poppler.git"
81 - SLOT="0/9999"
82 -else
83 - SRC_URI="https://poppler.freedesktop.org/${P}.tar.xz"
84 - KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~mips ppc ppc64 s390 ~sh sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
85 - SLOT="0/89" # CHECK THIS WHEN BUMPING!!! SUBSLOT IS libpoppler.so SOVERSION
86 -fi
87 -
88 -DESCRIPTION="PDF rendering library based on the xpdf-3.0 code base"
89 -HOMEPAGE="https://poppler.freedesktop.org/"
90 -
91 -LICENSE="GPL-2"
92 -IUSE="cairo cjk curl cxx debug doc +introspection +jpeg +jpeg2k +lcms nss png qt5 tiff +utils"
93 -
94 -# No test data provided
95 -RESTRICT="test"
96 -
97 -BDEPEND="
98 - dev-util/glib-utils
99 - virtual/pkgconfig
100 -"
101 -DEPEND="
102 - media-libs/fontconfig
103 - media-libs/freetype
104 - sys-libs/zlib
105 - cairo? (
106 - dev-libs/glib:2
107 - x11-libs/cairo
108 - introspection? ( dev-libs/gobject-introspection:= )
109 - )
110 - curl? ( net-misc/curl )
111 - jpeg? ( virtual/jpeg:0 )
112 - jpeg2k? ( >=media-libs/openjpeg-2.3.0-r1:2= )
113 - lcms? ( media-libs/lcms:2 )
114 - nss? ( >=dev-libs/nss-3.19:0 )
115 - png? ( media-libs/libpng:0= )
116 - qt5? (
117 - dev-qt/qtcore:5
118 - dev-qt/qtgui:5
119 - dev-qt/qtxml:5
120 - )
121 - tiff? ( media-libs/tiff:0 )
122 -"
123 -RDEPEND="${DEPEND}
124 - cjk? ( app-text/poppler-data )
125 -"
126 -
127 -DOCS=( AUTHORS NEWS README.md README-XPDF )
128 -
129 -PATCHES=(
130 - "${FILESDIR}/${PN}-0.60.1-qt5-dependencies.patch"
131 - "${FILESDIR}/${PN}-0.28.1-fix-multilib-configuration.patch"
132 - "${FILESDIR}/${PN}-0.78.0-respect-cflags.patch"
133 - "${FILESDIR}/${PN}-0.61.0-respect-cflags.patch"
134 - "${FILESDIR}/${PN}-0.57.0-disable-internal-jpx.patch"
135 -)
136 -
137 -src_prepare() {
138 - cmake-utils_src_prepare
139 -
140 - # Clang doesn't grok this flag, the configure nicely tests that, but
141 - # cmake just uses it, so remove it if we use clang
142 - if [[ ${CC} == clang ]] ; then
143 - sed -e 's/-fno-check-new//' -i cmake/modules/PopplerMacros.cmake || die
144 - fi
145 -
146 - if ! grep -Fq 'cmake_policy(SET CMP0002 OLD)' CMakeLists.txt ; then
147 - sed -e '/^cmake_minimum_required/acmake_policy(SET CMP0002 OLD)' \
148 - -i CMakeLists.txt || die
149 - else
150 - einfo "policy(SET CMP0002 OLD) - workaround can be removed"
151 - fi
152 -
153 - # we need to up the C++ version, bug #622526, #643278
154 - append-cxxflags -std=c++11
155 -}
156 -
157 -src_configure() {
158 - xdg_environment_reset
159 - local mycmakeargs=(
160 - -DBUILD_GTK_TESTS=OFF
161 - -DBUILD_QT5_TESTS=OFF
162 - -DBUILD_CPP_TESTS=OFF
163 - -DENABLE_SPLASH=ON
164 - -DENABLE_ZLIB=ON
165 - -DENABLE_ZLIB_UNCOMPRESS=OFF
166 - -DENABLE_UNSTABLE_API_ABI_HEADERS=ON
167 - -DSPLASH_CMYK=OFF
168 - -DUSE_FIXEDPOINT=OFF
169 - -DUSE_FLOAT=OFF
170 - -DWITH_Cairo=$(usex cairo)
171 - -DENABLE_LIBCURL=$(usex curl)
172 - -DENABLE_CPP=$(usex cxx)
173 - -DWITH_JPEG=$(usex jpeg)
174 - -DENABLE_DCTDECODER=$(usex jpeg libjpeg none)
175 - -DENABLE_LIBOPENJPEG=$(usex jpeg2k openjpeg2 none)
176 - -DENABLE_CMS=$(usex lcms lcms2 none)
177 - -DWITH_NSS3=$(usex nss)
178 - -DWITH_PNG=$(usex png)
179 - $(cmake-utils_use_find_package qt5 Qt5Core)
180 - -DWITH_TIFF=$(usex tiff)
181 - -DENABLE_UTILS=$(usex utils)
182 - )
183 - use cairo && mycmakeargs+=( -DWITH_GObjectIntrospection=$(usex introspection) )
184 -
185 - cmake-utils_src_configure
186 -}
187 -
188 -src_install() {
189 - cmake-utils_src_install
190 -
191 - # live version doesn't provide html documentation
192 - if use cairo && use doc && [[ ${PV} != *9999* ]]; then
193 - # For now install gtk-doc there
194 - insinto /usr/share/gtk-doc/html/poppler
195 - doins -r "${S}"/glib/reference/html/*
196 - fi
197 -}