# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/games-kids/stickers/stickers-0.1.3-r2.ebuild,v 1.1 2007/05/30 05:55:05 tupone Exp $ inherit eutils DESCRIPTION="Stickers Book for small children" HOMEPAGE="http://users.powernet.co.uk/kienzle/stickers/" SRC_URI="http://users.powernet.co.uk/kienzle/stickers/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~ppc ~x86" IUSE="nls" RDEPEND="media-libs/imlib x11-libs/libXext x11-libs/libX11 x11-libs/libXi =x11-libs/gtk+-1.2* nls? ( virtual/libintl )" DEPEND="${RDEPEND} x11-proto/xextproto x11-proto/xproto nls? ( sys-devel/gettext )" src_unpack() { unpack ${A} # gcc34 fix? (bug #72734) sed -i \ -e '/ONTRACE/d' "${S}/rc.c" \ || die "sed failed" } src_compile() { local myconf use nls || myconf="${myconf} --disable-nls" ./configure \ --prefix=/usr \ --infodir=/usr/share/info \ --mandir=/usr/share/man \ ${myconf} || die "configure failed" emake || die "emake failed" } src_install () { make \ prefix="${D}/usr" \ infodir="${D}/usr/share/info" \ mandir="${D}/usr/share/man" install \ || die "make install failed" newicon scenes/Aquarium.scene.xpm ${PN}.xpm make_desktop_entry ${PN} Stickers ${PN}.xpm }