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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.4 Revision 1.5
1# Copyright 1999-2007 Gentoo Foundation 1# Copyright 1999-2008 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 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.4 2007/02/05 21:24:17 mr_bones_ Exp $ 3# $Header: /var/cvsroot/gentoo-x86/games-kids/cubetest/cubetest-0.9.4.ebuild,v 1.5 2008/06/10 00:40:13 mr_bones_ Exp $
4 4
5EAPI=1
5inherit qt4 eutils games 6inherit eutils games
6 7
7DESCRIPTION="A program to train your spatial insight" 8DESCRIPTION="A program to train your spatial insight"
8HOMEPAGE="http://www.vandenoever.info/software/cubetest/" 9HOMEPAGE="http://www.vandenoever.info/software/cubetest/"
9SRC_URI="http://www.vandenoever.info/software/cubetest/${P}.tar.bz2" 10SRC_URI="http://www.vandenoever.info/software/cubetest/${P}.tar.bz2"
10 11
11LICENSE="GPL-2" 12LICENSE="GPL-2"
12SLOT="0" 13SLOT="0"
13KEYWORDS="amd64 ~ppc x86" 14KEYWORDS="amd64 ~ppc x86"
14IUSE="" 15IUSE=""
15 16
16DEPEND="$(qt4_min_version 4)" 17DEPEND="x11-libs/qt:4"
17 18
18pkg_setup() { 19pkg_setup() {
19 games_pkg_setup 20 games_pkg_setup
20 if has_version ">=x11-libs/qt-4.2.2" ; then
21 if ! built_with_use x11-libs/qt qt3support ; then 21 if ! built_with_use --missing true "x11-libs/qt:4" qt3support ; then
22 eerror "${PN} requires qt3support" 22 eerror "${PN} requires qt3support"
23 die "rebuild >=x11-libs/qt-4.2.2 with the qt3support USE flag" 23 die "rebuild x11-libs/qt:4 with the qt3support USE flag"
24 fi
25 fi 24 fi
26} 25}
27 26
28src_unpack() { 27src_unpack() {
28 local i
29
29 unpack ${A} 30 unpack ${A}
30 cd "${S}" 31 cd "${S}"
31 epatch "${FILESDIR}"/${P}-build.patch 32 epatch "${FILESDIR}"/${P}-build.patch
32 for i in $(find src/ -iname *_moc.cpp) ; do 33 for i in $(find src/ -iname *_moc.cpp) ; do
33 moc ${i/_moc.cpp/.h} -o $i || die 34 moc ${i/_moc.cpp/.h} -o $i || die

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

  ViewVC Help
Powered by ViewVC 1.1.20