Gentoo Archives: gentoo-commits

From: Mart Raudsepp <leio@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-libs/gdk-pixbuf/
Date: Mon, 09 Sep 2019 06:31:40
Message-Id: 1568010647.b6071db04cfd06874fa3e68aa1bc70900756aa11.leio@gentoo
1 commit: b6071db04cfd06874fa3e68aa1bc70900756aa11
2 Author: Mart Raudsepp <leio <AT> gentoo <DOT> org>
3 AuthorDate: Mon Sep 9 06:07:50 2019 +0000
4 Commit: Mart Raudsepp <leio <AT> gentoo <DOT> org>
5 CommitDate: Mon Sep 9 06:30:47 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b6071db0
7
8 x11-libs/gdk-pixbuf: bump to 2.38.2, EAPI-7 port
9
10 Package-Manager: Portage-2.3.69, Repoman-2.3.12
11 Signed-off-by: Mart Raudsepp <leio <AT> gentoo.org>
12
13 x11-libs/gdk-pixbuf/Manifest | 1 +
14 x11-libs/gdk-pixbuf/gdk-pixbuf-2.38.2.ebuild | 143 +++++++++++++++++++++++++++
15 2 files changed, 144 insertions(+)
16
17 diff --git a/x11-libs/gdk-pixbuf/Manifest b/x11-libs/gdk-pixbuf/Manifest
18 index e3a4ca41f45..91a8405286f 100644
19 --- a/x11-libs/gdk-pixbuf/Manifest
20 +++ b/x11-libs/gdk-pixbuf/Manifest
21 @@ -1,3 +1,4 @@
22 DIST gdk-pixbuf-2.36.12-bug753605-atsize.jpg 80850 BLAKE2B 17e414ca097b7aaf513241eacae97c5bc582f7ebd8870e8b67ce4af4e57134b8b4ae0ed579eb4cf0f57db2891e95a673d2129a1bafefe5ab8e2a8dd5f66da271 SHA512 d27197d2395446cd3c970841381958f7eb1b8df78913f7da70bec5f09af6edfc5dd74cd809c37ec8cf69f0eba504e0cc6354f1ec6ce3ec2192ad316cb64b69c9
23 DIST gdk-pixbuf-2.36.12.tar.xz 5675768 BLAKE2B da9e18b5dc55ad13a1bdab76d9c63a6233da1b45235ae5eb620e6e3f83888a0cc846f1ba17f72cb3b5af1ccd59a69631b3403bf09e262c53e0149e6f26896a33 SHA512 5d3bd620cf464bf92079b15c78f8400db48c427053c6eeedc4ea9652a4c290a09a26310100cc7eb487daf4b565df9f7e3a6edf14685f81ddbff6a0652fb6b41b
24 DIST gdk-pixbuf-2.38.1.tar.xz 5509328 BLAKE2B 9180e833b264e4eb1bec1ec92e6ee7cb07a208459a7b58da9edd3f1872cdc1a98a6d7c27a147674d5dbded1b74098a4b1f197479c7addd1a6b307ced82a2e4dd SHA512 e50badaad2ccb3c816ba0849be386ecb75ea3c7df203d0b0144541c463ad1ace86c0d190b7550e3f59f0cba9639acc5cc048b7127484287894e4df6d62777920
25 +DIST gdk-pixbuf-2.38.2.tar.xz 5509752 BLAKE2B f78ba049edc7b1a6c909746ec68948764b3602988e110ee2ad752d26d8b3a37c3f2957a91d3c8a5fe3455cf11b477eaa43d097554048e8988c563b4074bfd751 SHA512 b0f83cca9bfbe45dab200b19a5ec6231b628c09633fd41348f433c226d523c2f9b805d41e4d955e9fd65c5b6d24df59c7c94193032379d6f09b0472ae988a0c1
26
27 diff --git a/x11-libs/gdk-pixbuf/gdk-pixbuf-2.38.2.ebuild b/x11-libs/gdk-pixbuf/gdk-pixbuf-2.38.2.ebuild
28 new file mode 100644
29 index 00000000000..35bdc66994e
30 --- /dev/null
31 +++ b/x11-libs/gdk-pixbuf/gdk-pixbuf-2.38.2.ebuild
32 @@ -0,0 +1,143 @@
33 +# Copyright 1999-2019 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +
38 +inherit gnome.org gnome2-utils meson multilib multilib-minimal xdg
39 +
40 +DESCRIPTION="Image loading library for GTK+"
41 +HOMEPAGE="https://git.gnome.org/browse/gdk-pixbuf"
42 +
43 +LICENSE="LGPL-2+"
44 +SLOT="2"
45 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
46 +IUSE="X gtk-doc +introspection jpeg tiff"
47 +
48 +# TODO: For windows/darwin support: shared-mime-info conditional, native_windows_loaders option review
49 +DEPEND="
50 + >=dev-libs/glib-2.48.0:2[${MULTILIB_USEDEP}]
51 + x11-misc/shared-mime-info
52 + >=media-libs/libpng-1.4:0=[${MULTILIB_USEDEP}]
53 + jpeg? ( virtual/jpeg:0=[${MULTILIB_USEDEP}] )
54 + tiff? ( >=media-libs/tiff-3.9.2:0=[${MULTILIB_USEDEP}] )
55 + X? ( x11-libs/libX11[${MULTILIB_USEDEP}] )
56 + introspection? ( >=dev-libs/gobject-introspection-1.54:= )
57 +"
58 +# librsvg blocker is for the new pixbuf loader API, you lose icons otherwise
59 +RDEPEND="${DEPEND}
60 + !<gnome-base/gail-1000
61 + !<gnome-base/librsvg-2.31.0
62 + !<x11-libs/gtk+-2.21.3:2
63 + !<x11-libs/gtk+-2.90.4:3
64 +"
65 +DEPEND="
66 + app-text/docbook-xsl-stylesheets
67 + dev-libs/libxslt
68 + dev-util/glib-utils
69 + gtk-doc? ( >=dev-util/gtk-doc-1.20
70 + app-text/docbook-xml-dtd:4.3 )
71 + >=sys-devel/gettext-0.19.8
72 + virtual/pkgconfig
73 +"
74 +
75 +MULTILIB_CHOST_TOOLS=(
76 + /usr/bin/gdk-pixbuf-query-loaders$(get_exeext)
77 +)
78 +
79 +PATCHES=(
80 + # Do not run lowmem test on uclibc
81 + # See https://bugzilla.gnome.org/show_bug.cgi?id=756590
82 + "${FILESDIR}"/${PN}-2.32.3-fix-lowmem-uclibc.patch
83 +)
84 +
85 +src_prepare() {
86 + xdg_src_prepare
87 + # This will avoid polluting the pkg-config file with versioned libpng,
88 + # which is causing problems with libpng14 -> libpng15 upgrade
89 + # See upstream bug #667068
90 + # First check that the pattern is present, to catch upstream changes on bumps,
91 + # because sed doesn't return failure code if it doesn't do any replacements
92 + grep -q "foreach png: \[ 'libpng16', 'libpng15', 'libpng14', 'libpng13', 'libpng12', 'libpng10' \]" meson.build || die "libpng check order has changed upstream"
93 + sed -e "s/foreach png: \[ 'libpng16', 'libpng15', 'libpng14', 'libpng13', 'libpng12', 'libpng10' \]/foreach png: \[ 'libpng', 'libpng16', 'libpng15', 'libpng14', 'libpng13', 'libpng12', 'libpng10' \]/" -i meson.build || die
94 +}
95 +
96 +multilib_src_configure() {
97 + local emesonargs=(
98 + -Dpng=true
99 + $(meson_use tiff)
100 + $(meson_use jpeg)
101 + -Djasper=false
102 + $(meson_use X x11)
103 + -Dbuiltin_loaders=png
104 + -Drelocatable=false
105 + #native_windows_loaders
106 + -Dinstalled_tests=false
107 + -Dgio_sniffing=true
108 + )
109 + if multilib_is_native_abi; then
110 + emesonargs+=(
111 + $(meson_use gtk-doc docs)
112 + $(meson_use introspection gir)
113 + -Dman=true
114 + )
115 + else
116 + emesonargs+=(
117 + -Ddocs=false
118 + -Dgir=false
119 + -Dman=false
120 + )
121 + fi
122 + meson_src_configure
123 +}
124 +
125 +multilib_src_compile() {
126 + meson_src_compile
127 +}
128 +
129 +multilib_src_test() {
130 + meson_src_test
131 +}
132 +
133 +multilib_src_install() {
134 + meson_src_install
135 +}
136 +
137 +pkg_preinst() {
138 + xdg_pkg_preinst
139 +
140 + multilib_pkg_preinst() {
141 + # Make sure loaders.cache belongs to gdk-pixbuf alone
142 + local cache="usr/$(get_libdir)/${PN}-2.0/2.10.0/loaders.cache"
143 +
144 + if [[ -e ${EROOT}/${cache} ]]; then
145 + cp "${EROOT}"/${cache} "${ED}"/${cache} || die
146 + else
147 + touch "${ED}"/${cache} || die
148 + fi
149 + }
150 +
151 + multilib_foreach_abi multilib_pkg_preinst
152 +}
153 +
154 +pkg_postinst() {
155 + # causes segfault if set, see bug 375615
156 + unset __GL_NO_DSO_FINALIZER
157 +
158 + xdg_pkg_postinst
159 + multilib_foreach_abi gnome2_gdk_pixbuf_update
160 +
161 + # Migration snippet for when this was handled by gtk+
162 + if [ -e "${EROOT}"/usr/lib/gtk-2.0/2.*/loaders ]; then
163 + elog "You need to rebuild ebuilds that installed into" "${EROOT}"/usr/lib/gtk-2.0/2.*/loaders
164 + elog "to do that you can use qfile from portage-utils:"
165 + elog "emerge -va1 \$(qfile -qC ${EPREFIX}/usr/lib/gtk-2.0/2.*/loaders)"
166 + fi
167 +}
168 +
169 +pkg_postrm() {
170 + xdg_pkg_postrm
171 +
172 + if [[ -z ${REPLACED_BY_VERSION} ]]; then
173 + rm -f "${EROOT}"/usr/lib*/${PN}-2.0/2.10.0/loaders.cache
174 + fi
175 +}