| 1 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/games-kids/cubetest/cubetest-0.9.4.ebuild,v 1.8 2009/06/23 16:58:53 mr_bones_ Exp $
|
| 4 |
|
| 5 |
EAPI=2
|
| 6 |
inherit eutils games
|
| 7 |
|
| 8 |
DESCRIPTION="A program to train your spatial insight"
|
| 9 |
HOMEPAGE="http://www.vandenoever.info/software/cubetest/"
|
| 10 |
SRC_URI="http://www.vandenoever.info/software/cubetest/${P}.tar.bz2"
|
| 11 |
|
| 12 |
LICENSE="GPL-2"
|
| 13 |
SLOT="0"
|
| 14 |
KEYWORDS="amd64 ~ppc x86"
|
| 15 |
IUSE=""
|
| 16 |
|
| 17 |
RDEPEND="x11-libs/qt-gui:4
|
| 18 |
x11-libs/qt-core:4[qt3support]"
|
| 19 |
DEPEND="${RDEPEND}
|
| 20 |
dev-util/pkgconfig"
|
| 21 |
|
| 22 |
src_prepare() {
|
| 23 |
local i
|
| 24 |
|
| 25 |
epatch "${FILESDIR}"/${P}-build.patch
|
| 26 |
for i in $(find src/ -iname *_moc.cpp) ; do
|
| 27 |
moc ${i/_moc.cpp/.h} -o $i || die
|
| 28 |
done
|
| 29 |
}
|
| 30 |
|
| 31 |
src_install() {
|
| 32 |
emake DESTDIR="${D}" install || die "emake install failed"
|
| 33 |
prepgamesdirs
|
| 34 |
}
|