| 1 |
# Copyright 1999-2007 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.3 2006/10/09 11:34:36 nyhm Exp $
|
| 4 |
|
| 5 |
inherit qt4 eutils games
|
| 6 |
|
| 7 |
DESCRIPTION="A program to train your spatial insight"
|
| 8 |
HOMEPAGE="http://www.vandenoever.info/software/cubetest/"
|
| 9 |
SRC_URI="http://www.vandenoever.info/software/cubetest/${P}.tar.bz2"
|
| 10 |
|
| 11 |
LICENSE="GPL-2"
|
| 12 |
SLOT="0"
|
| 13 |
KEYWORDS="amd64 ~ppc x86"
|
| 14 |
IUSE=""
|
| 15 |
|
| 16 |
DEPEND="$(qt4_min_version 4)"
|
| 17 |
|
| 18 |
pkg_setup() {
|
| 19 |
games_pkg_setup
|
| 20 |
if has_version ">=x11-libs/qt-4.2.2" ; then
|
| 21 |
if ! built_with_use x11-libs/qt qt3support ; then
|
| 22 |
eerror "${PN} requires qt3support"
|
| 23 |
die "rebuild >=x11-libs/qt-4.2.2 with the qt3support USE flag"
|
| 24 |
fi
|
| 25 |
fi
|
| 26 |
}
|
| 27 |
|
| 28 |
src_unpack() {
|
| 29 |
unpack ${A}
|
| 30 |
cd "${S}"
|
| 31 |
epatch "${FILESDIR}"/${P}-build.patch
|
| 32 |
for i in $(find src/ -iname *_moc.cpp) ; do
|
| 33 |
moc ${i/_moc.cpp/.h} -o $i || die
|
| 34 |
done
|
| 35 |
}
|
| 36 |
|
| 37 |
src_install() {
|
| 38 |
emake DESTDIR="${D}" install || die "emake install failed"
|
| 39 |
prepgamesdirs
|
| 40 |
}
|