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