Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 488998 | Differences between
and this patch

Collapse All | Expand All

(-)gdk-pixbuf-2.28.2.ebuild.orig (-12 / +23 lines)
Lines 4-10 Link Here
4
4
5
EAPI="5"
5
EAPI="5"
6
6
7
inherit gnome.org gnome2-utils multilib libtool
7
inherit gnome.org gnome2-utils multilib libtool multilib-minimal
8
8
9
DESCRIPTION="Image loading library for GTK+"
9
DESCRIPTION="Image loading library for GTK+"
10
HOMEPAGE="http://www.gtk.org/"
10
HOMEPAGE="http://www.gtk.org/"
Lines 15-27 Link Here
15
IUSE="+X debug +introspection jpeg jpeg2k tiff test"
15
IUSE="+X debug +introspection jpeg jpeg2k tiff test"
16
16
17
COMMON_DEPEND="
17
COMMON_DEPEND="
18
	>=dev-libs/glib-2.34.0:2
18
	>=dev-libs/glib-2.34.0:2[${MULTILIB_USEDEP}]
19
	>=media-libs/libpng-1.4:0=
19
	>=media-libs/libpng-1.4:0=[${MULTILIB_USEDEP}]
20
	introspection? ( >=dev-libs/gobject-introspection-0.9.3 )
20
	introspection? ( >=dev-libs/gobject-introspection-0.9.3 )
21
	jpeg? ( virtual/jpeg:0= )
21
	jpeg? ( virtual/jpeg:0=[${MULTILIB_USEDEP}] )
22
	jpeg2k? ( media-libs/jasper:= )
22
	jpeg2k? ( media-libs/jasper:=[${MULTILIB_USEDEP}] )
23
	tiff? ( >=media-libs/tiff-3.9.2:0= )
23
	tiff? ( >=media-libs/tiff-3.9.2:0=[${MULTILIB_USEDEP}] )
24
	X? ( x11-libs/libX11 )
24
	X? ( x11-libs/libX11[${MULTILIB_USEDEP}] )
25
"
25
"
26
DEPEND="${COMMON_DEPEND}
26
DEPEND="${COMMON_DEPEND}
27
	>=dev-util/gtk-doc-am-1.11
27
	>=dev-util/gtk-doc-am-1.11
Lines 36-41 Link Here
36
	!<x11-libs/gtk+-2.90.4:3
36
	!<x11-libs/gtk+-2.90.4:3
37
"
37
"
38
38
39
MULTILIB_CHOST_TOOLS=(
40
	/usr/bin/gdk-pixbuf-query-loaders
41
)
42
39
src_prepare() {
43
src_prepare() {
40
	# This will avoid polluting the pkg-config file with versioned libpng,
44
	# This will avoid polluting the pkg-config file with versioned libpng,
41
	# which is causing problems with libpng14 -> libpng15 upgrade
45
	# which is causing problems with libpng14 -> libpng15 upgrade
Lines 48-67 Link Here
48
	elibtoolize # for Darwin modules, bug #????
52
	elibtoolize # for Darwin modules, bug #????
49
}
53
}
50
54
51
src_configure() {
55
multilib_src_configure() {
52
	# png always on to display icons
56
	# png always on to display icons
57
	ECONF_SOURCE="${S}" \
53
	econf \
58
	econf \
54
		$(usex debug --enable-debug=yes "") \
59
		$(usex debug --enable-debug=yes "") \
55
		$(use_with jpeg libjpeg) \
60
		$(use_with jpeg libjpeg) \
56
		$(use_with jpeg2k libjasper) \
61
		$(use_with jpeg2k libjasper) \
57
		$(use_with tiff libtiff) \
62
		$(use_with tiff libtiff) \
58
		$(use_enable introspection) \
63
		$(multilib_build_binaries \
64
			&& use_enable introspection \
65
			|| echo --disable-introspection) \
59
		$(use_with X x11) \
66
		$(use_with X x11) \
60
		--with-libpng
67
		--with-libpng
61
}
68
}
62
69
63
src_install() {
70
multilib_src_install_all() {
64
	default
65
	prune_libtool_files --modules
71
	prune_libtool_files --modules
66
}
72
}
67
73
Lines 69-79 Link Here
69
	gnome2_gdk_pixbuf_savelist
75
	gnome2_gdk_pixbuf_savelist
70
}
76
}
71
77
78
do_update() {
79
	local GDK_PIXBUF_UPDATE_BIN=/usr/bin/${CHOST}-gdk-pixbuf-query-loaders
80
	gnome2_gdk_pixbuf_update
81
}
82
72
pkg_postinst() {
83
pkg_postinst() {
73
	# causes segfault if set, see bug 375615
84
	# causes segfault if set, see bug 375615
74
	unset __GL_NO_DSO_FINALIZER
85
	unset __GL_NO_DSO_FINALIZER
75
86
76
	gnome2_gdk_pixbuf_update
87
	multilib_foreach_abi do_update
77
88
78
	# Migration snippet for when this was handled by gtk+
89
	# Migration snippet for when this was handled by gtk+
79
	if [ -e "${EROOT}"usr/lib/gtk-2.0/2.*/loaders ]; then
90
	if [ -e "${EROOT}"usr/lib/gtk-2.0/2.*/loaders ]; then

Return to bug 488998