Gentoo Archives: gentoo-commits

From: "Julian Ospald (hasufell)" <hasufell@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in games-strategy/megaglest: megaglest-3.9.0.4.ebuild ChangeLog megaglest-3.9.0.3.ebuild
Date: Wed, 20 Nov 2013 19:24:40
Message-Id: 20131120192436.AD2622004B@flycatcher.gentoo.org
1 hasufell 13/11/20 19:24:36
2
3 Modified: ChangeLog
4 Added: megaglest-3.9.0.4.ebuild
5 Removed: megaglest-3.9.0.3.ebuild
6 Log:
7 version bump, remove old
8
9 (Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key E73C35B3)
10
11 Revision Changes Path
12 1.17 games-strategy/megaglest/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-strategy/megaglest/ChangeLog?rev=1.17&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-strategy/megaglest/ChangeLog?rev=1.17&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-strategy/megaglest/ChangeLog?r1=1.16&r2=1.17
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/games-strategy/megaglest/ChangeLog,v
21 retrieving revision 1.16
22 retrieving revision 1.17
23 diff -u -r1.16 -r1.17
24 --- ChangeLog 19 Nov 2013 01:35:35 -0000 1.16
25 +++ ChangeLog 20 Nov 2013 19:24:36 -0000 1.17
26 @@ -1,6 +1,15 @@
27 # ChangeLog for games-strategy/megaglest
28 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/games-strategy/megaglest/ChangeLog,v 1.16 2013/11/19 01:35:35 hasufell Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/games-strategy/megaglest/ChangeLog,v 1.17 2013/11/20 19:24:36 hasufell Exp $
31 +
32 +*megaglest-3.9.0.4 (20 Nov 2013)
33 +
34 + 20 Nov 2013; Julian Ospald <hasufell@g.o> -megaglest-3.9.0.3.ebuild,
35 + -files/megaglest-3.9.0.3-Waddress.patch,
36 + -files/megaglest-3.9.0.3-fribidi.patch,
37 + -files/megaglest-3.9.0.3-static-build.patch, +megaglest-3.9.0.4.ebuild,
38 + +files/megaglest-3.9.0.4-static-build.patch:
39 + version bump, remove old
40
41 *megaglest-3.9.0.3 (19 Nov 2013)
42
43
44
45
46 1.1 games-strategy/megaglest/megaglest-3.9.0.4.ebuild
47
48 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-strategy/megaglest/megaglest-3.9.0.4.ebuild?rev=1.1&view=markup
49 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-strategy/megaglest/megaglest-3.9.0.4.ebuild?rev=1.1&content-type=text/plain
50
51 Index: megaglest-3.9.0.4.ebuild
52 ===================================================================
53 # Copyright 1999-2013 Gentoo Foundation
54 # Distributed under the terms of the GNU General Public License v2
55 # $Header: /var/cvsroot/gentoo-x86/games-strategy/megaglest/megaglest-3.9.0.4.ebuild,v 1.1 2013/11/20 19:24:36 hasufell Exp $
56
57 # google-breakpad
58 # TODO: fribidi, libvorbis static
59
60 EAPI=5
61 VIRTUALX_REQUIRED="manual"
62 inherit eutils flag-o-matic cmake-utils virtualx wxwidgets gnome2-utils games
63
64 DESCRIPTION="Cross-platform 3D realtime strategy game"
65 HOMEPAGE="http://www.megaglest.org/"
66 SRC_URI="mirror://sourceforge/${PN}/${PN}-source-${PV}.tar.xz"
67
68 LICENSE="GPL-3 BitstreamVera"
69 SLOT="0"
70 KEYWORDS="~amd64 ~x86"
71 IUSE="debug +editor fribidi sse sse2 sse3 static +streflop +tools +unicode wxuniversal +model-viewer videos"
72
73 RDEPEND="
74 >=dev-lang/lua-5.1
75 dev-libs/libxml2
76 media-libs/fontconfig
77 media-libs/freetype
78 media-libs/libsdl[X,audio,joystick,opengl,video]
79 media-libs/libvorbis
80 media-libs/openal
81 net-libs/gnutls
82 sys-libs/zlib
83 virtual/opengl
84 virtual/glu
85 x11-libs/libX11
86 x11-libs/libXext
87 editor? ( x11-libs/wxGTK:2.8[X,opengl] )
88 fribidi? ( dev-libs/fribidi )
89 model-viewer? ( x11-libs/wxGTK:2.8[X] )
90 !static? (
91 dev-libs/icu
92 dev-libs/xerces-c[icu]
93 media-libs/ftgl
94 media-libs/glew
95 media-libs/libpng:0
96 net-libs/libircclient
97 >=net-libs/miniupnpc-1.8
98 net-misc/curl
99 virtual/jpeg
100 )
101 videos? ( media-video/vlc )"
102 DEPEND="${RDEPEND}
103 sys-apps/help2man
104 virtual/pkgconfig
105 editor? ( ${VIRTUALX_DEPEND} )
106 model-viewer? ( ${VIRTUALX_DEPEND} )
107 static? (
108 dev-libs/icu[static-libs]
109 dev-libs/xerces-c[icu,static-libs]
110 media-libs/ftgl[static-libs]
111 media-libs/glew[static-libs]
112 media-libs/libpng:0[static-libs]
113 net-libs/libircclient[static-libs]
114 net-libs/miniupnpc[static-libs]
115 net-misc/curl[static-libs]
116 virtual/jpeg[static-libs]
117 )"
118 PDEPEND="~games-strategy/${PN}-data-3.9.0"
119
120 S=${WORKDIR}/${PN}-3.9.0
121
122 src_prepare() {
123 if use editor || use model-viewer ; then
124 WX_GTK_VER="2.8"
125 need-wxwidgets unicode
126 fi
127
128 epatch "${FILESDIR}"/${P}-static-build.patch
129 }
130
131 src_configure() {
132 if use sse3; then
133 SSE=3
134 elif use sse2; then
135 SSE=2
136 elif use sse; then
137 SSE=1
138 else
139 SSE=0
140 fi
141
142 local mycmakeargs=(
143 $(cmake-utils_use_enable fribidi FRIBIDI)
144 $(cmake-utils_use_build editor MEGAGLEST_MAP_EDITOR)
145 $(cmake-utils_use_build tools MEGAGLEST_MODEL_IMPORT_EXPORT_TOOLS)
146 $(cmake-utils_use_build model-viewer MEGAGLEST_MODEL_VIEWER)
147 $(cmake-utils_use_with videos VLC)
148 -DMAX_SSE_LEVEL_DESIRED="${SSE}"
149 -DMEGAGLEST_BIN_INSTALL_PATH="${GAMES_BINDIR}"
150 -DMEGAGLEST_DATA_INSTALL_PATH="${GAMES_DATADIR}/${PN}"
151 # icons are used at runtime, wrong default location share/pixmaps
152 -DMEGAGLEST_ICON_INSTALL_PATH="${GAMES_DATADIR}/${PN}"
153 -DUSE_FTGL=ON
154 $(cmake-utils_use_want static STATIC_LIBS)
155 $(cmake-utils_use_want streflop STREFLOP)
156 -DWANT_SVN_STAMP=off
157 $(cmake-utils_use static wxWidgets_USE_STATIC)
158 $(cmake-utils_use unicode wxWidgets_USE_UNICODE)
159 $(cmake-utils_use wxuniversal wxWidgets_USE_UNIVERSAL)
160
161 $(usex debug "-DBUILD_MEGAGLEST_UPNP_DEBUG=ON -DwxWidgets_USE_DEBUG=ON" "")
162 )
163
164 # support CMAKE_BUILD_TYPE=Gentoo
165 append-cppflags '-DCUSTOM_DATA_INSTALL_PATH=\\\"'${GAMES_DATADIR}/${PN}/'\\\"'
166
167 cmake-utils_src_configure
168 }
169
170 src_compile() {
171 if use editor || use model-viewer; then
172 VIRTUALX_COMMAND="cmake-utils_src_compile" virtualmake
173 else
174 cmake-utils_src_compile
175 fi
176 }
177
178 src_install() {
179 # rebuilds some targets randomly without fast option
180 emake -C "${CMAKE_BUILD_DIR}" DESTDIR="${D}" "$@" install/fast
181
182 dodoc {AUTHORS.source_code,CHANGELOG,README}.txt
183 doicon -s 48 ${PN}.png
184
185 use editor &&
186 make_desktop_entry ${PN}_editor "MegaGlest Map Editor"
187 use model-viewer &&
188 make_desktop_entry ${PN}_g3dviewer "MegaGlest Model Viewer"
189
190 # provided by megaglest-data
191 rm "${ED%/}/${GAMES_DATADIR}"/${PN}/${PN}.bmp || die
192
193 prepgamesdirs
194 }
195
196 pkg_preinst() {
197 games_pkg_preinst
198 gnome2_icon_savelist
199 }
200
201 pkg_postinst() {
202 einfo
203 elog 'Note about Configuration:'
204 elog 'DO NOT directly edit glest.ini and glestkeys.ini but rather glestuser.ini'
205 elog 'and glestuserkeys.ini in ~/.megaglest/ and create your user over-ride'
206 elog 'values in these files.'
207 elog
208 elog 'If you have an older graphics card which only supports OpenGL 1.2, and the'
209 elog 'game crashes when you try to play, try starting with "megaglest --disable-vbo"'
210 elog 'Some graphics cards may require setting Max Lights to 1.'
211 einfo
212
213 games_pkg_postinst
214 gnome2_icon_cache_update
215 }
216
217 pkg_postrm() {
218 gnome2_icon_cache_update
219 }