1 |
mr_bones_ 09/11/04 04:33:07 |
2 |
|
3 |
Modified: openastromenace-1.2.0.ebuild ChangeLog |
4 |
Log: |
5 |
Actually work with LINGUAS support (bug #234729) |
6 |
(Portage version: 2.1.6.13/cvs/Linux i686) |
7 |
|
8 |
Revision Changes Path |
9 |
1.5 games-action/openastromenace/openastromenace-1.2.0.ebuild |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-action/openastromenace/openastromenace-1.2.0.ebuild?rev=1.5&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-action/openastromenace/openastromenace-1.2.0.ebuild?rev=1.5&content-type=text/plain |
13 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-action/openastromenace/openastromenace-1.2.0.ebuild?r1=1.4&r2=1.5 |
14 |
|
15 |
Index: openastromenace-1.2.0.ebuild |
16 |
=================================================================== |
17 |
RCS file: /var/cvsroot/gentoo-x86/games-action/openastromenace/openastromenace-1.2.0.ebuild,v |
18 |
retrieving revision 1.4 |
19 |
retrieving revision 1.5 |
20 |
diff -u -r1.4 -r1.5 |
21 |
--- openastromenace-1.2.0.ebuild 27 May 2009 14:23:14 -0000 1.4 |
22 |
+++ openastromenace-1.2.0.ebuild 4 Nov 2009 04:33:06 -0000 1.5 |
23 |
@@ -1,27 +1,28 @@ |
24 |
# Copyright 1999-2009 Gentoo Foundation |
25 |
# Distributed under the terms of the GNU General Public License v2 |
26 |
-# $Header: /var/cvsroot/gentoo-x86/games-action/openastromenace/openastromenace-1.2.0.ebuild,v 1.4 2009/05/27 14:23:14 nyhm Exp $ |
27 |
+# $Header: /var/cvsroot/gentoo-x86/games-action/openastromenace/openastromenace-1.2.0.ebuild,v 1.5 2009/11/04 04:33:06 mr_bones_ Exp $ |
28 |
|
29 |
EAPI=2 |
30 |
-inherit cmake-utils eutils games |
31 |
+inherit flag-o-matic cmake-utils eutils games |
32 |
|
33 |
DESCRIPTION="Modern 3D space shooter with spaceship upgrade possibilities" |
34 |
HOMEPAGE="http://sourceforge.net/projects/openastromenace/" |
35 |
SRC_URI="mirror://sourceforge/${PN}/openamenace-src-${PV}.tar.bz2 |
36 |
mirror://sourceforge/${PN}/oamenace-data-${PV}.tar.bz2 |
37 |
- mirror://sourceforge/${PN}/oamenace-lang-en-${PV}.tar.bz2 |
38 |
+ linguas_en? ( mirror://sourceforge/${PN}/oamenace-lang-en-${PV}.tar.bz2 ) |
39 |
linguas_de? ( mirror://sourceforge/${PN}/oamenace-lang-de-${PV}.tar.bz2 ) |
40 |
linguas_ru? ( mirror://sourceforge/${PN}/oamenace-lang-ru-${PV}.tar.bz2 ) |
41 |
+ !linguas_en? ( !linguas_de? ( !linguas_ru? ( mirror://sourceforge/${PN}/oamenace-lang-en-${PV}.tar.bz2 ) ) ) |
42 |
mirror://gentoo/${PN}.png" |
43 |
|
44 |
LICENSE="GPL-3" |
45 |
SLOT="0" |
46 |
KEYWORDS="~amd64 ~x86" |
47 |
-IUSE="linguas_de linguas_ru" |
48 |
+IUSE="linguas_en linguas_de linguas_ru" |
49 |
|
50 |
DEPEND="virtual/opengl |
51 |
virtual/glu |
52 |
- media-libs/libsdl[joystick] |
53 |
+ media-libs/libsdl[joystick,video] |
54 |
media-libs/openal |
55 |
media-libs/freealut |
56 |
media-libs/libogg |
57 |
@@ -32,10 +33,35 @@ |
58 |
|
59 |
src_prepare() { |
60 |
epatch "${FILESDIR}"/${P}-cmake.patch |
61 |
+ if use linguas_en ; then |
62 |
+ einfo "Picking en for language set" |
63 |
+ mv ../gamelang_en.vfs ../gamelang.vfs |
64 |
+ elif use linguas_de ; then |
65 |
+ einfo "Picking de for language set" |
66 |
+ sed -i \ |
67 |
+ -e '/^#define EN/s:^://:' \ |
68 |
+ -e '/#define DE/s://::' \ |
69 |
+ AstroMenaceSource/Defines.h \ |
70 |
+ || die "sed failed" |
71 |
+ mv ../gamelang_de.vfs ../gamelang.vfs |
72 |
+ elif use linguas_ru ; then |
73 |
+ einfo "Picking ru for language set" |
74 |
+ sed -i \ |
75 |
+ -e '/^#define EN/s:^://:' \ |
76 |
+ -e '/#define RU/s://::' \ |
77 |
+ AstroMenaceSource/Defines.h \ |
78 |
+ || die "sed failed" |
79 |
+ mv ../gamelang_ru.vfs ../gamelang.vfs |
80 |
+ else |
81 |
+ einfo "Picking en for language set" |
82 |
+ mv ../gamelang_en.vfs ../gamelang.vfs |
83 |
+ fi |
84 |
+ rm -f ../gamelang_* |
85 |
} |
86 |
|
87 |
src_configure() { |
88 |
local mycmakeargs="-DDATADIR=${GAMES_DATADIR}/${PN}" |
89 |
+ |
90 |
cmake-utils_src_configure |
91 |
} |
92 |
|
93 |
@@ -44,10 +70,10 @@ |
94 |
} |
95 |
|
96 |
src_install() { |
97 |
- newgamesbin "${CMAKE_BUILD_DIR}"/AstroMenace ${PN} || die "newgamesbin failed" |
98 |
+ newgamesbin "${CMAKE_BUILD_DIR}"/AstroMenace ${PN} \ |
99 |
+ || die "newgamesbin failed" |
100 |
insinto "${GAMES_DATADIR}"/${PN} |
101 |
doins -r ../DATA ../*.vfs || die "doins failed" |
102 |
- dosym gamelang_en.vfs "${GAMES_DATADIR}"/${PN}/gamelang.vfs |
103 |
doicon "${DISTDIR}"/${PN}.png |
104 |
make_desktop_entry ${PN} OpenAstroMenace |
105 |
dodoc ReadMe.txt |
106 |
|
107 |
|
108 |
|
109 |
1.5 games-action/openastromenace/ChangeLog |
110 |
|
111 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-action/openastromenace/ChangeLog?rev=1.5&view=markup |
112 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-action/openastromenace/ChangeLog?rev=1.5&content-type=text/plain |
113 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-action/openastromenace/ChangeLog?r1=1.4&r2=1.5 |
114 |
|
115 |
Index: ChangeLog |
116 |
=================================================================== |
117 |
RCS file: /var/cvsroot/gentoo-x86/games-action/openastromenace/ChangeLog,v |
118 |
retrieving revision 1.4 |
119 |
retrieving revision 1.5 |
120 |
diff -u -r1.4 -r1.5 |
121 |
--- ChangeLog 27 May 2009 14:23:14 -0000 1.4 |
122 |
+++ ChangeLog 4 Nov 2009 04:33:06 -0000 1.5 |
123 |
@@ -1,6 +1,10 @@ |
124 |
# ChangeLog for games-action/openastromenace |
125 |
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
126 |
-# $Header: /var/cvsroot/gentoo-x86/games-action/openastromenace/ChangeLog,v 1.4 2009/05/27 14:23:14 nyhm Exp $ |
127 |
+# $Header: /var/cvsroot/gentoo-x86/games-action/openastromenace/ChangeLog,v 1.5 2009/11/04 04:33:06 mr_bones_ Exp $ |
128 |
+ |
129 |
+ 04 Nov 2009; Michael Sterrett <mr_bones_@g.o> |
130 |
+ openastromenace-1.2.0.ebuild: |
131 |
+ Actually work with LINGUAS support (bug #234729) |
132 |
|
133 |
27 May 2009; Tristan Heaven <nyhm@g.o> |
134 |
openastromenace-1.2.0.ebuild: |