summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Sterrett <mr_bones_@gentoo.org>2012-07-16 19:05:07 +0000
committerMichael Sterrett <mr_bones_@gentoo.org>2012-07-16 19:05:07 +0000
commitd3a1b3bb49d96bd67c00ecfb8436e94f49e70f49 (patch)
treef265018cd5bda17b85444770664119d63d96e188 /games-strategy/ufo-ai
parentmarked x86 per bug 426834 (diff)
downloadhistorical-d3a1b3bb49d96bd67c00ecfb8436e94f49e70f49.tar.gz
historical-d3a1b3bb49d96bd67c00ecfb8436e94f49e70f49.tar.bz2
historical-d3a1b3bb49d96bd67c00ecfb8436e94f49e70f49.zip
old
Package-Manager: portage-2.1.10.65/cvs/Linux x86_64
Diffstat (limited to 'games-strategy/ufo-ai')
-rw-r--r--games-strategy/ufo-ai/ChangeLog6
-rw-r--r--games-strategy/ufo-ai/files/ufo-ai-2.3.1-libpng15.patch10
-rw-r--r--games-strategy/ufo-ai/ufo-ai-2.3.1-r1.ebuild115
3 files changed, 5 insertions, 126 deletions
diff --git a/games-strategy/ufo-ai/ChangeLog b/games-strategy/ufo-ai/ChangeLog
index f229f60e38ae..e88b7e1bb8d1 100644
--- a/games-strategy/ufo-ai/ChangeLog
+++ b/games-strategy/ufo-ai/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for games-strategy/ufo-ai
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-strategy/ufo-ai/ChangeLog,v 1.39 2012/06/08 11:48:07 phajdan.jr Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-strategy/ufo-ai/ChangeLog,v 1.40 2012/07/16 19:05:07 mr_bones_ Exp $
+
+ 16 Jul 2012; Michael Sterrett <mr_bones_@gentoo.org>
+ -files/ufo-ai-2.3.1-libpng15.patch, -ufo-ai-2.3.1-r1.ebuild:
+ old
08 Jun 2012; Pawel Hajdan jr <phajdan.jr@gentoo.org> ufo-ai-2.4.ebuild:
x86 stable wrt bug #418429
diff --git a/games-strategy/ufo-ai/files/ufo-ai-2.3.1-libpng15.patch b/games-strategy/ufo-ai/files/ufo-ai-2.3.1-libpng15.patch
deleted file mode 100644
index 2099f7ab72c0..000000000000
--- a/games-strategy/ufo-ai/files/ufo-ai-2.3.1-libpng15.patch
+++ /dev/null
@@ -1,10 +0,0 @@
---- src/shared/images.c.old 2011-04-02 19:31:52.000000000 +0200
-+++ src/shared/images.c 2011-04-02 19:32:13.000000000 +0200
-@@ -32,6 +32,7 @@
-
- #include <jpeglib.h>
- #include <png.h>
-+#include <zlib.h>
-
- /** image formats, tried in this order */
- static char *IMAGE_TYPES[] = { "tga", "png", "jpg", NULL };
diff --git a/games-strategy/ufo-ai/ufo-ai-2.3.1-r1.ebuild b/games-strategy/ufo-ai/ufo-ai-2.3.1-r1.ebuild
deleted file mode 100644
index 0b128c8bad28..000000000000
--- a/games-strategy/ufo-ai/ufo-ai-2.3.1-r1.ebuild
+++ /dev/null
@@ -1,115 +0,0 @@
-# Copyright 1999-2012 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.3.1-r1.ebuild,v 1.7 2012/01/22 16:35:28 ssuominen Exp $
-
-EAPI=2
-inherit eutils flag-o-matic games
-
-MY_P=${P/o-a/oa}
-
-DESCRIPTION="UFO: Alien Invasion - X-COM inspired strategy game"
-HOMEPAGE="http://ufoai.sourceforge.net/"
-SRC_URI="mirror://sourceforge/ufoai/${MY_P}-source.tar.bz2
- mirror://sourceforge/ufoai/${MY_P}-data.tar
- http://mattn.ninex.info/1maps.pk3"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~ppc x86"
-IUSE="debug dedicated doc editor"
-
-# Dependencies and more instructions can be found here:
-# http://ufoai.ninex.info/wiki/index.php/Compile_for_Linux
-RDEPEND="!dedicated? (
- virtual/opengl
- virtual/glu
- media-libs/libsdl
- media-libs/sdl-image[jpeg,png]
- media-libs/sdl-ttf
- media-libs/sdl-mixer
- virtual/jpeg
- media-libs/libpng:0
- media-libs/libogg
- media-libs/libvorbis
- x11-proto/xf86vidmodeproto
- )
- net-misc/curl
- sys-devel/gettext
- sys-libs/zlib
- editor? (
- dev-libs/libxml2
- virtual/jpeg
- media-libs/openal
- x11-libs/gtkglext
- x11-libs/gtksourceview:2.0
- )"
-
-DEPEND="${RDEPEND}
- doc? (
- virtual/latex-base
- dev-texlive/texlive-latexextra
- )"
-
-S=${WORKDIR}/${MY_P}-source
-
-src_prepare() {
- has_version '>=sys-libs/zlib-1.2.5.1-r1' && sed -i \
- -e '1i#define OF(x) x' src/common/ioapi.h
- epatch "${FILESDIR}"/${P}-libpng15.patch
- cp "${DISTDIR}"/1maps.pk3 "${WORKDIR}"/base/ || die
- mv "${WORKDIR}"/base/ "${S}"/ || die
-}
-
-src_configure() {
- strip-flags # bug #330381
- egamesconf \
- $(use_enable !debug release) \
- $(use_enable editor ufo2map) \
- $(use_enable editor uforadiant) \
- --enable-dedicated \
- $(use_enable !dedicated client) \
- --bindir="${GAMES_BINDIR}" \
- --datarootdir="${GAMES_DATADIR_BASE}" \
- --datadir="${GAMES_DATADIR}" \
- --localedir="${GAMES_DATADIR}/${PN/-}/base/i18n/"
-}
-
-src_compile() {
- if use doc; then
- emake pdf-manual || die
- fi
-
- emake || die
- emake lang || die
-
- if use editor; then
- emake uforadiant || die
- fi
-}
-
-src_install() {
- emake DESTDIR="${D}" install_exec || die
-
- newicon src/ports/linux/ufo.png ${PN}.png || die
- make_desktop_entry ufoded "UFO: Alien Invasion Server" ${PN}
- if ! use dedicated; then
- make_desktop_entry ufo "UFO: Alien Invasion" ${PN}
- fi
-
- # install data
- insinto "${GAMES_DATADIR}"/${PN/-}/base/
- doins base/*.pk3 || die
-
- if use doc ; then
- dodoc src/docs/tex/ufo-manual_EN.pdf || die
- fi
-
- # move translations where they belong
- dodir "${GAMES_DATADIR_BASE}/locale" || die
- mv "${D}/${GAMES_DATADIR}/${PN/-}/base/i18n/"* \
- "${D}/${GAMES_DATADIR_BASE}/locale/" || die
- rm -rf "${D}/${GAMES_DATADIR}/${PN/-}/base/i18n/" || die
- dosym "${GAMES_DATADIR_BASE}/locale/" "${GAMES_DATADIR}/${PN/-}/base/i18n" || die
-
- prepgamesdirs
-}