Portage is a package management system used by Gentoo Linux
# ChangeLog for games-strategy/ufo-ai
# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/games-strategy/ufo-ai/ChangeLog,v 1.18 2008/02/29 19:49:07 carlo Exp $
29 Feb 2008; Carsten Lohrke
Remove icon extension from desktop entry to match Icon Theme Specification.
22 Jan 2008; Tristan Heaven
Add some missing x11 deps, bug #206430
*ufo-ai-2.1.1-r1 (27 Sep 2007)
27 Sep 2007; Tristan Heaven
savegame bugfix, bug #193201
08 Sep 2007; Tristan Heaven
HOMEPAGE update, bug #191694
21 Aug 2007; Michael Sterrett
fix HOMEPAGE; tidy
*ufo-ai-2.1.1 (17 Aug 2007)
17 Aug 2007; Chris Gianelloni
Version bump using ebuild by Paul Bredbury
#173097.
22 Feb 2007; Piotr JaroszyĆski
Transition to Manifest2.
06 Dec 2006; Chris Gianelloni
ufo-ai-0.10.040218.ebuild:
Remove old virtual/x11 dependency.
23 Feb 2006;
Modular X dependency fix
24 Jun 2004; Michael Sterrett
ufo-ai-0.10.040218.ebuild:
Fix error case; tidy
16 May 2004; Mike Frysinger
Make sure to filter-flags -fstack-protector #51116 by Alexander Kahl/Peter
Jensen
11 Mar 2004; Chris Gianelloni
ufo-ai-0.10.040218.ebuild:
Cleaning up redundant pkg_postinst.
11 Mar 2004; Chris Gianelloni
ufo-ai-0.10.040218.ebuild:
Fixed errors using ${ARCH} and adding back absolute paths.
11 Mar 2004; Chris Gianelloni
ufo-ai-0.10.040218.ebuild:
Adding S=.
11 Mar 2004; David Holm
files/0.10.040218-Makefile.patch:
Added ppc support.
11 Mar 2004; Chris Gianelloni
ufo-ai-0.10.040218.ebuild:
Fixing up ebuild to use complete paths and . Closing bug #44327.
*ufo-ai-0.10.040218 (10 Mar 2004)
10 Mar 2004; Chris Gianelloni
ufo-ai-0.10.040218.ebuild, files/0.10.040218-Makefile.patch:
Initial import. Ebuild submitted by Pol
#42418.
DIST music.tar.bz2 33767479 RMD160 a216e484e3421d0af165bb70365bcdb9a5285508 SHA1 9ab42094077e4fda6db5bef0f4f0fc971ac1f3c2 SHA256 1d4bdabcd5f30657fbec49d0af02c8b4a6ce42e208bdc101172c667de4781751
DIST ufoai-2.1.1-data.tar 267755520 RMD160 ddbf856710c18ed4b73061b14ed340b70b083ea4 SHA1 719e25c498b48f583d81500de81693853dee1ffa SHA256 5e92950f93d0dcef7fbdefc0c0da6f398b06476837bfce79243baa6227176f7c
DIST ufoai-2.1.1-i18n.tar.bz2 1065252 RMD160 2eb8a9551eae2268dcfffdef3a6ad44f7becf04f SHA1 77942366e6c8db8741416a67071587ff115741bf SHA256 ed3467118be97bcd27f983567ba09f2cf5492841c10a595b2bc51b4d1c48738e
DIST ufoai-2.1.1-source_hotfix.tar.bz2 6896824 RMD160 2769419411e875b9d2313bfa255e3eab806b17cb SHA1 8b11434714231facb8af6420cdc4e7c290883910 SHA256 485c4e78ae73d28c4a06156805925047391a3ae571883275c1875bbeb1651129
EBUILD ufo-ai-2.1.1-r1.ebuild 3526 RMD160 f743cf88ddcb26ea3e9d52b6a9af36b8f393e8ff SHA1 612c346b114b68779cb7b81b2b173f7048507a3b SHA256 102ff03a735ea2a3dd1df6dc3b133ceffbcb724c7c1f36ac7cd8623775714916
MISC ChangeLog 2475 RMD160 e59b51cb2ce365de117578cf394cb6466cd9211d SHA1 618808d270b9ca70b620ba5d80ec29bdeb22aa78 SHA256 0407ff4147171736c0fe1e37ebd10838bec434c3ef165ce1645f61674ad95de9
MISC metadata.xml 158 RMD160 cbd9984bb6b426c8c9cee5022fe0a26261612fea SHA1 be5251fa1dacef5c41b74761bb1c8c54fb633b9e SHA256 1423a4fdd4a79b1728a2056d9e300f7e1074253095d82726218d9e9b953888a3
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-strategy/ufo-ai/ufo-ai-2.1.1-r1.ebuild,v 1.3 2008/02/29 19:49:07 carlo Exp $
inherit eutils autotools games
MY_P=${P/-}
DESCRIPTION="UFO: Alien Invasion - X-COM inspired strategy game"
HOMEPAGE="http://ufoai.ninex.info/"
SRC_URI="mirror://sourceforge/ufoai/music.tar.bz2
mirror://sourceforge/ufoai/${MY_P}-data.tar
mirror://sourceforge/ufoai/${MY_P}-source_hotfix.tar.bz2
mirror://sourceforge/ufoai/${MY_P}-i18n.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE="alsa arts debug dedicated dga doc ipv6 jack master oss paranoid"
RDEPEND="virtual/opengl
virtual/glu
media-libs/libsdl
media-libs/sdl-ttf
media-libs/jpeg
media-libs/libpng
media-libs/libogg
media-libs/libvorbis
x11-libs/libXxf86vm
virtual/libintl
alsa? ( media-libs/alsa-lib )
arts? ( kde-base/arts )
dga? ( x11-libs/libXxf86dga )
jack? ( media-sound/jack-audio-connection-kit )"
DEPEND="${RDEPEND}
sys-devel/gettext
x11-proto/xf86vidmodeproto
x11-proto/xproto
doc? ( app-doc/doxygen )
dga? ( x11-proto/xf86dgaproto )"
S=${WORKDIR}/${MY_P}-source
dir=${GAMES_DATADIR}/${PN}
src_unpack() {
unpack ${A}
cd "${S}"
local libdir=$(games_get_libdir)/${PN}
# 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() {
# Forces building of client.
# 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) \
--with-vid-glx \
--with-vid-vidmode \
--with-sdl \
--with-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 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() {
# ufo is usually started by a "ufoai" wrapper script.
# Might as well standardize on the ebuild name, for minimum confusion.
newgamesbin ufo ${PN} || die
newicon src/ports/linux/installer/data/ufo.xpm ${PN}.xpm || die
make_desktop_entry ${PN} "UFO: Alien Invasion" ${PN}
if use dedicated ; then
dogamesbin ufoded || die
fi
if use master ; then
dogamesbin ufomaster || die
fi
if [[ -f ufo2map ]] ; then
dogamesbin ufo2map || die
fi
exeinto "$(games_get_libdir)/${PN}"
doexe *.so base/game.so || die "doexe ${f} failed"
insinto "${dir}"
doins -r "${WORKDIR}"/{base,music} || die "doins -r failed"
if use doc ; then
dohtml -r "${WORKDIR}"/docs/html/*
fi
prepgamesdirs
}