1 |
mr_bones_ 09/04/07 01:21:05 |
2 |
|
3 |
Modified: pouetchess-0.2.0-r1.ebuild ChangeLog |
4 |
Log: |
5 |
EAPI=2; tidy |
6 |
(Portage version: 2.1.6.7/cvs/Linux i686) |
7 |
|
8 |
Revision Changes Path |
9 |
1.7 games-board/pouetchess/pouetchess-0.2.0-r1.ebuild |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-board/pouetchess/pouetchess-0.2.0-r1.ebuild?rev=1.7&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-board/pouetchess/pouetchess-0.2.0-r1.ebuild?rev=1.7&content-type=text/plain |
13 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-board/pouetchess/pouetchess-0.2.0-r1.ebuild?r1=1.6&r2=1.7 |
14 |
|
15 |
Index: pouetchess-0.2.0-r1.ebuild |
16 |
=================================================================== |
17 |
RCS file: /var/cvsroot/gentoo-x86/games-board/pouetchess/pouetchess-0.2.0-r1.ebuild,v |
18 |
retrieving revision 1.6 |
19 |
retrieving revision 1.7 |
20 |
diff -u -r1.6 -r1.7 |
21 |
--- pouetchess-0.2.0-r1.ebuild 20 Jul 2008 20:49:15 -0000 1.6 |
22 |
+++ pouetchess-0.2.0-r1.ebuild 7 Apr 2009 01:21:05 -0000 1.7 |
23 |
@@ -1,8 +1,9 @@ |
24 |
-# Copyright 1999-2008 Gentoo Foundation |
25 |
+# Copyright 1999-2009 Gentoo Foundation |
26 |
# Distributed under the terms of the GNU General Public License v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/games-board/pouetchess/pouetchess-0.2.0-r1.ebuild,v 1.6 2008/07/20 20:49:15 loki_val Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/games-board/pouetchess/pouetchess-0.2.0-r1.ebuild,v 1.7 2009/04/07 01:21:05 mr_bones_ Exp $ |
29 |
|
30 |
-inherit base eutils toolchain-funcs games |
31 |
+EAPI=2 |
32 |
+inherit eutils games |
33 |
|
34 |
MY_PN=${PN/c/C} |
35 |
DESCRIPTION="3D and open source chess game" |
36 |
@@ -15,31 +16,20 @@ |
37 |
IUSE="debug" |
38 |
|
39 |
RDEPEND="media-libs/libsdl |
40 |
- media-libs/sdl-image |
41 |
+ media-libs/sdl-image[jpeg,png] |
42 |
virtual/glu |
43 |
virtual/opengl" |
44 |
DEPEND="${RDEPEND} |
45 |
dev-util/scons" |
46 |
|
47 |
S=${WORKDIR}/${PN}_src_${PV} |
48 |
-PATCHES=( "${FILESDIR}/${P}-sconstruct-sandbox.patch" |
49 |
- "${FILESDIR}/${P}-nvidia_glext.patch" |
50 |
- "${FILESDIR}/${P}-segfaults.patch" |
51 |
- "${FILESDIR}/${P}-gcc43.patch" ) |
52 |
- |
53 |
-pkg_setup() { |
54 |
- games_pkg_setup |
55 |
- einfo "If you experience problems building pouetchess with nvidia drivers," |
56 |
- einfo "you can try:" |
57 |
- einfo "eselect opengl set xorg-x11" |
58 |
- einfo "emerge pouetchess" |
59 |
- einfo "eselect opengl set nvidia" |
60 |
-} |
61 |
- |
62 |
-src_unpack() { |
63 |
- base_src_unpack |
64 |
+PATCHES=( "${FILESDIR}/${P}-sconstruct-sandbox.patch" |
65 |
+ "${FILESDIR}/${P}-nvidia_glext.patch" |
66 |
+ "${FILESDIR}/${P}-segfaults.patch" |
67 |
+ "${FILESDIR}/${P}-gcc43.patch" ) |
68 |
|
69 |
- cd "${S}" |
70 |
+src_prepare() { |
71 |
+ epatch "${PATCHES[@]}" |
72 |
# Fix for LibSDL >= 1.2.10 detection |
73 |
sed -i \ |
74 |
-e "s:sdlver.split('.') >= \['1','2','8'\]:sdlver.split('.') >= [1,2,8]:" \ |
75 |
@@ -47,9 +37,7 @@ |
76 |
|| die "sed failed" |
77 |
} |
78 |
|
79 |
-src_compile() { |
80 |
- tc-export CC CXX |
81 |
- |
82 |
+src_configure() { |
83 |
# turn off the hackish optimization setting code (bug #230127) |
84 |
scons configure \ |
85 |
strip=false \ |
86 |
@@ -58,7 +46,12 @@ |
87 |
datadir="${GAMES_DATADIR}"/${PN} \ |
88 |
$(use debug && echo debug=1) \ |
89 |
|| die "scons configure failed" |
90 |
- scons || die "scons failed" |
91 |
+} |
92 |
+ |
93 |
+src_compile() { |
94 |
+ local sconsopts=$(echo "${MAKEOPTS}" | sed -e "s/.*\(-j[0-9]\+\).*/\1/") |
95 |
+ |
96 |
+ scons ${sconsopts} || die "scons failed" |
97 |
} |
98 |
|
99 |
src_install() { |
100 |
|
101 |
|
102 |
|
103 |
1.12 games-board/pouetchess/ChangeLog |
104 |
|
105 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-board/pouetchess/ChangeLog?rev=1.12&view=markup |
106 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-board/pouetchess/ChangeLog?rev=1.12&content-type=text/plain |
107 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-board/pouetchess/ChangeLog?r1=1.11&r2=1.12 |
108 |
|
109 |
Index: ChangeLog |
110 |
=================================================================== |
111 |
RCS file: /var/cvsroot/gentoo-x86/games-board/pouetchess/ChangeLog,v |
112 |
retrieving revision 1.11 |
113 |
retrieving revision 1.12 |
114 |
diff -u -r1.11 -r1.12 |
115 |
--- ChangeLog 20 Jul 2008 20:49:15 -0000 1.11 |
116 |
+++ ChangeLog 7 Apr 2009 01:21:05 -0000 1.12 |
117 |
@@ -1,6 +1,10 @@ |
118 |
# ChangeLog for games-board/pouetchess |
119 |
-# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 |
120 |
-# $Header: /var/cvsroot/gentoo-x86/games-board/pouetchess/ChangeLog,v 1.11 2008/07/20 20:49:15 loki_val Exp $ |
121 |
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
122 |
+# $Header: /var/cvsroot/gentoo-x86/games-board/pouetchess/ChangeLog,v 1.12 2009/04/07 01:21:05 mr_bones_ Exp $ |
123 |
+ |
124 |
+ 07 Apr 2009; Michael Sterrett <mr_bones_@g.o> |
125 |
+ pouetchess-0.2.0-r1.ebuild: |
126 |
+ EAPI=2; tidy |
127 |
|
128 |
20 Jul 2008; Peter Alfredsen <loki_val@g.o> |
129 |
+files/pouetchess-0.2.0-gcc43.patch, pouetchess-0.2.0-r1.ebuild: |