Gentoo Archives: gentoo-commits

From: "Alfredo Tupone (tupone)" <tupone@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in games-strategy/ufo-ai: metadata.xml ChangeLog ufo-ai-2.2.1.ebuild
Date: Sat, 04 Oct 2008 19:46:10
Message-Id: E1KmD4o-0002uc-Uc@stork.gentoo.org
1 tupone 08/10/04 19:46:06
2
3 Modified: metadata.xml ChangeLog
4 Added: ufo-ai-2.2.1.ebuild
5 Log:
6 Version bump to 2.2.1 Bug #206145 by Jaak Ristioja
7 (Portage version: 2.1.4.4)
8
9 Revision Changes Path
10 1.2 games-strategy/ufo-ai/metadata.xml
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-strategy/ufo-ai/metadata.xml?rev=1.2&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-strategy/ufo-ai/metadata.xml?rev=1.2&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-strategy/ufo-ai/metadata.xml?r1=1.1&r2=1.2
15
16 Index: metadata.xml
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/games-strategy/ufo-ai/metadata.xml,v
19 retrieving revision 1.1
20 retrieving revision 1.2
21 diff -u -r1.1 -r1.2
22 --- metadata.xml 11 Mar 2004 02:26:22 -0000 1.1
23 +++ metadata.xml 4 Oct 2008 19:46:06 -0000 1.2
24 @@ -2,4 +2,7 @@
25 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
26 <pkgmetadata>
27 <herd>games</herd>
28 +<use>
29 + <flag name='editor'>Build map editor</flag>
30 +</use>
31 </pkgmetadata>
32
33
34
35 1.20 games-strategy/ufo-ai/ChangeLog
36
37 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-strategy/ufo-ai/ChangeLog?rev=1.20&view=markup
38 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-strategy/ufo-ai/ChangeLog?rev=1.20&content-type=text/plain
39 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-strategy/ufo-ai/ChangeLog?r1=1.19&r2=1.20
40
41 Index: ChangeLog
42 ===================================================================
43 RCS file: /var/cvsroot/gentoo-x86/games-strategy/ufo-ai/ChangeLog,v
44 retrieving revision 1.19
45 retrieving revision 1.20
46 diff -u -r1.19 -r1.20
47 --- ChangeLog 24 Aug 2008 14:56:35 -0000 1.19
48 +++ ChangeLog 4 Oct 2008 19:46:06 -0000 1.20
49 @@ -1,6 +1,12 @@
50 # ChangeLog for games-strategy/ufo-ai
51 # Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
52 -# $Header: /var/cvsroot/gentoo-x86/games-strategy/ufo-ai/ChangeLog,v 1.19 2008/08/24 14:56:35 tupone Exp $
53 +# $Header: /var/cvsroot/gentoo-x86/games-strategy/ufo-ai/ChangeLog,v 1.20 2008/10/04 19:46:06 tupone Exp $
54 +
55 +*ufo-ai-2.2.1 (04 Oct 2008)
56 +
57 + 04 Oct 2008; <tupone@g.o> +files/ufo-ai-2.2.1-gentoo.patch,
58 + +ufo-ai-2.2.1.ebuild:
59 + Version bump to 2.2.1 Bug #206145 by Jaak Ristioja
60
61 24 Aug 2008; Tupone Alfredo <tupone@g.o>
62 +files/ufo-ai-2.1.1-dprintf.patch, ufo-ai-2.1.1-r1.ebuild:
63
64
65
66 1.1 games-strategy/ufo-ai/ufo-ai-2.2.1.ebuild
67
68 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-strategy/ufo-ai/ufo-ai-2.2.1.ebuild?rev=1.1&view=markup
69 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-strategy/ufo-ai/ufo-ai-2.2.1.ebuild?rev=1.1&content-type=text/plain
70
71 Index: ufo-ai-2.2.1.ebuild
72 ===================================================================
73 # Copyright 1999-2008 Gentoo Foundation
74 # Distributed under the terms of the GNU General Public License v2
75 # $Header: /var/cvsroot/gentoo-x86/games-strategy/ufo-ai/ufo-ai-2.2.1.ebuild,v 1.1 2008/10/04 19:46:06 tupone Exp $
76
77 inherit eutils autotools games
78
79 MY_P="${P/o-a/oa}"
80
81 DESCRIPTION="UFO: Alien Invasion - X-COM inspired strategy game"
82 HOMEPAGE="http://ufoai.sourceforge.net/"
83 SRC_URI="mirror://sourceforge/ufoai/${MY_P}-source.tar.bz2
84 mirror://sourceforge/ufoai/${MY_P}-data.tar"
85
86 LICENSE="GPL-2"
87 SLOT="0"
88 KEYWORDS="~amd64 ~ppc ~x86"
89 IUSE="dedicated doc editor mmx"
90
91 # Dependencies and more instructions can be found here:
92 # http://ufoai.ninex.info/wiki/index.php/Compile_for_Linux
93 RDEPEND="!dedicated? (
94 virtual/opengl
95 virtual/glu
96 media-libs/libsdl
97 media-libs/sdl-ttf
98 media-libs/sdl-mixer
99 media-libs/jpeg
100 media-libs/libpng
101 media-libs/libogg
102 media-libs/libvorbis
103 x11-proto/xf86vidmodeproto
104 )
105 editor? ( media-libs/jpeg )
106 net-misc/curl
107 sys-devel/gettext"
108
109 DEPEND="${RDEPEND}
110 doc? ( virtual/latex-base )"
111
112 S=${WORKDIR}/${MY_P}-source
113
114 src_unpack() {
115 unpack ${A}
116 cd "${S}"
117 # move data from packages to source dir
118 mv "${WORKDIR}/base" "${S}"
119
120 # Set basedir & fixes bug in finding text files - it should use fs_basedir
121 epatch "${FILESDIR}"/${P}-gentoo.patch
122
123 sed -i \
124 -e "s:@GENTOO_DATADIR@:${GAMES_DATADIR}/${PN}:" \
125 src/common/files.c \
126 src/tools/gtkradiant/games/ufoai.game \
127 src/client/cl_main.c \
128 src/client/cl_language.c \
129 || die "sed failed"
130 }
131
132 src_compile() {
133 egamesconf \
134 $(use_enable mmx) \
135 --enable-release \
136 $(use_enable editor ufo2map) \
137 --enable-dedicated \
138 $(use_enable !dedicated client) \
139 --with-shaders
140
141 emake lang || die "emake langs failed"
142
143 if use doc ; then
144 emake pdf-manual || die "emake pdf-manual failed (USE=doc)"
145 fi
146
147 emake || die "emake failed"
148 }
149
150 src_install() {
151 # server
152 dogamesbin ufoded || die "Failed installing server"
153 newicon src/ports/linux/installer/data/ufo.xpm ${PN}.xpm \
154 || die "Failed installing icon"
155 make_desktop_entry ${PN}-ded "UFO: Alien Invasion Server" ${PN}.xpm
156 if ! use dedicated ; then
157 # client
158 newgamesbin ufo ${PN} || die "Failed installing client"
159 make_desktop_entry ${PN} "UFO: Alien Invasion" ${PN}.xpm
160 fi
161
162 if use editor ; then
163 dogamesbin ufo2map || die "Failed installing editor"
164 fi
165
166 insinto "${GAMES_DATADIR}"/${PN}
167 doins -r base || die "doins -r failed"
168 if use doc ; then
169 dodoc src/docs/tex/ufo-manual_EN.pdf || die "Failed installing manual"
170 fi
171
172 prepgamesdirs
173 }