Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 115354 Details for
Bug 141298
ebuild: UFO:Alien Invasion 2.0-rc6 (games-strategy/ufo-ai)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
ufo-ai-2.1.ebuild
ufo-ai-2.1.ebuild (text/plain), 3.64 KB, created by
Paul Bredbury
on 2007-04-03 12:26:56 UTC
(
hide
)
Description:
ufo-ai-2.1.ebuild
Filename:
MIME Type:
Creator:
Paul Bredbury
Created:
2007-04-03 12:26:56 UTC
Size:
3.64 KB
patch
obsolete
># Copyright 1999-2007 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: $ > >inherit eutils autotools flag-o-matic games > >MY_PV=${PV/_rc/-RC} >MY_P="ufoai-${MY_PV}" >MY_SF="mirror://sourceforge/ufoai" > >DESCRIPTION="UFO: Alien Invasion - X-COM inspired strategy game" >HOMEPAGE="http://www.ufoai.net/" >SRC_URI="${MY_SF}/music.tar.bz2 > ${MY_SF}/${MY_P}-data.tar > ${MY_SF}/${MY_P}-source.tar.bz2 > ${MY_SF}/${MY_P}-i18n.tar.bz2" ># Map data is already in the main data tarball ># ${MY_SF}/${MY_P}-mapsource.tar.bz2 > >LICENSE="GPL-2" >SLOT="0" >KEYWORDS="~x86" >IUSE="alsa arts debug dedicated dga doc ipv6 jack master opengl oss paranoid sdl vidmode" > ># Info at http://ufoai.ninex.info/wiki/index.php/Compile_for_Linux >UIRDEPEND="virtual/opengl > virtual/glu > sdl? ( > >=media-libs/libsdl-1.2.7 > >=media-libs/sdl-ttf-2.0.7 ) > dga? ( x11-libs/libXxf86dga ) > x11-libs/libX11" >UIDEPEND="x11-proto/xf86vidmodeproto > x11-proto/xproto" >RDEPEND="alsa? ( media-libs/alsa-lib ) > arts? ( kde-base/arts ) > opengl? ( ${UIRDEPEND} ) > !opengl? ( sdl? ( ${UIRDEPEND} ) ) > >=media-libs/jpeg-6b-r7 > media-libs/libpng > >=media-libs/libogg-1.1 > >=media-libs/libvorbis-1.1 > jack? ( >=media-sound/jack-0.100.0 ) > sys-devel/gettext > >=sys-libs/glibc-2.4 > >=sys-libs/zlib-1.2.3" >DEPEND="${RDEPEND} > opengl? ( ${UIDEPEND} ) > !opengl? ( sdl? ( ${UIDEPEND} ) ) > doc? ( app-doc/doxygen )" > >S=${WORKDIR}/${MY_P}-source >dir=${GAMES_DATADIR}/${PN} >libdir=${GAMES_LIBDIR}/${PN} > >pkg_setup() { > games_pkg_setup > > if ! use sdl ; then > ewarn "Enable the 'sdl' USE flag if ufo-ai does not compile." > fi >} > >src_unpack() { > unpack ${A} > cd "${S}" > > # Set libdir > sed -i \ > -e "s:libPath, \"\.\":libPath, \"${libdir}\":" \ > src/{client,ports/linux}/*.c || die "sed *.c failed" > > sed -i \ > -e "s:\"s_libdir\", \"\":\"s_libdir\", \"${libdir}\":" \ > src/client/snd_ref.c || die "sed snd_ref.c failed" > > sed -i \ > -e "s:game\.so\", path:game\.so\", \"${libdir}\":" \ > src/ports/linux/sys_linux.c || die "sed sys_linux.c failed" > > # Set basedir > sed -i \ > -e "s:\"fs_basedir\", \"\.\":\"fs_basedir\", \"${dir}\":" \ > src/qcommon/files.c || die "sed files.c failed" > > sed -i \ > -e "s:/usr/local/games/ufoai:${dir}:" \ > src/tools/gtkradiant/games/ufoai.game || die "sed ufoai.game failed" > > # Fixes bug in finding text files - it should use fs_basedir > sed -i \ > -e "s:FS_GetCwd():\"${dir}\":" \ > src/qcommon/common.c || die "sed common.c failed" > > eautoreconf >} > >src_compile() { > yesno() { useq $1 && echo yes || echo no ; } > ># gettext is required to show the intro text. ># egamesconf fails with openal. ># $(use_with openal) > egamesconf \ > $(use_enable dedicated) \ > $(use_enable master) \ > $(use_enable !debug release) \ > $(use_enable paranoid) \ > $(use_with opengl vid-glx) \ > $(use_with sdl) \ > $(use_with sdl snd-sdl) \ > $(use_with alsa snd-alsa) \ > $(use_with arts snd-arts) \ > $(use_with jack snd-jack) \ > $(use_with oss snd-oss) \ > $(use_with dga vid-dga) \ > $(use_with vidmode vid-vidmode) \ > $(use_with ipv6) \ > --with-gettext \ > --without-openal \ > || die "egamesconf failed" > > emake \ > || die "emake failed" > > if use doc ; then > emake docs || die "emake docs failed" > fi >} > >src_install() { > local f > > exeinto "${libdir}" > for f in *.so ; do > doexe "${f}" || die "doexe ${f} failed" > done > > if [[ -f base/game.so ]] ; then > doexe base/game.so || die > fi > > for f in ufo{,ded,2map,master} ; do > if [[ -f "${f}" ]] ; then > dogamesbin "${f}" || die > fi > done > > insinto "${dir}" > doins -r "${WORKDIR}"/{base,music} \ > || die "doins -r failed" > > if use doc ; then > dohtml -r "${WORKDIR}"/docs/html/* > fi > > prepgamesdirs >} > >pkg_postinst() { > games_pkg_postinst > > elog "To play the game, run: ufo" >}
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 141298
:
102043
|
109097
|
115344
|
115354
|
115361