diff options
author | quazgar <quazgar@droggelbecher> | 2015-10-18 20:31:24 +0200 |
---|---|---|
committer | Patrice Clement <monsieurp@gentoo.org> | 2015-11-17 13:14:28 +0000 |
commit | 50aff92142cb84ec55fa5237d1c8844d8dd33fe5 (patch) | |
tree | 4527dd6b06a9e8eafaf1405ef20734e67e79ecda /games-strategy | |
parent | net-misc/wget: Removed old. (diff) | |
download | gentoo-50aff92142cb84ec55fa5237d1c8844d8dd33fe5.tar.gz gentoo-50aff92142cb84ec55fa5237d1c8844d8dd33fe5.tar.bz2 gentoo-50aff92142cb84ec55fa5237d1c8844d8dd33fe5.zip |
games-strategy/ufo-ai: Version bump to 2.5
Ebuild taken from bug #515660 and upgraded to EAPI 5.
Diffstat (limited to 'games-strategy')
-rw-r--r-- | games-strategy/ufo-ai/Manifest | 2 | ||||
-rw-r--r-- | games-strategy/ufo-ai/ufo-ai-2.5.ebuild | 128 |
2 files changed, 130 insertions, 0 deletions
diff --git a/games-strategy/ufo-ai/Manifest b/games-strategy/ufo-ai/Manifest index 6f19f0d848ef..a99613dc2f09 100644 --- a/games-strategy/ufo-ai/Manifest +++ b/games-strategy/ufo-ai/Manifest @@ -1,3 +1,5 @@ DIST 1maps.pk3 242016 SHA256 8cdb8c231c0ba98900d97012b62c5cef72ab5710fe3f087e534496a66f7b0e4e SHA512 9615b365e590dceb82362e7cd683980e15401a3b5a2b359a33c7ed2a4c51e5328efb352618cc48f46971a2ced1717276b5270ca6bf6d2bc7fc2b2238030eb3ae WHIRLPOOL 8e798ffeaa83609114fd239ea8f379ee54fa6038735a09bd3abe3076073e92b44e7fa867c893d597577da462b4e583fb0a2bba7cd2014a9f4b4bb8ef04b377e6 DIST ufoai-2.4-data.tar 937062400 SHA256 6bb322fc0362781d07439799de32c677884cef7c96fcf17dd87c62cc108030b7 SHA512 471eab2f62cad144fe9966317d48c408fba19de0c33cf7414918b502c723b722af38a025f808848698d9a06ffc10fb0faac145dd01dcd3d321547c87da1c6246 WHIRLPOOL 139251bdbd76f86cb38175eb9c14149ea0cab6bbcb04e2dba7351cdb5b0e21bdfd231e350c0af4f52379d0c5bee91f0512422a7eb9f6339eb6a07170d64fec0c DIST ufoai-2.4-source.tar.bz2 16875353 SHA256 254a61b770f141374d57e5c2589048be9298d0a920e914c6e72c2b98255bb94f SHA512 3f9d0df7392f50c201464c81e42435f860df97d5d7a2ef53bb9a05d2b2fc645a1130baaf16fc34818b88bb07b8cf83283f7479d685cbd3caf80ea7522e13c56f WHIRLPOOL 0e68149ab2b3eeffb7134e65cc29de9cecf60dc89c965958a0d669c2d22462d05b89b0a81a3225ebbd7e47015fc63697cbad365136706f4853f9c1e690b0667d +DIST ufoai-2.5-data.tar 1269913600 SHA256 0d12041cba3aaaba1ce114650c36586d286dcce51c721844c06fdace06e307b8 SHA512 429ddc33391aa33ca5ff1788a01114a5c8eb0bb6d66a5bedb1c88c3a46810813cade2ecd69b4ef4f18e9dd6b41485c1bf9f9b0f13fc9255cbf1f9484186f883b WHIRLPOOL d10e517ebd158a65e427f3d105df89d0ee5eb2900b99142d0e5b044c3bdd9f5063c6774c4570f93da87f408b0099a364e48ad7cec1638b4e6c6282c495557f8e +DIST ufoai-2.5-source.tar.bz2 24239539 SHA256 0c7cc3bc9efeb276f71cbe6ee8ff7c76f98d183de79f1a069fa63059cf182a8f SHA512 072fe8820b1b242bb13f0820459fc27092b8597573231c8921c711859df39c8e28d9854e8a0300ebabb38cdeb99db16bed388a1391ba9f54100268b831db056f WHIRLPOOL 23cf4c88e88a85f5e6857e8c91e55e19bfce3c59d49168d16deca58a4ce9de25f942f86d7219c6d07f4b8dab2649068462616b38191ceb3b03973fed165bf058 diff --git a/games-strategy/ufo-ai/ufo-ai-2.5.ebuild b/games-strategy/ufo-ai/ufo-ai-2.5.ebuild new file mode 100644 index 000000000000..ca3d0447252d --- /dev/null +++ b/games-strategy/ufo-ai/ufo-ai-2.5.ebuild @@ -0,0 +1,128 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils flag-o-matic games + +MY_P=${P/ufo-ai/ufoai} + +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" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="debug server editor +client sse profile" + +# Dependencies and more instructions can be found here: +# http://ufoai.ninex.info/wiki/index.php/Compile_for_Linux +DEPEND="!server? ( + virtual/opengl + virtual/glu + media-libs/libsdl2 + media-libs/sdl2-image[jpeg,png] + media-libs/sdl2-ttf + media-libs/sdl2-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 + )" +RDEPEND="${DEPEND}" + +S=${WORKDIR}/${MY_P}-source + +pkg_setup() { + if use profile; then + ewarn "USE=\"profile\" is incompatible with the hardened profile's -pie flag." + fi +} + +src_unpack() { + unpack ${MY_P}-source.tar.bz2 + cd "${S}" + pwd + unpack ${MY_P}-data.tar +} + +src_configure() { + # they are special and provide hand batched configure file + local myconf=" + --disable-cgame-campaign + --disable-cgame-multiplayer + --disable-cgame-skirmish + --disable-memory + --disable-testall + --disable-ufomodel + --disable-ufoslicer + $(use_enable !debug release) + $(use_enable editor uforadiant) + $(use_enable editor ufo2map) + $(use_enable server ufoded) + $(use_enable client ufo) + $(use_enable sse) + --enable-game + --disable-paranoid + $(use_enable profile profiling) + --bindir="${GAMES_BINDIR}" + --libdir="$(games_get_libdir)" + --datadir="${GAMES_DATADIR}/${PN/-}" + --localedir="${EPREFIX}/usr/share/locale/" + --prefix="${GAMES_PREFIX}" + " + echo "./configure ${myconf}" + ./configure ${myconf} || die +} + +src_compile() { + emake + emake lang + + if use editor; then + emake uforadiant + fi +} + +src_install() { + newicon src/ports/linux/ufo.png ${PN}.png + if use server; then + dobin ufoded + make_desktop_entry ufoded "UFO: Alien Invasion Server" ${PN} + fi + if use client; then + dobin ufo + make_desktop_entry ufo "UFO: Alien Invasion" ${PN} + fi + + if use editor; then + dobin ufo2map ufomodel + fi + + # install data + insinto "${GAMES_DATADIR}"/${PN/-} + doins -r base || die + rm -rf "${ED}/${GAMES_DATADIR}/${PN/-}/base/game.so" + dogameslib base/game.so + + # move translations where they belong + dodir "${GAMES_DATADIR_BASE}/locale" + mv "${ED}/${GAMES_DATADIR}/${PN/-}/base/i18n/"* \ + "${ED}/${GAMES_DATADIR_BASE}/locale/" || die + rm -rf "${ED}/${GAMES_DATADIR}/${PN/-}/base/i18n/" || die + + prepgamesdirs +} |