blob: 13353dacebfc2e008c974950118a2df4330cf7d1 (
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-puzzle/magiccube4d/magiccube4d-2.2.ebuild,v 1.11 2007/12/12 02:10:17 mr_bones_ Exp $
inherit eutils games
MY_PV=${PV/./_}
DESCRIPTION="four-dimensional analog of Rubik's cube"
HOMEPAGE="http://www.superliminal.com/cube/cube.htm"
SRC_URI="http://www.superliminal.com/cube/mc4d-src-${MY_PV}.tgz"
LICENSE="as-is"
SLOT="0"
KEYWORDS="~amd64 ppc x86"
IUSE=""
DEPEND="x11-libs/libXaw"
S="${WORKDIR}/${PN}-src-${MY_PV}"
src_unpack() {
unpack ${A}
cd "${S}"
epatch ${FILESDIR}/${PN}-EventHandler.patch \
"${FILESDIR}/${P}"-gcc41.patch \
"${FILESDIR}/${P}"-64bit-ptr.patch
sed -i \
-e "s:-Werror::" \
configure \
|| die "sed failed"
}
src_compile() {
egamesconf || die
emake DFLAGS="${CFLAGS}" || die "emake failed"
}
src_install() {
dogamesbin magiccube4d || die "dogamesbin failed"
dodoc ChangeLog MagicCube4D-unix.txt readme-unix.txt Intro.txt
prepgamesdirs
}
|