# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/games-board/openyahtzee/openyahtzee-1.8.ebuild,v 1.2 2008/02/29 19:01:35 carlo Exp $ inherit eutils wxwidgets games MY_PN=OpenYahtzee MY_P=${MY_PN}-${PV} DESCRIPTION="A full-featured wxWidgets version of the classic dice game Yahtzee" HOMEPAGE="http://openyahtzee.sourceforge.net" SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="" DEPEND="=x11-libs/wxGTK-2.6* =dev-db/sqlite-3*" S=${WORKDIR}/${MY_PN} pkg_setup() { games_pkg_setup WX_GTK_VER=2.6 need-wxwidgets unicode } src_unpack() { unpack ${A} cd "${S}" sed -i "s:wx-config:${WX_CONFIG}:" src/Makefile.in || die "sed failed" } src_install() { emake DESTDIR="${D}" install || die "emake install failed" dodoc AUTHORS ChangeLog TODO newicon src/five.xpm ${PN}.xpm make_desktop_entry ${PN} "OpenYahtzee" ${PN} prepgamesdirs }