/[gentoo-x86]/x11-libs/gdk-pixbuf/gdk-pixbuf-2.24.1-r1.ebuild
Gentoo

Contents of /x11-libs/gdk-pixbuf/gdk-pixbuf-2.24.1-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.12 - (hide annotations) (download)
Sat Nov 10 05:54:13 2012 UTC (22 months, 1 week ago) by tetromino
Branch: MAIN
Changes since 1.11: +5 -9 lines
Version bump, fixes crashes with >glib-2.35. Drop useless USE=doc, it only regenerated documentation. Update license. Drop old.

(Portage version: 2.2.0_alpha142/cvs/Linux x86_64, signed Manifest commit with key CF0ADD61)

1 tetromino 1.1 # Copyright 1999-2012 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 tetromino 1.12 # $Header: /var/cvsroot/gentoo-x86/x11-libs/gdk-pixbuf/gdk-pixbuf-2.24.1-r1.ebuild,v 1.11 2012/09/18 09:44:29 tetromino Exp $
4 tetromino 1.1
5     EAPI="4"
6    
7     inherit eutils gnome.org multilib libtool autotools
8    
9     DESCRIPTION="Image loading library for GTK+"
10     HOMEPAGE="http://www.gtk.org/"
11    
12 tetromino 1.12 LICENSE="LGPL-2+"
13 tetromino 1.1 SLOT="2"
14 halcy0n 1.10 KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sh sparc x86 ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
15 tetromino 1.12 IUSE="+X debug +introspection jpeg jpeg2k tiff test"
16 tetromino 1.1
17     COMMON_DEPEND="
18     >=dev-libs/glib-2.27.2:2
19     >=media-libs/libpng-1.4:0
20     introspection? ( >=dev-libs/gobject-introspection-0.9.3 )
21     jpeg? ( virtual/jpeg )
22     jpeg2k? ( media-libs/jasper )
23     tiff? ( >=media-libs/tiff-3.9.2:0 )
24     X? ( x11-libs/libX11 )"
25     DEPEND="${COMMON_DEPEND}
26 tetromino 1.12 >=dev-util/gtk-doc-am-1.11
27 tetromino 1.1 >=sys-devel/gettext-0.17
28 tetromino 1.12 virtual/pkgconfig"
29 tetromino 1.1 # librsvg blocker is for the new pixbuf loader API, you lose icons otherwise
30     RDEPEND="${COMMON_DEPEND}
31     !<gnome-base/gail-1000
32     !<gnome-base/librsvg-2.31.0
33     !<x11-libs/gtk+-2.21.3:2
34     !<x11-libs/gtk+-2.90.4:3"
35    
36     src_prepare() {
37     # This will avoid polluting the pkg-config file with versioned libpng,
38     # which is causing problems with libpng14 -> libpng15 upgrade
39     # See upstream bug #667068
40     sed -i -e 's:libpng15:libpng libpng15:' configure.ac || die
41     # Backport from 2.26.1, fixes xbm loader overflow
42     epatch "${FILESDIR}/${P}-xbm-overflow.patch"
43     eautoreconf
44     }
45    
46     src_configure() {
47     # png always on to display icons (foser)
48     local myconf="
49     $(use_with jpeg libjpeg)
50     $(use_with jpeg2k libjasper)
51     $(use_with tiff libtiff)
52     $(use_enable introspection)
53     $(use_with X x11)
54     --with-libpng"
55    
56     # Passing --disable-debug is not recommended for production use
57     use debug && myconf="${myconf} --enable-debug=yes"
58    
59     econf ${myconf}
60     }
61    
62     src_install() {
63     emake DESTDIR="${D}" install
64     dodoc AUTHORS NEWS* README*
65    
66     # New library, remove .la files
67     find "${D}" -name '*.la' -exec rm -f '{}' + || die
68     }
69    
70     pkg_postinst() {
71     # causes segfault if set, see bug 375615
72     unset __GL_NO_DSO_FINALIZER
73    
74 tetromino 1.11 tmp_file=$(mktemp -t tmp_gdk_pixbuf_ebuild.XXXXXXXXXX)
75 tetromino 1.1 # be atomic!
76     gdk-pixbuf-query-loaders > "${tmp_file}"
77     if [ "${?}" = "0" ]; then
78     cat "${tmp_file}" > "${EROOT}usr/$(get_libdir)/gdk-pixbuf-2.0/2.10.0/loaders.cache"
79     else
80     ewarn "Cannot update loaders.cache, gdk-pixbuf-query-loaders failed to run"
81     fi
82     rm "${tmp_file}"
83    
84     if [ -e "${EROOT}"usr/lib/gtk-2.0/2.*/loaders ]; then
85     elog "You need to rebuild ebuilds that installed into" "${EROOT}"usr/lib/gtk-2.0/2.*/loaders
86     elog "to do that you can use qfile from portage-utils:"
87     elog "emerge -va1 \$(qfile -qC ${EPREFIX}/usr/lib/gtk-2.0/2.*/loaders)"
88     fi
89     }

  ViewVC Help
Powered by ViewVC 1.1.20