Gentoo Archives: gentoo-commits

From: Gilles Dartiguelongue <eva@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/gnome:master commit in: x11-libs/gdk-pixbuf/
Date: Sat, 02 Sep 2017 14:55:23
Message-Id: 1504364111.2a7be77d73a548cb8cee0c7076c9b93fb50d7029.eva@gentoo
1 commit: 2a7be77d73a548cb8cee0c7076c9b93fb50d7029
2 Author: Gilles Dartiguelongue <eva <AT> gentoo <DOT> org>
3 AuthorDate: Sat Sep 2 14:55:11 2017 +0000
4 Commit: Gilles Dartiguelongue <eva <AT> gentoo <DOT> org>
5 CommitDate: Sat Sep 2 14:55:11 2017 +0000
6 URL: https://gitweb.gentoo.org/proj/gnome.git/commit/?id=2a7be77d
7
8 x11-libs/gdk-pixbuf: sync with gentoo repository
9
10 Package-Manager: Portage-2.3.8, Repoman-2.3.3
11 Manifest-Sign-Key: 0x5A56C8CD0C13248A
12
13 x11-libs/gdk-pixbuf/gdk-pixbuf-2.34.0.ebuild | 121 ---------------------------
14 x11-libs/gdk-pixbuf/gdk-pixbuf-9999.ebuild | 16 ++--
15 x11-libs/gdk-pixbuf/metadata.xml | 3 +
16 3 files changed, 10 insertions(+), 130 deletions(-)
17
18 diff --git a/x11-libs/gdk-pixbuf/gdk-pixbuf-2.34.0.ebuild b/x11-libs/gdk-pixbuf/gdk-pixbuf-2.34.0.ebuild
19 deleted file mode 100644
20 index d674ae1f..00000000
21 --- a/x11-libs/gdk-pixbuf/gdk-pixbuf-2.34.0.ebuild
22 +++ /dev/null
23 @@ -1,121 +0,0 @@
24 -# Copyright 1999-2016 Gentoo Foundation
25 -# Distributed under the terms of the GNU General Public License v2
26 -# $Id$
27 -
28 -EAPI="5"
29 -GCONF_DEBUG="no"
30 -GNOME2_LA_PUNT="yes"
31 -
32 -inherit eutils flag-o-matic gnome2 multilib libtool multilib-minimal
33 -
34 -DESCRIPTION="Image loading library for GTK+"
35 -HOMEPAGE="https://git.gnome.org/browse/gdk-pixbuf"
36 -
37 -LICENSE="LGPL-2+"
38 -SLOT="2"
39 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
40 -IUSE="X debug +introspection jpeg jpeg2k tiff test"
41 -
42 -COMMON_DEPEND="
43 - >=dev-libs/glib-2.37.6:2[${MULTILIB_USEDEP}]
44 - >=media-libs/libpng-1.4:0=[${MULTILIB_USEDEP}]
45 - introspection? ( >=dev-libs/gobject-introspection-0.9.3:= )
46 - jpeg? ( virtual/jpeg:0=[${MULTILIB_USEDEP}] )
47 - jpeg2k? ( media-libs/jasper:=[${MULTILIB_USEDEP}] )
48 - tiff? ( >=media-libs/tiff-3.9.2:0=[${MULTILIB_USEDEP}] )
49 - X? ( x11-libs/libX11[${MULTILIB_USEDEP}] )
50 -"
51 -DEPEND="${COMMON_DEPEND}
52 - >=dev-util/gtk-doc-am-1.20
53 - >=sys-devel/gettext-0.19
54 - virtual/pkgconfig
55 -"
56 -# librsvg blocker is for the new pixbuf loader API, you lose icons otherwise
57 -RDEPEND="${COMMON_DEPEND}
58 - !<gnome-base/gail-1000
59 - !<gnome-base/librsvg-2.31.0
60 - !<x11-libs/gtk+-2.21.3:2
61 - !<x11-libs/gtk+-2.90.4:3
62 -"
63 -
64 -MULTILIB_CHOST_TOOLS=(
65 - /usr/bin/gdk-pixbuf-query-loaders
66 -)
67 -
68 -src_prepare() {
69 - # See https://bugzilla.gnome.org/show_bug.cgi?id=756590
70 - epatch "${FILESDIR}"/${PN}-2.32.3-fix-lowmem-uclibc.patch
71 -
72 - # This will avoid polluting the pkg-config file with versioned libpng,
73 - # which is causing problems with libpng14 -> libpng15 upgrade
74 - # See upstream bug #667068
75 - # First check that the pattern is present, to catch upstream changes on bumps,
76 - # because sed doesn't return failure code if it doesn't do any replacements
77 - grep -q 'l in libpng16' configure || die "libpng check order has changed upstream"
78 - sed -e 's:l in libpng16:l in libpng libpng16:' -i configure || die
79 - [[ ${CHOST} == *-solaris* ]] && append-libs intl
80 -
81 - gnome2_src_prepare
82 -}
83 -
84 -multilib_src_configure() {
85 - # png always on to display icons
86 - ECONF_SOURCE="${S}" \
87 - gnome2_src_configure \
88 - $(usex debug --enable-debug=yes "") \
89 - $(use_with jpeg libjpeg) \
90 - $(use_with jpeg2k libjasper) \
91 - $(use_with tiff libtiff) \
92 - $(multilib_native_use_enable introspection) \
93 - $(use_with X x11) \
94 - --with-libpng
95 -
96 - # work-around gtk-doc out-of-source brokedness
97 - if multilib_is_native_abi; then
98 - ln -s "${S}"/docs/reference/${PN}/html docs/reference/${PN}/html || die
99 - fi
100 -}
101 -
102 -multilib_src_install() {
103 - # Parallel install fails when no gdk-pixbuf is already installed, bug #481372
104 - MAKEOPTS="${MAKEOPTS} -j1" gnome2_src_install
105 -}
106 -
107 -pkg_preinst() {
108 - gnome2_pkg_preinst
109 -
110 - multilib_pkg_preinst() {
111 - # Make sure loaders.cache belongs to gdk-pixbuf alone
112 - local cache="usr/$(get_libdir)/${PN}-2.0/2.10.0/loaders.cache"
113 -
114 - if [[ -e ${EROOT}${cache} ]]; then
115 - cp "${EROOT}"${cache} "${ED}"/${cache} || die
116 - else
117 - touch "${ED}"/${cache} || die
118 - fi
119 - }
120 -
121 - multilib_foreach_abi multilib_pkg_preinst
122 -}
123 -
124 -pkg_postinst() {
125 - # causes segfault if set, see bug 375615
126 - unset __GL_NO_DSO_FINALIZER
127 -
128 - multilib_foreach_abi gnome2_pkg_postinst
129 -
130 - # Migration snippet for when this was handled by gtk+
131 - if [ -e "${EROOT}"usr/lib/gtk-2.0/2.*/loaders ]; then
132 - elog "You need to rebuild ebuilds that installed into" "${EROOT}"usr/lib/gtk-2.0/2.*/loaders
133 - elog "to do that you can use qfile from portage-utils:"
134 - elog "emerge -va1 \$(qfile -qC ${EPREFIX}/usr/lib/gtk-2.0/2.*/loaders)"
135 - fi
136 -}
137 -
138 -pkg_postrm() {
139 - gnome2_pkg_postrm
140 -
141 - if [[ -z ${REPLACED_BY_VERSION} ]]; then
142 - rm -f "${EROOT}"usr/lib*/${PN}-2.0/2.10.0/loaders.cache
143 - fi
144 -}
145
146 diff --git a/x11-libs/gdk-pixbuf/gdk-pixbuf-9999.ebuild b/x11-libs/gdk-pixbuf/gdk-pixbuf-9999.ebuild
147 index faa412ea..09f42ea4 100644
148 --- a/x11-libs/gdk-pixbuf/gdk-pixbuf-9999.ebuild
149 +++ b/x11-libs/gdk-pixbuf/gdk-pixbuf-9999.ebuild
150 @@ -1,12 +1,10 @@
151 -# Copyright 1999-2016 Gentoo Foundation
152 +# Copyright 1999-2017 Gentoo Foundation
153 # Distributed under the terms of the GNU General Public License v2
154 -# $Id$
155
156 -EAPI="5"
157 -GCONF_DEBUG="no"
158 +EAPI=6
159 GNOME2_LA_PUNT="yes"
160
161 -inherit eutils flag-o-matic gnome2 multilib libtool multilib-minimal
162 +inherit flag-o-matic gnome2 multilib multilib-minimal
163 if [[ ${PV} = 9999 ]]; then
164 inherit gnome2-live
165 fi
166 @@ -19,12 +17,12 @@ SLOT="2"
167 if [[ ${PV} = 9999 ]]; then
168 KEYWORDS=""
169 else
170 - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
171 + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
172 fi
173 IUSE="X debug +introspection jpeg jpeg2k tiff test"
174
175 COMMON_DEPEND="
176 - >=dev-libs/glib-2.37.6:2[${MULTILIB_USEDEP}]
177 + >=dev-libs/glib-2.48.0:2[${MULTILIB_USEDEP}]
178 >=media-libs/libpng-1.4:0=[${MULTILIB_USEDEP}]
179 introspection? ( >=dev-libs/gobject-introspection-0.9.3:= )
180 jpeg? ( virtual/jpeg:0=[${MULTILIB_USEDEP}] )
181 @@ -46,12 +44,12 @@ RDEPEND="${COMMON_DEPEND}
182 "
183
184 MULTILIB_CHOST_TOOLS=(
185 - /usr/bin/gdk-pixbuf-query-loaders
186 + /usr/bin/gdk-pixbuf-query-loaders$(get_exeext)
187 )
188
189 src_prepare() {
190 # See https://bugzilla.gnome.org/show_bug.cgi?id=756590
191 - epatch "${FILESDIR}"/${PN}-2.32.3-fix-lowmem-uclibc.patch
192 + eapply "${FILESDIR}"/${PN}-2.32.3-fix-lowmem-uclibc.patch
193
194 # This will avoid polluting the pkg-config file with versioned libpng,
195 # which is causing problems with libpng14 -> libpng15 upgrade
196
197 diff --git a/x11-libs/gdk-pixbuf/metadata.xml b/x11-libs/gdk-pixbuf/metadata.xml
198 index 39980802..6c6d2ea4 100644
199 --- a/x11-libs/gdk-pixbuf/metadata.xml
200 +++ b/x11-libs/gdk-pixbuf/metadata.xml
201 @@ -5,4 +5,7 @@
202 <email>gnome@g.o</email>
203 <name>Gentoo GNOME Desktop</name>
204 </maintainer>
205 +<use>
206 + <flag name="X">Build and install the legacy gdk_pixbuf_xlib-2.0 library</flag>
207 +</use>
208 </pkgmetadata>