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