Gentoo Archives: gentoo-commits

From: "Tomas Chvatal (scarabeus)" <scarabeus@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in games-strategy/ufo-ai: ufo-ai-2.4.ebuild ChangeLog
Date: Tue, 01 May 2012 09:10:40
Message-Id: 20120501091028.ABE772004B@flycatcher.gentoo.org
1 scarabeus 12/05/01 09:10:28
2
3 Modified: ChangeLog
4 Added: ufo-ai-2.4.ebuild
5 Log:
6 Version bump to the latest release. Upstream now use hand-crafted build system :/ Fix locale init.
7
8 (Portage version: 2.2.0_alpha101/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.37 games-strategy/ufo-ai/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-strategy/ufo-ai/ChangeLog?rev=1.37&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-strategy/ufo-ai/ChangeLog?rev=1.37&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-strategy/ufo-ai/ChangeLog?r1=1.36&r2=1.37
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/games-strategy/ufo-ai/ChangeLog,v
20 retrieving revision 1.36
21 retrieving revision 1.37
22 diff -u -r1.36 -r1.37
23 --- ChangeLog 22 Jan 2012 16:35:28 -0000 1.36
24 +++ ChangeLog 1 May 2012 09:10:28 -0000 1.37
25 @@ -1,6 +1,13 @@
26 # ChangeLog for games-strategy/ufo-ai
27 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/games-strategy/ufo-ai/ChangeLog,v 1.36 2012/01/22 16:35:28 ssuominen Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/games-strategy/ufo-ai/ChangeLog,v 1.37 2012/05/01 09:10:28 scarabeus Exp $
30 +
31 +*ufo-ai-2.4 (01 May 2012)
32 +
33 + 01 May 2012; Tomáš Chvátal <scarabeus@g.o>
34 + +files/ufo-ai-2.4-locale.patch, +ufo-ai-2.4.ebuild:
35 + Version bump to the latest release. Upstream now use hand-crafted build system
36 + :/ Fix locale init.
37
38 22 Jan 2012; Samuli Suominen <ssuominen@g.o> ufo-ai-2.3.1-r1.ebuild:
39 Fix building with sys-libs/zlib >= 1.2.5.1-r1 (OF change) wrt #383179
40
41
42
43 1.1 games-strategy/ufo-ai/ufo-ai-2.4.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-strategy/ufo-ai/ufo-ai-2.4.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-strategy/ufo-ai/ufo-ai-2.4.ebuild?rev=1.1&content-type=text/plain
47
48 Index: ufo-ai-2.4.ebuild
49 ===================================================================
50 # Copyright 1999-2012 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/games-strategy/ufo-ai/ufo-ai-2.4.ebuild,v 1.1 2012/05/01 09:10:28 scarabeus Exp $
53
54 EAPI=3
55
56 inherit eutils flag-o-matic games
57
58 MY_P=${P/o-a/oa}
59
60 DESCRIPTION="UFO: Alien Invasion - X-COM inspired strategy game"
61 HOMEPAGE="http://ufoai.sourceforge.net/"
62 SRC_URI="mirror://sourceforge/ufoai/${MY_P}-source.tar.bz2
63 mirror://sourceforge/ufoai/${MY_P}-data.tar
64 http://mattn.ninex.info/1maps.pk3"
65
66 LICENSE="GPL-2"
67 SLOT="0"
68 KEYWORDS="~amd64 ~ppc ~x86"
69 IUSE="debug dedicated editor"
70
71 # Dependencies and more instructions can be found here:
72 # http://ufoai.ninex.info/wiki/index.php/Compile_for_Linux
73 RDEPEND="!dedicated? (
74 virtual/opengl
75 virtual/glu
76 media-libs/libsdl
77 media-libs/sdl-image[jpeg,png]
78 media-libs/sdl-ttf
79 media-libs/sdl-mixer
80 virtual/jpeg
81 media-libs/libpng:0
82 media-libs/libogg
83 media-libs/libvorbis
84 x11-proto/xf86vidmodeproto
85 )
86 net-misc/curl
87 sys-devel/gettext
88 sys-libs/zlib
89 editor? (
90 dev-libs/libxml2
91 virtual/jpeg
92 media-libs/openal
93 x11-libs/gtkglext
94 x11-libs/gtksourceview:2.0
95 )"
96
97 DEPEND="${RDEPEND}"
98
99 S=${WORKDIR}/${MY_P}-source
100
101 src_prepare() {
102 has_version '>=sys-libs/zlib-1.2.5.1-r1' && sed -i \
103 -e '1i#define OF(x) x' src/common/ioapi.h
104
105 epatch "${FILESDIR}"/${P}-locale.patch
106
107 cp "${DISTDIR}"/1maps.pk3 "${WORKDIR}"/base/ || die
108 mv "${WORKDIR}"/base/ "${S}"/ || die
109 }
110
111 src_configure() {
112 local myconf
113 # they are special and provide hand batched configure file
114 myconf="
115 --disable-dependency-tracking
116 $(use_enable !debug release)
117 $(use_enable editor ufo2map)
118 $(use_enable editor uforadiant)
119 --enable-ufoded
120 --bindir="${GAMES_BINDIR}"
121 --libdir="$(games_get_libdir)"
122 --datadir="${GAMES_DATADIR}/${PN/-}"
123 --localedir="${EPREFIX}/usr/share/locale/"
124 --prefix="${GAMES_PREFIX}"
125 "
126 echo "./configure ${myconf}"
127 ./configure ${myconf} || die
128 }
129
130 src_compile() {
131 emake || die
132 emake lang || die
133
134 if use editor; then
135 emake uforadiant || die
136 fi
137 }
138
139 src_install() {
140 newicon src/ports/linux/ufo.png ${PN}.png || die
141 dobin ufoded || die
142 make_desktop_entry ufoded "UFO: Alien Invasion Server" ${PN}
143 if ! use dedicated; then
144 dobin ufo || die
145 make_desktop_entry ufo "UFO: Alien Invasion" ${PN}
146 fi
147
148 if use editor; then
149 dobin ufo2map ufomodel || die
150 fi
151
152 # install data
153 insinto "${GAMES_DATADIR}"/${PN/-}
154 doins -r base || die
155 rm -rf "${ED}/${GAMES_DATADIR}/${PN/-}/base/game.so"
156 dogameslib base/game.so
157
158 # move translations where they belong
159 dodir "${GAMES_DATADIR_BASE}/locale" || die
160 mv "${ED}/${GAMES_DATADIR}/${PN/-}/base/i18n/"* \
161 "${ED}/${GAMES_DATADIR_BASE}/locale/" || die
162 rm -rf "${ED}/${GAMES_DATADIR}/${PN/-}/base/i18n/" || die
163
164 prepgamesdirs
165 }