summaryrefslogtreecommitdiff
blob: 7842354ac2238ffb4bac44098fb67bc372e81c62 (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
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-puzzle/mindless/mindless-1.4.ebuild,v 1.3 2004/06/04 20:51:33 jhuebel Exp $

inherit games

DESCRIPTION="play collectable/trading card games (Magic: the Gathering and possibly others) against other people"
HOMEPAGE="http://mindless.sourceforge.net/"
SRC_URI="mirror://sourceforge/mindless/${P}.tar.gz
	http://www.e-league.com/files/approracle.zip"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86 ppc ~amd64"
IUSE=""

DEPEND="media-libs/gdk-pixbuf"

src_compile() {
	emake CFLAGS="${CFLAGS}" || die "emake failed"
}

src_install() {
	newgamesbin mindless mindless-bin
	dogamesbin ${FILESDIR}/mindless
	dosed "s:GENTOO_DIR:${GAMES_DATADIR}/${PN}:" ${GAMES_BINDIR}/mindless
	insinto ${GAMES_DATADIR}/${PN}
	doins ${WORKDIR}/*.dat ${WORKDIR}/sets/*.dat
	dodoc CHANGES README TODO
	prepgamesdirs
}

pkg_postinst() {
	games_pkg_postinst
	einfo "mindless is now a wrapper that searches"
	einfo "for cardinfo files and then runs mindless-bin."
	einfo "If you wish to run mindless yourself, please"
	einfo "use mindless-bin."
}