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 (-10 / +34 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 48-67 Link Here
48
	elibtoolize # for Darwin modules, bug #????
48
	elibtoolize # for Darwin modules, bug #????
49
}
49
}
50
50
51
src_configure() {
51
multilib_src_configure() {
52
	# png always on to display icons
52
	# png always on to display icons
53
	ECONF_SOURCE="${S}" \
53
	econf \
54
	econf \
54
		$(usex debug --enable-debug=yes "") \
55
		$(usex debug --enable-debug=yes "") \
55
		$(use_with jpeg libjpeg) \
56
		$(use_with jpeg libjpeg) \
56
		$(use_with jpeg2k libjasper) \
57
		$(use_with jpeg2k libjasper) \
57
		$(use_with tiff libtiff) \
58
		$(use_with tiff libtiff) \
58
		$(use_enable introspection) \
59
		$(multilib_is_native_abi \
60
			&& use_enable introspection \
61
			|| echo --disable-introspection) \
59
		$(use_with X x11) \
62
		$(use_with X x11) \
60
		--with-libpng
63
		--with-libpng
61
}
64
}
62
65
63
src_install() {
66
multilib_src_install() {
64
	default
67
	default
68
	if ! multilib_is_native_abi && [[ ${ABI} == x86 ]]; then
69
		mv "${D}"/usr/bin/gdk-pixbuf-query-loaders{,-32} || die
70
	fi
71
}
72
73
multilib_src_install_all() {
65
	prune_libtool_files --modules
74
	prune_libtool_files --modules
66
}
75
}
67
76
Lines 75-80 Link Here
75
84
76
	gnome2_gdk_pixbuf_update
85
	gnome2_gdk_pixbuf_update
77
86
87
	if has x86 $(multilib_get_enabled_abis) && has amd64 $(multilib_get_enabled_abis); then
88
		local tmp_file=$(mktemp --suffix=tmp.XXXXXXXXXXgdk_pixbuf_queryloaders)
89
		if [ -z "${tmp_file}" ]; then
90
			ewarn "Cannot create temporary file"
91
			return 1
92
		fi
93
94
		if gdk-pixbuf-query-loaders-32 > "${tmp_file}"; then
95
			cat "${tmp_file}" > "${ROOT}usr/lib32/gdk-pixbuf-2.0/2.10.0/loaders.cache"
96
		else
97
			ewarn "Warning, gdk-pixbuf-query-loaders-32 failed."
98
		fi
99
		rm "${tmp_file}"
100
	fi
101
78
	# Migration snippet for when this was handled by gtk+
102
	# Migration snippet for when this was handled by gtk+
79
	if [ -e "${EROOT}"usr/lib/gtk-2.0/2.*/loaders ]; then
103
	if [ -e "${EROOT}"usr/lib/gtk-2.0/2.*/loaders ]; then
80
		elog "You need to rebuild ebuilds that installed into" "${EROOT}"usr/lib/gtk-2.0/2.*/loaders
104
		elog "You need to rebuild ebuilds that installed into" "${EROOT}"usr/lib/gtk-2.0/2.*/loaders

Return to bug 488998