/[gentoo-x86]/games-kids/cubetest/cubetest-0.9.4.ebuild
Gentoo

Contents of /games-kids/cubetest/cubetest-0.9.4.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Mon Feb 5 21:24:17 2007 UTC (7 years, 8 months ago) by mr_bones_
Branch: MAIN
Changes since 1.3: +12 -2 lines
require >=x11-libs/qt-4.2.2 to have qt3support use flag set (bug #165458)
(Portage version: 2.1.1-r2)

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 }

  ViewVC Help
Powered by ViewVC 1.1.20