summaryrefslogtreecommitdiff
blob: 39de731d6ad3e1b878e8ba763766faf967cbcdd3 (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
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-kids/memonix-bin/memonix-bin-1.6.ebuild,v 1.2 2007/06/12 13:03:46 nyhm Exp $

inherit eutils games

MY_PN=${PN%-bin}
DESCRIPTION="Brain teasers, puzzle and memory games for kid's in one pack"
HOMEPAGE="http://www.viewizard.com/memonix/"
SRC_URI="http://www.viewizard.com/download/memx${PV//./}.tar.gz
	mirror://gentoo/memonix-addons-1.tar.bz2"

LICENSE="Memonix"
SLOT="0"
KEYWORDS="~x86"
IUSE=""
RESTRICT="strip"

DEPEND=""
RDEPEND=""

S=${WORKDIR}/Memonix

src_install() {
	exeinto "${GAMES_PREFIX_OPT}/${MY_PN}"
	doexe Memonix || die "doexe failed"
	insinto "${GAMES_PREFIX_OPT}/${MY_PN}"
	doins gamedata.vfs "${WORKDIR}"/addons/* || die "doins failed"
	dodoc Changes ReadMe

	games_make_wrapper ${MY_PN} "./Memonix" "${GAMES_PREFIX_OPT}/${MY_PN}"
	newicon icon48.png ${MY_PN}.png || die "newicon failed"
	make_desktop_entry ${MY_PN} "Memonix" ${MY_PN}.png
	prepgamesdirs
}