/[gentoo-x86]/games-puzzle/pouetchess/pouetchess-0.2.0.ebuild
Gentoo

Contents of /games-puzzle/pouetchess/pouetchess-0.2.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Fri Jun 16 04:22:51 2006 UTC (13 years, 7 months ago) by mr_bones_
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
pouetchess moved to games-board

1 # Copyright 1999-2006 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/games-puzzle/pouetchess/pouetchess-0.2.0.ebuild,v 1.3 2006/06/15 18:05:02 mr_bones_ Exp $
4
5 inherit eutils games
6
7 MY_PN=${PN/c/C}
8 DESCRIPTION="3D and open source chess game"
9 HOMEPAGE="http://pouetchess.sourceforge.net/"
10 SRC_URI="mirror://sourceforge/pouetchess/${PN}_src_${PV}.tar.gz"
11
12 LICENSE="GPL-2"
13 SLOT="0"
14 KEYWORDS="~amd64 ~ppc x86"
15 IUSE="debug"
16
17 RDEPEND=">=media-libs/libsdl-1.2.8
18 media-libs/sdl-image
19 virtual/opengl
20 || (
21 (
22 x11-libs/libX11
23 x11-libs/libXau
24 x11-libs/libXdmcp
25 x11-libs/libXext
26 )
27 virtual/x11 )"
28
29 DEPEND="${RDEPEND}
30 dev-util/scons"
31
32 S=${WORKDIR}/${PN}_src_${PV}
33
34 pkg_setup() {
35 games_pkg_setup
36 einfo "If you experience problems building pouetchess with nvidia drivers,"
37 einfo "you can try:"
38 einfo "eselect opengl set xorg-x11"
39 einfo "emerge pouetchess"
40 einfo "eselect opengl set nvidia"
41 }
42
43 src_unpack() {
44 unpack ${A}
45 cd "${S}"
46 # modify SConstruct file like seen on
47 # http://permalink.gmane.org/gmane.comp.audio.csound.devel/6646
48 # Fix up nvidia headers
49 epatch \
50 "${FILESDIR}"/${P}-sconstruct-sandbox.patch \
51 "${FILESDIR}"/${P}-nvidia_glext.patch
52
53 # Fix for LibSDL >= 1.2.10 detection
54 sed -i \
55 -e "s:sdlver.split('.') >= \['1','2','8'\]:sdlver.split('.') >= [1,2,8]:" \
56 pouetChess.py \
57 || die "sed failed"
58 sed -i \
59 -e "/strip/d" \
60 SConstruct \
61 || die "sed failed"
62 }
63
64 src_compile() {
65 local myconf="prefix=${GAMES_PREFIX} datadir=${GAMES_DATADIR}/${PN}"
66 use debug && myconf="${myconf} debug=1 strip=false"
67
68 scons configure ${myconf} || die "scons configure failed"
69 scons ${MAKEOPTS} || die "scons make failed"
70 }
71
72 src_install() {
73 dogamesbin bin/"${MY_PN}" || die "dogamesbin failed"
74
75 insinto "${GAMES_DATADIR}/${PN}"
76 doins -r data/* || die "installing data failed"
77
78 dodoc ChangeLog README
79
80 doicon data/icons/${MY_PN}.png
81 make_desktop_entry ${MY_PN} "pouetChess" ${MY_PN}.png "KDE;Qt;Game;BoardGame"
82
83 prepgamesdirs
84 }

  ViewVC Help
Powered by ViewVC 1.1.20