# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-libs/glib/glib-2.16.5.ebuild,v 1.10 2009/02/15 23:07:23 eva Exp $ inherit gnome.org libtool eutils flag-o-matic DESCRIPTION="The GLib library of C routines" HOMEPAGE="http://www.gtk.org/" LICENSE="LGPL-2" SLOT="2" KEYWORDS=" m68k ppc ppc64" IUSE="debug fam hardened selinux xattr" RDEPEND="virtual/libc virtual/libiconv xattr? ( sys-apps/attr ) fam? ( virtual/fam )" DEPEND="${RDEPEND} >=dev-util/pkgconfig-0.16 >=sys-devel/gettext-0.11" src_unpack() { unpack ${A} cd "${S}" if use ppc64 && use hardened ; then replace-flags -O[2-3] -O1 epatch "${FILESDIR}/glib-2.6.3-testglib-ssp.patch" fi if use ia64 ; then # Only apply for < 4.1 local major=$(gcc-major-version) local minor=$(gcc-minor-version) if (( major < 4 || ( major == 4 && minor == 0 ) )); then epatch "${FILESDIR}/glib-2.10.3-ia64-atomic-ops.patch" fi fi # GNOME bug #538836, fix gio test failure on various arches sed -i -e 's:|\\