# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils games DESCRIPTION="Picpuz is a Linux jigsaw puzzle program." HOMEPAGE="http://kornelix.squarespace.com/picpuz/" SRC_URI="http://kornelix.squarespace.com/storage/picpuz/${PN}.04.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="x86" IUSE="" DEPEND=">=x11-libs/gtk+-2.8 sys-apps/sed" RDEPEND=">=x11-libs/gtk+-2.8" S=${WORKDIR} src_compile() { sed -i -e 's:\-O3\ \-Wall:${CXXFLAGS}:' picpuz-build.sh || die "sed failed" ./picpuz-build.sh || die "build failed" } src_install() { exeinto /usr/games/bin/ doexe ${PN}.x || die "doexe failed" doicon ${PN}-icon.png dodoc ${PN}-guide.pdf make_desktop_entry ${PN}.x "Picpuz" ${PN}-icon.png prepgamesdirs }