summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Gianelloni <wolf31o2@gentoo.org>2007-08-17 23:33:57 +0000
committerChris Gianelloni <wolf31o2@gentoo.org>2007-08-17 23:33:57 +0000
commit287154cf4379ee804a3d6cc2c23e927c3782a198 (patch)
tree6cb86cc2b19ad64b2e15157339859b02917791fb /games-strategy/ufo-ai
parentAdded blocker suggested in bug 189227. Wanted to avoid this, but it seems to ... (diff)
downloadgentoo-2-287154cf4379ee804a3d6cc2c23e927c3782a198.tar.gz
gentoo-2-287154cf4379ee804a3d6cc2c23e927c3782a198.tar.bz2
gentoo-2-287154cf4379ee804a3d6cc2c23e927c3782a198.zip
Version bump using ebuild by Paul Bredbury <brebs@sent.com> and closing bug #173097.
(Portage version: 2.1.3.6)
Diffstat (limited to 'games-strategy/ufo-ai')
-rw-r--r--games-strategy/ufo-ai/ChangeLog8
-rw-r--r--games-strategy/ufo-ai/files/digest-ufo-ai-0.10.0402182
-rw-r--r--games-strategy/ufo-ai/files/digest-ufo-ai-2.1.112
-rw-r--r--games-strategy/ufo-ai/ufo-ai-2.1.1.ebuild162
4 files changed, 181 insertions, 3 deletions
diff --git a/games-strategy/ufo-ai/ChangeLog b/games-strategy/ufo-ai/ChangeLog
index 09a2432b8891..013057e535f2 100644
--- a/games-strategy/ufo-ai/ChangeLog
+++ b/games-strategy/ufo-ai/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for games-strategy/ufo-ai
# Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-strategy/ufo-ai/ChangeLog,v 1.12 2007/02/22 00:05:44 peper Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-strategy/ufo-ai/ChangeLog,v 1.13 2007/08/17 23:33:57 wolf31o2 Exp $
+
+*ufo-ai-2.1.1 (17 Aug 2007)
+
+ 17 Aug 2007; Chris Gianelloni <wolf31o2@gentoo.org> +ufo-ai-2.1.1.ebuild:
+ Version bump using ebuild by Paul Bredbury <brebs@sent.com> and closing bug
+ #173097.
22 Feb 2007; Piotr Jaroszyński <peper@gentoo.org> ChangeLog:
Transition to Manifest2.
diff --git a/games-strategy/ufo-ai/files/digest-ufo-ai-0.10.040218 b/games-strategy/ufo-ai/files/digest-ufo-ai-0.10.040218
index ccc93298c389..c66496dd1e02 100644
--- a/games-strategy/ufo-ai/files/digest-ufo-ai-0.10.040218
+++ b/games-strategy/ufo-ai/files/digest-ufo-ai-0.10.040218
@@ -1,6 +1,4 @@
-MD5 52021c8dd7cbbe4e5af5039c3da60485 linux_ufoaidemo.zip 30745560
RMD160 7a376f617915c2d3f537cf7d50827eccca03fc97 linux_ufoaidemo.zip 30745560
SHA256 3fe261ce6808743bbfcddbdb324f521afef7446c84f162fcc8c5558fe1751e33 linux_ufoaidemo.zip 30745560
-MD5 f3c979d24ebeb06d7bafa32d9aebab24 ufoai_source_040218.zip 1548520
RMD160 7ca428ae08021ce7366bdaef02cbe6a0b5a99270 ufoai_source_040218.zip 1548520
SHA256 6d6b5b3b8e045742cbbef77d1a042102310f8452b5b4e0be363f15a86b7af748 ufoai_source_040218.zip 1548520
diff --git a/games-strategy/ufo-ai/files/digest-ufo-ai-2.1.1 b/games-strategy/ufo-ai/files/digest-ufo-ai-2.1.1
new file mode 100644
index 000000000000..938ce810776a
--- /dev/null
+++ b/games-strategy/ufo-ai/files/digest-ufo-ai-2.1.1
@@ -0,0 +1,12 @@
+MD5 7a832663638fa6eeedd0abd187edbe63 music.tar.bz2 33767479
+RMD160 a216e484e3421d0af165bb70365bcdb9a5285508 music.tar.bz2 33767479
+SHA256 1d4bdabcd5f30657fbec49d0af02c8b4a6ce42e208bdc101172c667de4781751 music.tar.bz2 33767479
+MD5 ae2ebfeaf34afab92638e128c76860b9 ufoai-2.1.1-data.tar 267755520
+RMD160 ddbf856710c18ed4b73061b14ed340b70b083ea4 ufoai-2.1.1-data.tar 267755520
+SHA256 5e92950f93d0dcef7fbdefc0c0da6f398b06476837bfce79243baa6227176f7c ufoai-2.1.1-data.tar 267755520
+MD5 e3d628c3bfde98b933620c6c30160666 ufoai-2.1.1-i18n.tar.bz2 1065252
+RMD160 2eb8a9551eae2268dcfffdef3a6ad44f7becf04f ufoai-2.1.1-i18n.tar.bz2 1065252
+SHA256 ed3467118be97bcd27f983567ba09f2cf5492841c10a595b2bc51b4d1c48738e ufoai-2.1.1-i18n.tar.bz2 1065252
+MD5 8f65edf93b7645dc68104f4542825dd5 ufoai-2.1.1-source.tar.bz2 6896537
+RMD160 cde3338705c41982c4ade660adbd1b26667c6c43 ufoai-2.1.1-source.tar.bz2 6896537
+SHA256 9a2866aa94296c53d904f6f9bf314fc1f10d51220efeb1c154b7604d6f5ff0cb ufoai-2.1.1-source.tar.bz2 6896537
diff --git a/games-strategy/ufo-ai/ufo-ai-2.1.1.ebuild b/games-strategy/ufo-ai/ufo-ai-2.1.1.ebuild
new file mode 100644
index 000000000000..68202dd5ec0e
--- /dev/null
+++ b/games-strategy/ufo-ai/ufo-ai-2.1.1.ebuild
@@ -0,0 +1,162 @@
+# Copyright 1999-2007 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.ebuild,v 1.1 2007/08/17 23:33:57 wolf31o2 Exp $
+
+inherit eutils autotools 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="~amd64 ~ppc ~x86"
+IUSE="alsa arts debug dedicated dga doc ipv6 jack master oss paranoid"
+
+# Info at http://ufoai.ninex.info/wiki/index.php/Compile_for_Linux
+UIRDEPEND="virtual/opengl
+ virtual/glu
+ >=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="${UIRDEPEND}
+ alsa? ( media-libs/alsa-lib )
+ arts? ( kde-base/arts )
+ >=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}
+ ${UIDEPEND}
+ doc? ( app-doc/doxygen )"
+
+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() {
+ yesno() { useq $1 && echo yes || echo no ; }
+
+# 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}.xpm
+
+ if use dedicated ; then
+ dogamesbin ufoded || die
+ fi
+
+ if use master ; then
+ dogamesbin ufomaster || die
+ fi
+
+ if [[ -f ufo2map ]] ; then
+ dogamesbin ufo2map || die
+ fi
+
+ local libdir=$(games_get_libdir)/${PN}
+ exeinto "${libdir}"
+ local f
+ for f in *.so base/game.so ; do
+ doexe "${f}" || die "doexe ${f} failed"
+ 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: ${PN}"
+ echo
+}