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