summaryrefslogtreecommitdiff
blob: 39d5788d2bfc3b273ebf5b52de6eeca531e021b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Copyright 1999-2007 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.1 2007/10/31 06:52:51 tupone 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}.xpm

	prepgamesdirs
}