Gentoo Archives: gentoo-commits

From: Johannes Huber <johu@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/poppler/
Date: Mon, 01 Aug 2016 06:08:43
Message-Id: 1470031704.7e72c3dbd8001dc17034370cf48b01205fb44090.johu@gentoo
1 commit: 7e72c3dbd8001dc17034370cf48b01205fb44090
2 Author: Johannes Huber <johu <AT> gentoo <DOT> org>
3 AuthorDate: Mon Aug 1 06:08:12 2016 +0000
4 Commit: Johannes Huber <johu <AT> gentoo <DOT> org>
5 CommitDate: Mon Aug 1 06:08:24 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7e72c3db
7
8 app-text/poppler: Remove 0.46.0 (r0)
9
10 Package-Manager: portage-2.3.0
11
12 app-text/poppler/poppler-0.46.0.ebuild | 143 ---------------------------------
13 1 file changed, 143 deletions(-)
14
15 diff --git a/app-text/poppler/poppler-0.46.0.ebuild b/app-text/poppler/poppler-0.46.0.ebuild
16 deleted file mode 100644
17 index df66639..0000000
18 --- a/app-text/poppler/poppler-0.46.0.ebuild
19 +++ /dev/null
20 @@ -1,143 +0,0 @@
21 -# Copyright 1999-2016 Gentoo Foundation
22 -# Distributed under the terms of the GNU General Public License v2
23 -# $Id$
24 -
25 -EAPI=6
26 -
27 -inherit cmake-utils toolchain-funcs xdg-utils
28 -
29 -if [[ "${PV}" == "9999" ]] ; then
30 - inherit git-r3
31 - EGIT_REPO_URI="git://git.freedesktop.org/git/${PN}/${PN}"
32 - SLOT="0/9999"
33 -else
34 - SRC_URI="https://poppler.freedesktop.org/${P}.tar.xz"
35 - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
36 - SLOT="0/63" # CHECK THIS WHEN BUMPING!!! SUBSLOT IS libpoppler.so SOVERSION
37 -fi
38 -
39 -DESCRIPTION="PDF rendering library based on the xpdf-3.0 code base"
40 -HOMEPAGE="https://poppler.freedesktop.org/"
41 -
42 -LICENSE="GPL-2"
43 -IUSE="cairo cairo-qt cjk curl cxx debug doc +introspection +jpeg +jpeg2k +lcms nss png qt4 qt5 tiff +utils"
44 -
45 -REQUIRED_USE="cairo-qt? ( qt4 )"
46 -
47 -# No test data provided
48 -RESTRICT="test"
49 -
50 -COMMON_DEPEND="
51 - >=media-libs/fontconfig-2.6.0
52 - >=media-libs/freetype-2.3.9
53 - sys-libs/zlib
54 - cairo? (
55 - dev-libs/glib:2
56 - >=x11-libs/cairo-1.10.0
57 - introspection? ( >=dev-libs/gobject-introspection-1.32.1:= )
58 - )
59 - cairo-qt? ( >=x11-libs/cairo-1.10.0 )
60 - curl? ( net-misc/curl )
61 - jpeg? ( virtual/jpeg:0 )
62 - jpeg2k? ( media-libs/openjpeg:2= )
63 - lcms? ( media-libs/lcms:2 )
64 - nss? ( >=dev-libs/nss-3.19:0 )
65 - png? ( media-libs/libpng:0= )
66 - qt4? (
67 - dev-qt/qtcore:4
68 - dev-qt/qtgui:4
69 - )
70 - qt5? (
71 - dev-qt/qtcore:5
72 - dev-qt/qtgui:5
73 - dev-qt/qtxml:5
74 - )
75 - tiff? ( media-libs/tiff:0 )
76 -"
77 -DEPEND="${COMMON_DEPEND}
78 - virtual/pkgconfig
79 -"
80 -RDEPEND="${COMMON_DEPEND}
81 - cjk? ( >=app-text/poppler-data-0.4.7 )
82 -"
83 -
84 -DOCS=(AUTHORS NEWS README README-XPDF TODO)
85 -
86 -PATCHES=(
87 - "${FILESDIR}/${PN}-0.26.0-qt5-dependencies.patch"
88 - "${FILESDIR}/${PN}-0.28.1-fix-multilib-configuration.patch"
89 - "${FILESDIR}/${PN}-0.28.1-respect-cflags.patch"
90 - "${FILESDIR}/${PN}-0.33.0-openjpeg2.patch"
91 - "${FILESDIR}/${PN}-0.40-FindQt4.patch"
92 -)
93 -
94 -src_prepare() {
95 - cmake-utils_src_prepare
96 -
97 - # Clang doesn't grok this flag, the configure nicely tests that, but
98 - # cmake just uses it, so remove it if we use clang
99 - if [[ ${CC} == clang ]] ; then
100 - sed -i -e 's/-fno-check-new//' cmake/modules/PopplerMacros.cmake || die
101 - fi
102 -
103 - # Enable experimental patchset for subpixel font rendering using cairo
104 - # backend for poppler-qt4 from https://github.com/giddie/poppler-qt4-cairo-backend.
105 - if use cairo-qt; then
106 - ewarn "Enabling unsupported, experimental cairo-qt patchset. Please do not report bugs."
107 - epatch "${FILESDIR}/cairo-qt-experimental/0001-Cairo-backend-added-to-Qt4-wrapper.patch"
108 - epatch "${FILESDIR}/cairo-qt-experimental/0002-Setting-default-Qt4-backend-to-Cairo.patch"
109 - epatch "${FILESDIR}/cairo-qt-experimental/0003-Forcing-subpixel-rendering-in-Cairo-backend.patch"
110 - epatch "${FILESDIR}/cairo-qt-experimental/0004-Enabling-slight-hinting-in-Cairo-Backend.patch"
111 - fi
112 -}
113 -
114 -src_configure() {
115 - xdg_environment_reset
116 - local mycmakeargs=(
117 - -DBUILD_GTK_TESTS=OFF
118 - -DBUILD_QT4_TESTS=OFF
119 - -DBUILD_QT5_TESTS=OFF
120 - -DBUILD_CPP_TESTS=OFF
121 - -DENABLE_SPLASH=ON
122 - -DENABLE_ZLIB=ON
123 - -DENABLE_ZLIB_UNCOMPRESS=OFF
124 - -DENABLE_XPDF_HEADERS=ON
125 - -DENABLE_LIBCURL="$(usex curl)"
126 - -DENABLE_CPP="$(usex cxx)"
127 - -DENABLE_UTILS="$(usex utils)"
128 - -DSPLASH_CMYK=OFF
129 - -DUSE_FIXEDPOINT=OFF
130 - -DUSE_FLOAT=OFF
131 - -DWITH_Cairo="$(usex cairo)"
132 - -DWITH_GObjectIntrospection="$(usex introspection)"
133 - -DWITH_JPEG="$(usex jpeg)"
134 - -DWITH_NSS3="$(usex nss)"
135 - -DWITH_PNG="$(usex png)"
136 - -DWITH_Qt4="$(usex qt4)"
137 - $(cmake-utils_use_find_package qt5 Qt5Core)
138 - -DWITH_TIFF="$(usex tiff)"
139 - )
140 - if use jpeg2k; then
141 - mycmakeargs+=(-DENABLE_LIBOPENJPEG=openjpeg2)
142 - else
143 - mycmakeargs+=(-DENABLE_LIBOPENJPEG=)
144 - fi
145 - if use lcms; then
146 - mycmakeargs+=(-DENABLE_CMS=lcms2)
147 - else
148 - mycmakeargs+=(-DENABLE_CMS=)
149 - fi
150 -
151 - cmake-utils_src_configure
152 -}
153 -
154 -src_install() {
155 - cmake-utils_src_install
156 -
157 - # live version doesn't provide html documentation
158 - if use cairo && use doc && [[ ${PV} != 9999 ]]; then
159 - # For now install gtk-doc there
160 - insinto /usr/share/gtk-doc/html/poppler
161 - doins -r "${S}"/glib/reference/html/*
162 - fi
163 -}