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 / +41 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
	local program_prefix=""
53
	if multilib_build_binaries && ! multilib_is_native_abi; then
54
		program_prefix="--program-prefix=${CHOST}-"
55
	fi
52
	# png always on to display icons
56
	# png always on to display icons
57
	ECONF_SOURCE="${S}" \
53
	econf \
58
	econf \
59
		${program_prefix} \
54
		$(usex debug --enable-debug=yes "") \
60
		$(usex debug --enable-debug=yes "") \
55
		$(use_with jpeg libjpeg) \
61
		$(use_with jpeg libjpeg) \
56
		$(use_with jpeg2k libjasper) \
62
		$(use_with jpeg2k libjasper) \
57
		$(use_with tiff libtiff) \
63
		$(use_with tiff libtiff) \
58
		$(use_enable introspection) \
64
		$(multilib_is_native_abi \
65
			&& use_enable introspection \
66
			|| echo --disable-introspection) \
59
		$(use_with X x11) \
67
		$(use_with X x11) \
60
		--with-libpng
68
		--with-libpng
61
}
69
}
62
70
63
src_install() {
71
multilib_src_install() {
64
	default
72
	default
73
	# Even if ! multilib_build_binaries, we still need to install
74
	# gdk-pixbuf-query-loaders for all ABIs.
75
	if ! multilib_build_binaries && ! multilib_is_native_abi; then
76
		mv "${D}"/usr/bin/{,${CHOST}-}gdk-pixbuf-query-loaders
77
	fi
78
}
79
80
multilib_src_install_all() {
65
	prune_libtool_files --modules
81
	prune_libtool_files --modules
66
}
82
}
67
83
Lines 75-80 Link Here
75
91
76
	gnome2_gdk_pixbuf_update
92
	gnome2_gdk_pixbuf_update
77
93
94
	if has x86 $(multilib_get_enabled_abis) && has amd64 $(multilib_get_enabled_abis); then
95
		local tmp_file=$(mktemp --suffix=tmp.XXXXXXXXXXgdk_pixbuf_queryloaders)
96
		if [ -z "${tmp_file}" ]; then
97
			ewarn "Cannot create temporary file"
98
			return 1
99
		fi
100
101
		if i686-pc-linux-gnu-gdk-pixbuf-query-loaders > "${tmp_file}"; then
102
			cat "${tmp_file}" > "${ROOT}usr/lib32/gdk-pixbuf-2.0/2.10.0/loaders.cache"
103
		else
104
			ewarn "Warning, i686-pc-linux-gnu-gdk-pixbuf-query-loaders failed."
105
		fi
106
		rm "${tmp_file}"
107
	fi
108
78
	# Migration snippet for when this was handled by gtk+
109
	# Migration snippet for when this was handled by gtk+
79
	if [ -e "${EROOT}"usr/lib/gtk-2.0/2.*/loaders ]; then
110
	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
111
		elog "You need to rebuild ebuilds that installed into" "${EROOT}"usr/lib/gtk-2.0/2.*/loaders

Return to bug 488998