# Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/gpe-base/libgpewidget/libgpewidget-0.117-r1.ebuild,v 1.7 2011/05/15 22:21:30 miknix Exp $ EAPI=2 GPE_TARBALL_SUFFIX="bz2" inherit gpe autotools DESCRIPTION="A collection of widgets and other common code shared by many GPE applications." LICENSE="LGPL-2" SLOT="0" KEYWORDS="amd64 arm x86" IUSE="+cairo" RDEPEND="${RDEPEND} x11-libs/gtk+:2 media-libs/libpng cairo? ( x11-libs/cairo[X] x11-libs/pango[X] ) " DEPEND="${RDEPEND} >=gpe-base/gpe-icons-0.25 sys-devel/gettext x11-proto/kbproto x11-proto/renderproto x11-proto/xproto " GPE_DOCS="ChangeLog" GPECONF="$(use_enable cairo)" src_prepare() { # Fix underlinking, bug #367421 sed -i -e 's/^infoprint_LDADD =/infoprint_LDADD = -lX11/' Makefile.am \ || die 'Failed to sed Makefile.am' eautomake }