Gentoo Archives: gentoo-commits

From: "Michal Gorny (mgorny)" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in x11-libs/gdk-pixbuf: gdk-pixbuf-2.30.5-r1.ebuild ChangeLog
Date: Sat, 01 Mar 2014 10:20:18
Message-Id: 20140301102014.E1A782004C@flycatcher.gentoo.org
1 mgorny 14/03/01 10:20:14
2
3 Modified: ChangeLog
4 Added: gdk-pixbuf-2.30.5-r1.ebuild
5 Log:
6 Introduce multilib support, bug #488998.
7
8 (Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key EFB4464E!)
9
10 Revision Changes Path
11 1.101 x11-libs/gdk-pixbuf/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/gdk-pixbuf/ChangeLog?rev=1.101&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/gdk-pixbuf/ChangeLog?rev=1.101&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/gdk-pixbuf/ChangeLog?r1=1.100&r2=1.101
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/x11-libs/gdk-pixbuf/ChangeLog,v
20 retrieving revision 1.100
21 retrieving revision 1.101
22 diff -u -r1.100 -r1.101
23 --- ChangeLog 22 Feb 2014 22:42:10 -0000 1.100
24 +++ ChangeLog 1 Mar 2014 10:20:14 -0000 1.101
25 @@ -1,6 +1,11 @@
26 # ChangeLog for x11-libs/gdk-pixbuf
27 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/x11-libs/gdk-pixbuf/ChangeLog,v 1.100 2014/02/22 22:42:10 pacho Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/x11-libs/gdk-pixbuf/ChangeLog,v 1.101 2014/03/01 10:20:14 mgorny Exp $
30 +
31 +*gdk-pixbuf-2.30.5-r1 (01 Mar 2014)
32 +
33 + 01 Mar 2014; Michał Górny <mgorny@g.o> +gdk-pixbuf-2.30.5-r1.ebuild:
34 + Introduce multilib support, bug #488998.
35
36 22 Feb 2014; Pacho Ramos <pacho@g.o> gdk-pixbuf-2.30.5.ebuild:
37 Fix wrong commit, bug 502160
38
39
40
41 1.1 x11-libs/gdk-pixbuf/gdk-pixbuf-2.30.5-r1.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/gdk-pixbuf/gdk-pixbuf-2.30.5-r1.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/gdk-pixbuf/gdk-pixbuf-2.30.5-r1.ebuild?rev=1.1&content-type=text/plain
45
46 Index: gdk-pixbuf-2.30.5-r1.ebuild
47 ===================================================================
48 # Copyright 1999-2014 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/x11-libs/gdk-pixbuf/gdk-pixbuf-2.30.5-r1.ebuild,v 1.1 2014/03/01 10:20:14 mgorny Exp $
51
52 EAPI="5"
53
54 inherit eutils gnome.org gnome2-utils multilib libtool multilib-minimal
55
56 DESCRIPTION="Image loading library for GTK+"
57 HOMEPAGE="http://www.gtk.org/"
58
59 LICENSE="LGPL-2+"
60 SLOT="2"
61 KEYWORDS="~alpha ~amd64 ~arm ~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"
62 IUSE="+X debug +introspection jpeg jpeg2k tiff test"
63
64 COMMON_DEPEND="
65 >=dev-libs/glib-2.37.6:2[${MULTILIB_USEDEP}]
66 >=media-libs/libpng-1.4:0=[${MULTILIB_USEDEP}]
67 introspection? ( >=dev-libs/gobject-introspection-0.9.3 )
68 jpeg? ( virtual/jpeg:0=[${MULTILIB_USEDEP}] )
69 jpeg2k? ( media-libs/jasper:=[${MULTILIB_USEDEP}] )
70 tiff? ( >=media-libs/tiff-3.9.2:0=[${MULTILIB_USEDEP}] )
71 X? ( x11-libs/libX11[${MULTILIB_USEDEP}] )
72 "
73 DEPEND="${COMMON_DEPEND}
74 >=dev-util/gtk-doc-am-1.20
75 >=sys-devel/gettext-0.17
76 virtual/pkgconfig
77 "
78 # librsvg blocker is for the new pixbuf loader API, you lose icons otherwise
79 RDEPEND="${COMMON_DEPEND}
80 !<gnome-base/gail-1000
81 !<gnome-base/librsvg-2.31.0
82 !<x11-libs/gtk+-2.21.3:2
83 !<x11-libs/gtk+-2.90.4:3
84 abi_x86_32? (
85 !<=app-emulation/emul-linux-x86-gtklibs-20131008-r2
86 !app-emulation/emul-linux-x86-gtklibs[-abi_x86_32(-)]
87 )
88 "
89
90 MULTILIB_CHOST_TOOLS=(
91 /usr/bin/gdk-pixbuf-query-loaders
92 )
93
94 src_prepare() {
95 # This will avoid polluting the pkg-config file with versioned libpng,
96 # which is causing problems with libpng14 -> libpng15 upgrade
97 # See upstream bug #667068
98 # First check that the pattern is present, to catch upstream changes on bumps,
99 # because sed doesn't return failure code if it doesn't do any replacements
100 grep -q 'l in libpng16' configure || die "libpng check order has changed upstream"
101 sed -e 's:l in libpng16:l in libpng libpng16:' -i configure || die
102 default
103 elibtoolize # for Darwin modules, bug #???
104 }
105
106 multilib_src_configure() {
107 # png always on to display icons
108 ECONF_SOURCE="${S}" \
109 econf \
110 $(usex debug --enable-debug=yes "") \
111 $(use_with jpeg libjpeg) \
112 $(use_with jpeg2k libjasper) \
113 $(use_with tiff libtiff) \
114 $(multilib_build_binaries \
115 && use_enable introspection \
116 || echo --disable-introspection) \
117 $(use_with X x11) \
118 --with-libpng
119 }
120
121 multilib_src_install() {
122 # Parallel install fails when no gdk-pixbuf is already installed, bug #481372
123 emake -j1 DESTDIR="${D}" install
124 }
125
126 multilib_src_install_all() {
127 einstalldocs
128 prune_libtool_files --modules
129 }
130
131 pkg_preinst() {
132 gnome2_gdk_pixbuf_savelist
133
134 multilib_pkg_preinst() {
135 # Make sure loaders.cache belongs to gdk-pixbuf alone
136 local cache="usr/$(get_libdir)/${PN}-2.0/2.10.0/loaders.cache"
137
138 if [[ -e ${EROOT}${cache} ]]; then
139 cp "${EROOT}"${cache} "${ED}"/${cache} || die
140 else
141 touch "${ED}"/${cache} || die
142 fi
143 }
144
145 multilib_foreach_abi multilib_pkg_preinst
146 }
147
148 pkg_postinst() {
149 # causes segfault if set, see bug 375615
150 unset __GL_NO_DSO_FINALIZER
151
152 multilib_foreach_abi gnome2_gdk_pixbuf_update
153
154 # Migration snippet for when this was handled by gtk+
155 if [ -e "${EROOT}"usr/lib/gtk-2.0/2.*/loaders ]; then
156 elog "You need to rebuild ebuilds that installed into" "${EROOT}"usr/lib/gtk-2.0/2.*/loaders
157 elog "to do that you can use qfile from portage-utils:"
158 elog "emerge -va1 \$(qfile -qC ${EPREFIX}/usr/lib/gtk-2.0/2.*/loaders)"
159 fi
160 }
161
162 pkg_postrm() {
163 if [[ -z ${REPLACED_BY_VERSIONS} ]]; then
164 rm -f "${EROOT}"usr/lib*/${PN}-2.0/2.10.0/loaders.cache
165 fi
166 }