Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 286595 Details for
Bug 340343
games-strategy/megaglest: new package
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
games-strategy/megaglest-3.5.2.4.ebuild
megaglest-3.5.2.4.ebuild (text/plain), 4.39 KB, created by
Patrick McMunn
on 2011-09-15 22:38:22 UTC
(
hide
)
Description:
games-strategy/megaglest-3.5.2.4.ebuild
Filename:
MIME Type:
Creator:
Patrick McMunn
Created:
2011-09-15 22:38:22 UTC
Size:
4.39 KB
patch
obsolete
># Copyright 1999-2011 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: $ > >EAPI=3 >inherit cmake-utils eutils wxwidgets games > >DESCRIPTION="Cross-platform 3D realtime strategy game" >HOMEPAGE="http://www.megaglest.org/" > >SRC_URI="mirror://sourceforge/${PN}/${PN}-source-${PV}.tar.xz" > >LICENSE="GPL-3" >SLOT="0" >KEYWORDS="~x86" >IUSE="libircclient miniupnpc static-libs" > ># MegaGlest configuration script will only attempt to locate an external libircclient or miniupnpc if -DWANT_STATIC_LIBS="off" ># If static-libs is off and an external copy is not present, it will use an embedded libircclient or miniupnpc. ># It will ALWAYS use embedded versions of these libraries if static-libs is enabled. > >DEPEND="app-arch/p7zip > app-arch/xz-utils > >=dev-util/cmake-2.8 > >=dev-lang/lua-5.1 > dev-libs/icu > dev-libs/libxml2 > dev-libs/pth > >=dev-libs/xerces-c-3 > >=media-libs/libsdl-1.2.5[joystick,video] > media-libs/libogg > >=media-libs/libpng-1.4 > !>=media-libs/libpng-1.5 > media-libs/libvorbis > media-libs/openal > net-libs/gnutls > libircclient? ( !static-libs? ( net-libs/libircclient ) ) > >=net-misc/curl-7.21.0 > miniupnpc? ( !static-libs? ( net-libs/miniupnpc ) ) > sys-libs/zlib > virtual/jpeg > virtual/opengl > virtual/glu > x11-libs/libX11 > x11-libs/wxGTK:2.8[X]" >RDEPEND="${DEPEND} > =games-strategy/megaglest-data-${PV}" > >S=${WORKDIR}/${PN}-${PV} > >pkg_setup() { > > games_pkg_setup > > if use libircclient || use miniupnpc; then > einfo > einfo "If you experience compilation failures with either the libircclient or miniupnpc" > einfo "USE flags enabled. Try disabling these USE flags in order to use the embedded" > einfo "versions of these libraries." > einfo > fi >} > >src_prepare() { > # Edit the glest.ini so the megaglest binary knows where to find its data. > # Otherwise megaglest will abort with "Can't open propertyMap file: /usr/games/bin//data/lang/english.lng" > sed -i -e "s|^DataPath=.*|DataPath=${GAMES_DATADIR}/${PN}|" glest.ini || die "sed glest.ini failed" >} > >src_configure() { > # Configure cmake > mycmakeargs=" > -DWANT_SVN_STAMP=off > -DCMAKE_INSTALL_PREFIX=/ > -DCUSTOM_DATA_INSTALL_PATH=${GAMES_DATADIR}/${PN}/ > -DMEGAGLEST_BIN_INSTALL_PATH=${GAMES_BINDIR} > -DMEGAGLEST_DATA_INSTALL_PATH=${GAMES_DATADIR}/${PN}/ > -DMEGAGLEST_DESKTOP_INSTALL_PATH=/usr/share/applications/ > -DMEGAGLEST_ICON_INSTALL_PATH=/usr/share/pixmaps/ > -DMEGAGLEST_MANPAGE_INSTALL_PATH=/usr/share/man/man6/" > > if use static-libs; then > mycmakeargs="${mycmakeargs} -DWANT_STATIC_LIBS=on" > else > mycmakeargs="${mycmakeargs} -DWANT_STATIC_LIBS=off" > fi > > if use !libircclient; then > mycmakeargs="${mycmakeargs} -DIRCCLIENT_INCLUDE_DIR= -DIRCCLIENT_LIBRARY=" > fi > > if use !miniupnpc; then > mycmakeargs="${mycmakeargs} -DMINIUPNP_INCLUDE_DIR= -DMINIUPNP_LIBRARY=" > fi > > cmake-utils_src_configure >} > >src_compile() { > cmake-utils_src_compile >} > >src_install() { > > # Initialize our installation directory > insinto "${GAMES_DATADIR}"/${PN} > > # Install config files > doins glest.ini || die "doins glest.ini failed" > doins glestkeys.ini || die "doins glestkeys.ini failed" > doins servers.ini || die "doins servers.ini failed" > > # Install standard documentation > dodoc AUTHORS.source_code.txt CHANGELOG.txt COPYRIGHT.source_code.txt README.txt gnu_gpl_3.0.txt || die "dodoc failed" > > # Install manpage > doman megaglest.6 || die "doman failed" > > # Install binaries > dogamesbin mk/linux/megaglest || die "dogamesbin megaglest failed" > dogamesbin mk/linux/megaglest_editor|| die "dogamesbin megaglest_editor failed" > dogamesbin mk/linux/megaglest_g3dviewer || die "dogamesbin megaglest_g3dviewer failed" > dogamesbin mk/linux/megaglest_configurator || die "dogamesbin megaglest_configurator failed" > > # Install icon > doicon megaglest.png || die "doicon megaglest.png failed" > > # Create desktop menu entries > make_desktop_entry megaglest MegaGlest ${PN} "Game;StrategyGame" > make_desktop_entry megaglest_editor "MegaGlest Editor" ${PN} "Game;StrategyGame" > make_desktop_entry megaglest_g3dviewer "MegaGlest G3Dviewer" ${PN} "Game;StrategyGame" > make_desktop_entry megaglest_configurator "MegaGlest Configurator" ${PN} "Game;StrategyGame" > > prepgamesdirs >} > >pkg_postinst() { > echo > einfo Note about Configuration: > einfo DO NOT directly edit glest.ini and glestkeys.ini but rather edit glestuser.ini > einfo and glestuserkeys.ini and create your user over-ride values in these files. > einfo On Linux, these files are located in ~/.megaglest/ > echo > > games_pkg_postinst >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 340343
:
255751
|
255753
|
261697
|
261699
|
271041
|
271043
|
286595
|
286597
|
286599
|
286727
|
286729
|
286731
|
295125
|
295127
|
295825
|
295827
|
297221
|
301947
|
301949
|
301951
|
301953
|
301955