Ticket #370: patch.2

File patch.2, 18.1 kB (added by Auswaschbar, 11 months ago)

Non-broken version of patch

Line 
1Index: profiles/package.mask
2===================================================================
3--- profiles/package.mask       (Revision 748)
4+++ profiles/package.mask       (Arbeitskopie)
5@@ -1 +1,2 @@
6 =games-strategy/spring-9*
7+=games-util/springlobby-9*
8Index: games-util/springlobby/springlobby-template
9===================================================================
10--- games-util/springlobby/springlobby-template (Revision 748)
11+++ games-util/springlobby/springlobby-template (Arbeitskopie)
12@@ -1,51 +0,0 @@
13-# Copyright 1999-2007 Gentoo Foundation
14-# Distributed under the terms of the GNU General Public License v2
15-# $Header: $
16-
17-# TODO add debug use flag
18-
19-inherit eutils
20-
21-DESCRIPTION="lobby client for spring rts engine"
22-HOMEPAGE="http://springlobby.info"
23-SRC_URI="http://www.springlobby.info/tarballs/${P}.tar.bz2"
24-
25-LICENSE="GPL-2"
26-SLOT="0"
27-KEYWORDS="~amd64 ~x86"
28-IUSE=""
29-RESTRICT="nomirror"
30-
31-RDEPEND="
32-       !games-util/springlobby-svn
33-       !virtual/springlobby
34-       >=x11-libs/wxGTK-2.6.3
35-"
36-DEPEND="${RDEPEND}
37-"
38-
39-PROVIDE="virtual/springlobby"
40-
41-my_depend_with_use () {
42-       if ! built_with_use $* ; then
43-               eerror "Please run 'echo \"$*\" >> /etc/portage/package.use' and re-emerge '$1'."
44-               MY_DEPEND_WITH_USE=false
45-       fi
46-}
47-
48-pkg_setup() {
49-       my_depend_with_use x11-libs/wxGTK X
50-       ${MY_DEPEND_WITH_USE} || die "Some dependencies need different use flags. Package setup failed."
51-}
52-
53-src_compile() {
54-       econf || die "econf failed"
55-       emake || die "emake failed"
56-}
57-
58-src_install() {
59-       emake install DESTDIR=${D}
60-       newicon "${FILESDIR}/logo.png" ${PN}.png
61-       make_desktop_entry ${PN} "Springlobby" ${PN}.png
62-}
63-
64Index: games-util/springlobby/Manifest
65===================================================================
66--- games-util/springlobby/Manifest     (Revision 748)
67+++ games-util/springlobby/Manifest     (Arbeitskopie)
68@@ -13,14 +13,14 @@
69 MD5 f1eeaec1f840a859e314c8c739c2bf41 springlobby-0.0.1.0746.ebuild 946
70 RMD160 43670c2d865cf7cff137907316c4d3525a391aec springlobby-0.0.1.0746.ebuild 946
71 SHA256 4ae14899deb3def1b43c5242b9b9ea06a2591113db1dc0116d248e61c11beee9 springlobby-0.0.1.0746.ebuild 946
72-EBUILD springlobby-0.0.1.0747.ebuild 1067 RMD160 041aa76a7088eb4a09b590d3eb06f8d63371032b SHA1 b8f0cbd80715ecc4b2de705d89ecd8f87e7d54ff SHA256 d6d4386da4fb93e3254fa17ed31c5b8cac749133537e1e6e165f90a5648c0ac9
73-MD5 fce224456db8b35b182f0f18dce9170f springlobby-0.0.1.0747.ebuild 1067
74-RMD160 041aa76a7088eb4a09b590d3eb06f8d63371032b springlobby-0.0.1.0747.ebuild 1067
75-SHA256 d6d4386da4fb93e3254fa17ed31c5b8cac749133537e1e6e165f90a5648c0ac9 springlobby-0.0.1.0747.ebuild 1067
76-MISC springlobby-template 1067 RMD160 041aa76a7088eb4a09b590d3eb06f8d63371032b SHA1 b8f0cbd80715ecc4b2de705d89ecd8f87e7d54ff SHA256 d6d4386da4fb93e3254fa17ed31c5b8cac749133537e1e6e165f90a5648c0ac9
77-MD5 fce224456db8b35b182f0f18dce9170f springlobby-template 1067
78-RMD160 041aa76a7088eb4a09b590d3eb06f8d63371032b springlobby-template 1067
79-SHA256 d6d4386da4fb93e3254fa17ed31c5b8cac749133537e1e6e165f90a5648c0ac9 springlobby-template 1067
80+EBUILD springlobby-0.0.1.0747.ebuild 985 RMD160 bf3f639aa7fc2fb62d64d298d2f2f064447c8424 SHA1 123f9a55cc0215a98221f6c3cc380d38e3187546 SHA256 850a63fbdcdd2d1734d96650f5ea59412df16c0d412c06d0896ff7e06ec21680
81+MD5 b4be3c32342036b8f5a663c2ca766d17 springlobby-0.0.1.0747.ebuild 985
82+RMD160 bf3f639aa7fc2fb62d64d298d2f2f064447c8424 springlobby-0.0.1.0747.ebuild 985
83+SHA256 850a63fbdcdd2d1734d96650f5ea59412df16c0d412c06d0896ff7e06ec21680 springlobby-0.0.1.0747.ebuild 985
84+EBUILD springlobby-9.9.9.9999.ebuild 1218 RMD160 9829062f60515857a56676020c3475fc8f6582e8 SHA1 9501703b2cf985f9d1423b8d5ff26d5459f3e37a SHA256 b9cb83525a1d3eca58f257c564981909ab7dc72ace9ca8b58acf28a97eeaca5d
85+MD5 7357e59b4f666fc9e45e8ad0c5e761da springlobby-9.9.9.9999.ebuild 1218
86+RMD160 9829062f60515857a56676020c3475fc8f6582e8 springlobby-9.9.9.9999.ebuild 1218
87+SHA256 b9cb83525a1d3eca58f257c564981909ab7dc72ace9ca8b58acf28a97eeaca5d springlobby-9.9.9.9999.ebuild 1218
88 MD5 0acf68d61f86956a9f811879975733f6 files/digest-springlobby-0.0.1.0745 271
89 RMD160 04975415ff8f2dbaf42c6345725b4f01d551e63a files/digest-springlobby-0.0.1.0745 271
90 SHA256 db9907ccf37d511cf1d462f86c171aa2e1fa5e9d60d948e310a908608b0ed510 files/digest-springlobby-0.0.1.0745 271
91@@ -30,3 +30,6 @@
92 MD5 f9e8b352ff23bb13a76e8ad1b79b72f2 files/digest-springlobby-0.0.1.0747 271
93 RMD160 011751bd99c1178584ab1871f4e96b52fefc5f95 files/digest-springlobby-0.0.1.0747 271
94 SHA256 ccc3d1408dac9d0121f4a4fd0062830fe05a82f7081d1c31ee405bb769bf8a6b files/digest-springlobby-0.0.1.0747 271
95+MD5 d41d8cd98f00b204e9800998ecf8427e files/digest-springlobby-9.9.9.9999 0
96+RMD160 9c1185a5c5e9fc54612808977ee8f548b2258d31 files/digest-springlobby-9.9.9.9999 0
97+SHA256 e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 files/digest-springlobby-9.9.9.9999 0
98Index: games-util/springlobby/springlobby-0.0.1.0747.ebuild
99===================================================================
100--- games-util/springlobby/springlobby-0.0.1.0747.ebuild        (Revision 748)
101+++ games-util/springlobby/springlobby-0.0.1.0747.ebuild        (Arbeitskopie)
102@@ -17,15 +17,11 @@
103 RESTRICT="nomirror"
104 
105 RDEPEND="
106-       !games-util/springlobby-svn
107-       !virtual/springlobby
108        >=x11-libs/wxGTK-2.6.3
109 "
110 DEPEND="${RDEPEND}
111 "
112 
113-PROVIDE="virtual/springlobby"
114-
115 my_depend_with_use () {
116        if ! built_with_use $* ; then
117                eerror "Please run 'echo \"$*\" >> /etc/portage/package.use' and re-emerge '$1'."
118Index: games-strategy/spring/files/spring.png
119===================================================================
120Kann nicht anzeigen: Dateityp ist als binÀr angegeben.
121svn:mime-type = image/x-png
122Index: games-strategy/spring/files/spring-svn_coexist_with_release.patch
123===================================================================
124--- games-strategy/spring/files/spring-svn_coexist_with_release.patch   (Revision 0)
125+++ games-strategy/spring/files/spring-svn_coexist_with_release.patch   (Revision 0)
126@@ -0,0 +1,26 @@
127+Index: rts/System/Platform/Linux/UnixFileSystemHandler.cpp
128+===================================================================
129+--- rts/System/Platform/Linux/UnixFileSystemHandler.cpp        (revision 3975)
130++++ rts/System/Platform/Linux/UnixFileSystemHandler.cpp        (working copy)
131+@@ -167,7 +167,7 @@
132+       if (!cfg.empty())
133+               AddDirs(SubstEnvVars(cfg));
134+
135+-      FILE* f = ::fopen("/etc/spring/datadir", "r");
136++      FILE* f = ::fopen("/etc/spring-svn/datadir", "r");
137+       if (f) {
138+               char buf[1024];
139+               while (fgets(buf, sizeof(buf), f)) {
140+Index: rts/System/Platform/Linux/DotfileHandler.h
141+===================================================================
142+--- rts/System/Platform/Linux/DotfileHandler.h (revision 3975)
143++++ rts/System/Platform/Linux/DotfileHandler.h (working copy)
144+@@ -25,7 +25,7 @@
145+  *
146+  * Defines the name of the configuration file to use
147+  */
148+-#define DOTCONFIGFILE ".springrc"
149++#define DOTCONFIGFILE ".springrc-svn"
150+
151+ /**
152+  * @brief dotconfig path
153Index: games-strategy/spring/Manifest
154===================================================================
155--- games-strategy/spring/Manifest      (Revision 748)
156+++ games-strategy/spring/Manifest      (Arbeitskopie)
157@@ -1,7 +1,11 @@
158-AUX spring.png 11587 RMD160 17d6414c9dfb940a2cd9e3a95f8e4e72f4730216 SHA1 b0c998ec24db30792d6f761c76f01af150743bd9 SHA256 f5d852748bcff4407fe80e679c5fc27e5fa425282375b882b85d6cf29e0774bd
159-MD5 0d9d096a4ef867678066207c31dea94f files/spring.png 11587
160-RMD160 17d6414c9dfb940a2cd9e3a95f8e4e72f4730216 files/spring.png 11587
161-SHA256 f5d852748bcff4407fe80e679c5fc27e5fa425282375b882b85d6cf29e0774bd files/spring.png 11587
162+AUX spring-svn_coexist_with_release.patch 946 RMD160 4dfa3dea26820f29c703eb4ddb9b003702c6258d SHA1 ed2a5e1c65d632a441d2e150ea94235315a874ff SHA256 a76b4fb2afcb672b1ca68a53f11dd6e9dd4b11dbf2a2da0aa0b867e5175f26ea
163+MD5 08fa8bf518af8fbfcdbf169e416d9782 files/spring-svn_coexist_with_release.patch 946
164+RMD160 4dfa3dea26820f29c703eb4ddb9b003702c6258d files/spring-svn_coexist_with_release.patch 946
165+SHA256 a76b4fb2afcb672b1ca68a53f11dd6e9dd4b11dbf2a2da0aa0b867e5175f26ea files/spring-svn_coexist_with_release.patch 946
166+AUX spring.png 118793 RMD160 7f64b0ee89d0de7f2257ffd8c535238dd8e514a2 SHA1 0576f27b46ef4e8c3d4956559c7b71c664bfa08f SHA256 f7530e6dd7c9ac5e9f02be42c3d5d5ef0176314a040b7ef156f8526f2a410528
167+MD5 29e46c9dcd9cd8f9a4257c7ef2896cea files/spring.png 118793
168+RMD160 7f64b0ee89d0de7f2257ffd8c535238dd8e514a2 files/spring.png 118793
169+SHA256 f7530e6dd7c9ac5e9f02be42c3d5d5ef0176314a040b7ef156f8526f2a410528 files/spring.png 118793
170 DIST spring_0.75b2_src.tar.bz2 4104476 RMD160 61f76af07c931bad6842de7aa15ca071f30a24bd SHA1 81c27df5c16160d9d05c8181388ef9a0df8e5705 SHA256 95d9e7dc24a48a1a29f88fae6e17a8a6600166931fe10958b1409128b8596e1c
171 DIST spring_0.76b1_src.tar.bz2 5087606 RMD160 77afdd3733ff81a5beb8a169b9557df413d1c8c5 SHA1 652c45288f4b3e45a263f73db386ec5816acdfa3 SHA256 db4ab3d3e3ccf3143181945374e8f173e58077dbb672640c4620e98726f349d5
172 EBUILD spring-0.75_p2.ebuild 1894 RMD160 dc6c314d2ed3e37b8cbbe0707c1e7771ce7993f3 SHA1 0d3cb8bcb29c92ea6338988b0016f6cc083703df SHA256 884ad873b2c0ab361699e0ab26b03c38c8c572aa10f578d031f748cbd41bffbc
173@@ -12,14 +16,18 @@
174 MD5 f2584aa7b0198053a045f5e6e8a9bd56 spring-0.76_p1-r1.ebuild 1913
175 RMD160 a92caf92159974db90403ddd88a45dac36c6177d spring-0.76_p1-r1.ebuild 1913
176 SHA256 b2e31998b8a2574e733b04c80930ea1536b857e91c42fa8b8ef816ecb112229d spring-0.76_p1-r1.ebuild 1913
177-EBUILD spring-0.76_p1-r2.ebuild 1935 RMD160 f1c3f25b60b266a68963931b56965e7bdf0d3e22 SHA1 fb06ad8ad59ec23a80518406bc18c70c949303ae SHA256 a9ea96982e7bc3b5919bf4f0d62dd30a8e8bfa043fe3f514490d36212f2d1a0b
178-MD5 8df7bbe2fd29ce8cd55b6d7c165d0492 spring-0.76_p1-r2.ebuild 1935
179-RMD160 f1c3f25b60b266a68963931b56965e7bdf0d3e22 spring-0.76_p1-r2.ebuild 1935
180-SHA256 a9ea96982e7bc3b5919bf4f0d62dd30a8e8bfa043fe3f514490d36212f2d1a0b spring-0.76_p1-r2.ebuild 1935
181+EBUILD spring-0.76_p1-r2.ebuild 1882 RMD160 bf6cd831b6eff4eca4f32200ba75841490ebb389 SHA1 e4daf096dfa4ade539abede37462fb572948616e SHA256 eae1659c20161b4f5c007b9b8ad6ff674922199f44ce4b2c8bef56455742a30c
182+MD5 5559917830cfe87030e8d78950377722 spring-0.76_p1-r2.ebuild 1882
183+RMD160 bf6cd831b6eff4eca4f32200ba75841490ebb389 spring-0.76_p1-r2.ebuild 1882
184+SHA256 eae1659c20161b4f5c007b9b8ad6ff674922199f44ce4b2c8bef56455742a30c spring-0.76_p1-r2.ebuild 1882
185 EBUILD spring-0.76_p1.ebuild 1894 RMD160 dc6c314d2ed3e37b8cbbe0707c1e7771ce7993f3 SHA1 0d3cb8bcb29c92ea6338988b0016f6cc083703df SHA256 884ad873b2c0ab361699e0ab26b03c38c8c572aa10f578d031f748cbd41bffbc
186 MD5 8b21d49c987966060498b66b35a0970a spring-0.76_p1.ebuild 1894
187 RMD160 dc6c314d2ed3e37b8cbbe0707c1e7771ce7993f3 spring-0.76_p1.ebuild 1894
188 SHA256 884ad873b2c0ab361699e0ab26b03c38c8c572aa10f578d031f748cbd41bffbc spring-0.76_p1.ebuild 1894
189+EBUILD spring-9.99.ebuild 2088 RMD160 34ea9e2d3d7c4b8b65116cb909e1ad668c102610 SHA1 fc2ba46b8e881a374ab90461ed518b35253acef7 SHA256 933f65970a079b7ff4b1699acac54120762ecda32604105acfb8eb2d1fcb55de
190+MD5 adc2ad296804a226775989dc646b4041 spring-9.99.ebuild 2088
191+RMD160 34ea9e2d3d7c4b8b65116cb909e1ad668c102610 spring-9.99.ebuild 2088
192+SHA256 933f65970a079b7ff4b1699acac54120762ecda32604105acfb8eb2d1fcb55de spring-9.99.ebuild 2088
193 MD5 903b8dcf087bf2710ff7d96a1a2b8957 files/digest-spring-0.75_p2 259
194 RMD160 76d08a014c07e6ef056028c22cbb6fc6bf97fc11 files/digest-spring-0.75_p2 259
195 SHA256 349437262c83f3595b0cdc1b4a57e79fa32637c9d7c9bf5ceeb02b2f5da3c6df files/digest-spring-0.75_p2 259
196@@ -32,3 +40,6 @@
197 MD5 dbb2c4530b09864101b0dc0e918d333a files/digest-spring-0.76_p1-r2 259
198 RMD160 99b604dfa2e0d057f48c522efdfc07d87a544b4d files/digest-spring-0.76_p1-r2 259
199 SHA256 5f7f7cd5a1bb99e3b9cd2685772f08a051d1f085cf656c881b65c0c3919c14a2 files/digest-spring-0.76_p1-r2 259
200+MD5 d41d8cd98f00b204e9800998ecf8427e files/digest-spring-9.99 0
201+RMD160 9c1185a5c5e9fc54612808977ee8f548b2258d31 files/digest-spring-9.99 0
202+SHA256 e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 files/digest-spring-9.99 0
203Index: games-strategy/spring/spring-0.76_p1-r2.ebuild
204===================================================================
205--- games-strategy/spring/spring-0.76_p1-r2.ebuild      (Revision 748)
206+++ games-strategy/spring/spring-0.76_p1-r2.ebuild      (Arbeitskopie)
207@@ -17,7 +17,6 @@
208 RESTRICT="nomirror"
209 
210 RDEPEND="
211-       !virtual/game_spring
212        !games-strategy/taspring-linux-release
213        >=dev-lang/python-2.4
214        dev-libs/boost
215@@ -39,8 +38,6 @@
216        dev-util/scons
217 "
218 
219-PROVIDE="virtual/game_spring"
220-
221 my_depend_with_use () {
222        if ! built_with_use $* ; then
223                eerror "Please run 'echo \"$*\" >> /etc/portage/package.use' and re-emerge '$1'."
224Index: games-strategy/spring-svn/files/spring.png
225===================================================================
226Kann nicht anzeigen: Dateityp ist als binÀr angegeben.
227svn:mime-type = image/x-png
228Index: games-strategy/spring-svn/files/spring-svn_coexist_with_release.patch
229===================================================================
230--- games-strategy/spring-svn/files/spring-svn_coexist_with_release.patch       (Revision 748)
231+++ games-strategy/spring-svn/files/spring-svn_coexist_with_release.patch       (Arbeitskopie)
232@@ -1,26 +0,0 @@
233-Index: rts/System/Platform/Linux/UnixFileSystemHandler.cpp
234-===================================================================
235---- rts/System/Platform/Linux/UnixFileSystemHandler.cpp        (revision 3975)
236-+++ rts/System/Platform/Linux/UnixFileSystemHandler.cpp        (working copy)
237-@@ -167,7 +167,7 @@
238-       if (!cfg.empty())
239-               AddDirs(SubstEnvVars(cfg));
240-
241--      FILE* f = ::fopen("/etc/spring/datadir", "r");
242-+      FILE* f = ::fopen("/etc/spring-svn/datadir", "r");
243-       if (f) {
244-               char buf[1024];
245-               while (fgets(buf, sizeof(buf), f)) {
246-Index: rts/System/Platform/Linux/DotfileHandler.h
247-===================================================================
248---- rts/System/Platform/Linux/DotfileHandler.h (revision 3975)
249-+++ rts/System/Platform/Linux/DotfileHandler.h (working copy)
250-@@ -25,7 +25,7 @@
251-  *
252-  * Defines the name of the configuration file to use
253-  */
254--#define DOTCONFIGFILE ".springrc"
255-+#define DOTCONFIGFILE ".springrc-svn"
256-
257- /**
258-  * @brief dotconfig path
259Index: games-strategy/spring-svn/Manifest
260===================================================================
261--- games-strategy/spring-svn/Manifest  (Revision 748)
262+++ games-strategy/spring-svn/Manifest  (Arbeitskopie)
263@@ -1,15 +0,0 @@
264-AUX spring-svn_coexist_with_release.patch 946 RMD160 4dfa3dea26820f29c703eb4ddb9b003702c6258d SHA1 ed2a5e1c65d632a441d2e150ea94235315a874ff SHA256 a76b4fb2afcb672b1ca68a53f11dd6e9dd4b11dbf2a2da0aa0b867e5175f26ea
265-MD5 08fa8bf518af8fbfcdbf169e416d9782 files/spring-svn_coexist_with_release.patch 946
266-RMD160 4dfa3dea26820f29c703eb4ddb9b003702c6258d files/spring-svn_coexist_with_release.patch 946
267-SHA256 a76b4fb2afcb672b1ca68a53f11dd6e9dd4b11dbf2a2da0aa0b867e5175f26ea files/spring-svn_coexist_with_release.patch 946
268-AUX spring.png 11587 RMD160 17d6414c9dfb940a2cd9e3a95f8e4e72f4730216 SHA1 b0c998ec24db30792d6f761c76f01af150743bd9 SHA256 f5d852748bcff4407fe80e679c5fc27e5fa425282375b882b85d6cf29e0774bd
269-MD5 0d9d096a4ef867678066207c31dea94f files/spring.png 11587
270-RMD160 17d6414c9dfb940a2cd9e3a95f8e4e72f4730216 files/spring.png 11587
271-SHA256 f5d852748bcff4407fe80e679c5fc27e5fa425282375b882b85d6cf29e0774bd files/spring.png 11587
272-EBUILD spring-svn-20070716.ebuild 2141 RMD160 e56b8aceacdc7c9490dd070d82b531d4d8110b33 SHA1 e3b2bc62b0d5d239ec60ab03134829cf2576a91f SHA256 8ba4e4b27b3bc92b1ae496fcb753289d5102389389dec54e1237dcf17973cbad
273-MD5 c9ed333835b1031c9e428a4de2e4899a spring-svn-20070716.ebuild 2141
274-RMD160 e56b8aceacdc7c9490dd070d82b531d4d8110b33 spring-svn-20070716.ebuild 2141
275-SHA256 8ba4e4b27b3bc92b1ae496fcb753289d5102389389dec54e1237dcf17973cbad spring-svn-20070716.ebuild 2141
276-MD5 d41d8cd98f00b204e9800998ecf8427e files/digest-spring-svn-20070716 0
277-RMD160 9c1185a5c5e9fc54612808977ee8f548b2258d31 files/digest-spring-svn-20070716 0
278-SHA256 e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 files/digest-spring-svn-20070716 0
279Index: games-strategy/spring-svn/spring-svn-20070716.ebuild
280===================================================================
281--- games-strategy/spring-svn/spring-svn-20070716.ebuild        (Revision 748)
282+++ games-strategy/spring-svn/spring-svn-20070716.ebuild        (Arbeitskopie)
283@@ -1,87 +0,0 @@
284-# Copyright 1999-2007 Gentoo Foundation
285-# Distributed under the terms of the GNU General Public License v2
286-# $Header: $
287-
288-inherit subversion games eutils
289-
290-DESCRIPTION="a 3D multiplayer real time strategy game engine"
291-HOMEPAGE="http://springrts.com"
292-ESVN_REPO_URI="https://spring.clan-sy.com/svn/spring/trunk"
293-ESVN_PATCHES="spring-svn_coexist_with_release.patch"
294-
295-LICENSE="GPL-2"
296-SLOT="0"
297-KEYWORDS="~amd64 ~x86"
298-IUSE="debug"
299-
300-RDEPEND="
301-       !virtual/game_spring
302-       !games-strategy/taspring-linux-release
303-       >=dev-lang/python-2.4
304-       >=dev-libs/boost-1.34
305-       media-libs/devil
306-       >=media-libs/freetype-2.0.0
307-       media-libs/glew
308-       >=media-libs/libsdl-1.2.0
309-       media-libs/openal
310-       sys-libs/zlib
311-       virtual/glu
312-       virtual/jdk
313-       virtual/opengl
314-"
315-
316-DEPEND="${RDEPEND}
317-       app-arch/zip
318-       dev-util/scons
319-"
320-
321-PROVIDE="virtual/game_spring"
322-
323-my_depend_with_use () {
324-       if ! built_with_use $* ; then
325-               eerror "Please run 'echo \"$*\" >> /etc/portage/package.use' and re-emerge '$1'."
326-               MY_DEPEND_WITH_USE=false
327-       fi
328-}
329-
330-pkg_setup () {
331-       my_depend_with_use media-libs/libsdl X opengl
332-       if ! has_version \>=dev-libs/boost-1.34.0 ; then
333-               my_depend_with_use dev-libs/boost threads
334-       fi
335-       ${MY_DEPEND_WITH_USE} || die "Some dependencies need different use flags. Package setup failed."
336-}
337-
338-src_compile () {
339-       ewarn "This ebuild installs directly from a development repository."
340-       ewarn "The code might not even compile some times."
341-       einfo "If anything is weird, please file a bug report at ${HOMEPAGE}."
342-       MY_LIBDIR=${GAMES_PREFIX}/$(get_libdir)
343-       scons configure \
344-               $(use debug && echo debug=1) \
345-               prefix="/usr" \
346-               installprefix="${D}usr/" \
347-               datadir="${GAMES_DATADIR##/usr/}/${PN}" \
348-               bindir="${GAMES_BINDIR##/usr/}" \
349-               libdir="${MY_LIBDIR##/usr/}/${PN}" \
350-               strip=0 \
351-               || die "configuration failed"
352-       scons || die "build failed"
353-}
354-
355-src_install () {
356-       scons install || die "install failed"
357-       cd "${D%%/}${GAMES_BINDIR}"
358-       mv spring ${PN}
359-
360-       newicon "${FILESDIR}/spring.png" ${PN}.png
361-       make_desktop_entry ${PN} "Spring RTS - svn" ${PN}.png
362-
363-       insinto /etc/${PN}
364-       echo '$HOME'"/.${PN}" > ${WORKDIR}/datadir
365-       echo "${GAMES_DATADIR}/${PN}" >> ${WORKDIR}/datadir
366-       doins ${WORKDIR}/datadir
367-
368-       prepgamesdirs
369-}
370-