public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: games-strategy/ufo-ai/
@ 2015-11-17 13:17 Patrice Clement
  0 siblings, 0 replies; 3+ messages in thread
From: Patrice Clement @ 2015-11-17 13:17 UTC (permalink / raw
  To: gentoo-commits

commit:     aad301084de8b1716c1254bea93d15e49397a848
Author:     quazgar <quazgar <AT> droggelbecher>
AuthorDate: Sun Nov  8 21:44:50 2015 +0000
Commit:     Patrice Clement <monsieurp <AT> gentoo <DOT> org>
CommitDate: Tue Nov 17 13:14:36 2015 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aad30108

games-strategy/ufo-ai-2.5: Style changes.

Fixed a lot of style problems.  Also removed games.eclass inheritance and
editor USE flag.

Still needs work until the dedicated server works, but should definitely
be usable for playing.

 games-strategy/ufo-ai/ufo-ai-2.5.ebuild | 130 ++++++++++++++++++--------------
 1 file changed, 73 insertions(+), 57 deletions(-)

diff --git a/games-strategy/ufo-ai/ufo-ai-2.5.ebuild b/games-strategy/ufo-ai/ufo-ai-2.5.ebuild
index ca3d044..baf3a40 100644
--- a/games-strategy/ufo-ai/ufo-ai-2.5.ebuild
+++ b/games-strategy/ufo-ai/ufo-ai-2.5.ebuild
@@ -3,45 +3,55 @@
 # $Id$
 
 EAPI=5
-inherit eutils flag-o-matic games
+inherit eutils flag-o-matic gnome2-utils
 
 MY_P=${P/ufo-ai/ufoai}
 
+# better than the default "/usr/games/ufo/"
+MY_DATADIR="${EPREFIX}/usr/share/games/${PN/-}"
+
 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"
+	mirror://sourceforge/ufoai/${MY_P}-data.tar
+"
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~amd64 ~ppc ~x86"
-IUSE="debug server editor +client sse profile"
+KEYWORDS="~amd64 ~x86"
+# "editor" USE flag disabled until someone gets it to work
+# See http://ufoai.org/forum/index.php?topic=8978
+IUSE="debug dedicated profile"
 
 # Dependencies and more instructions can be found here:
 # http://ufoai.ninex.info/wiki/index.php/Compile_for_Linux
-DEPEND="!server? (
+DEPEND="!dedicated? (
 		virtual/opengl
 		virtual/glu
-		media-libs/libsdl2
+		media-libs/libsdl2[joystick,opengl,sound,threads,video]
 		media-libs/sdl2-image[jpeg,png]
 		media-libs/sdl2-ttf
 		media-libs/sdl2-mixer
-		virtual/jpeg
+		virtual/jpeg:62
 		media-libs/libpng:0
 		media-libs/libogg
 		media-libs/libvorbis
+		media-libs/libtheora
 		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
-	)"
+"
+	# editor? (
+	# 	dev-libs/libxml2
+	# 	virtual/jpeg:62
+	# 	media-libs/openal
+	# 	x11-libs/gtkglext
+	# 	x11-libs/gtksourceview:2.0
+	# )
+	# "
+
 RDEPEND="${DEPEND}"
 
 S=${WORKDIR}/${MY_P}-source
@@ -50,18 +60,28 @@ pkg_setup() {
 	if use profile; then
 		ewarn "USE=\"profile\" is incompatible with the hardened profile's -pie flag."
 	fi
+
+	einfo "
+	Note that the dedicated server (ufoded) is currently missing some
+	map files and therefore might not start:
+	http://ufoai.org/bugs/ufoalieninvasion/issues/5383
+
+	Help to fix this is welcome!
+"
+	if use dedicated ; then
+		ewarn "Only building dedicated server, which is known to still fail."
+	fi
 }
 
 src_unpack() {
 	unpack ${MY_P}-source.tar.bz2
-	cd "${S}"
-	pwd
+	cd "${S}" || die
 	unpack ${MY_P}-data.tar
 }
 
 src_configure() {
-	# they are special and provide hand batched configure file
-	local myconf="
+	# The configure script of UFO:AI is hand crafted and a bit special
+	local MY_CONF=(
 		--disable-cgame-campaign
 		--disable-cgame-multiplayer
 		--disable-cgame-skirmish
@@ -69,60 +89,56 @@ src_configure() {
 		--disable-testall
 		--disable-ufomodel
 		--disable-ufoslicer
+		--enable-ufoded
 		$(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
+		# $(use_enable !dedicated game)
+		--disable-uforadiant
+		--disable-ufo2map
+		# $(use_enable editor uforadiant)
+		# $(use_enable editor ufo2map)
 		--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
+		--prefix="${EPREFIX}"/usr/
+		--datadir="${MY_DATADIR}"
+	)
+	# econf does not work: "invalid option --build=x86_64-pc-linux-gnu"
+	./configure ${MY_CONF[*]} || die
 }
 
 src_compile() {
 	emake
 	emake lang
 
-	if use editor; then
-		emake uforadiant
-	fi
+	# 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
+	newicon -s 32 src/ports/linux/ufo.png ${PN}.png
+
+	emake DESTDIR="${D}" install
+
+	# Shell script wrappers are always created for ufo, ufoded and
+	# uforadiant, delete them if we don't need them
+	rm "${D}/usr/bin/uforadiant" || die
+	# if !use editor; then
+	# 	rm "${D}/usr/bin/uforadiant" || die
+	# fi
 
-	if use editor; then
-		dobin ufo2map ufomodel
+	if use dedicated; then
+		rm "${D}/usr/bin/ufo" || die
 	fi
+}
 
-	# install data
-	insinto "${GAMES_DATADIR}"/${PN/-}
-	doins -r base || die
-	rm -rf "${ED}/${GAMES_DATADIR}/${PN/-}/base/game.so"
-	dogameslib base/game.so
+pkg_preinst() {
+	gnome2_icon_savelist
+}
 
-	# 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
+pkg_postinst() {
+	gnome2_icon_cache_update
+}
 
-	prepgamesdirs
+pkg_postrm() {
+	gnome2_icon_cache_update
 }


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: games-strategy/ufo-ai/
@ 2015-11-17 13:17 Patrice Clement
  0 siblings, 0 replies; 3+ messages in thread
From: Patrice Clement @ 2015-11-17 13:17 UTC (permalink / raw
  To: gentoo-commits

commit:     50aff92142cb84ec55fa5237d1c8844d8dd33fe5
Author:     quazgar <quazgar <AT> droggelbecher>
AuthorDate: Sun Oct 18 18:31:24 2015 +0000
Commit:     Patrice Clement <monsieurp <AT> gentoo <DOT> org>
CommitDate: Tue Nov 17 13:14:28 2015 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=50aff921

games-strategy/ufo-ai: Version bump to 2.5

Ebuild taken from bug #515660 and upgraded to EAPI 5.

 games-strategy/ufo-ai/Manifest          |   2 +
 games-strategy/ufo-ai/ufo-ai-2.5.ebuild | 128 ++++++++++++++++++++++++++++++++
 2 files changed, 130 insertions(+)

diff --git a/games-strategy/ufo-ai/Manifest b/games-strategy/ufo-ai/Manifest
index 6f19f0d..a99613d 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 0000000..ca3d044
--- /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
+}


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: games-strategy/ufo-ai/
@ 2015-11-17 16:12 Michael Sterrett
  0 siblings, 0 replies; 3+ messages in thread
From: Michael Sterrett @ 2015-11-17 16:12 UTC (permalink / raw
  To: gentoo-commits

commit:     c9827c2e7e0c31802888b7b792dc3d25393e8979
Author:     Michael Sterrett <mr_bones_ <AT> gentoo <DOT> org>
AuthorDate: Tue Nov 17 16:11:55 2015 +0000
Commit:     Michael Sterrett <mr_bones_ <AT> gentoo <DOT> org>
CommitDate: Tue Nov 17 16:11:55 2015 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c9827c2e

remove incomplete non-maintainer commit

Package-Manager: portage-2.2.20.1

 games-strategy/ufo-ai/Manifest          |   2 -
 games-strategy/ufo-ai/ufo-ai-2.5.ebuild | 144 --------------------------------
 2 files changed, 146 deletions(-)

diff --git a/games-strategy/ufo-ai/Manifest b/games-strategy/ufo-ai/Manifest
index a99613d..6f19f0d 100644
--- a/games-strategy/ufo-ai/Manifest
+++ b/games-strategy/ufo-ai/Manifest
@@ -1,5 +1,3 @@
 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
deleted file mode 100644
index baf3a40..0000000
--- a/games-strategy/ufo-ai/ufo-ai-2.5.ebuild
+++ /dev/null
@@ -1,144 +0,0 @@
-# Copyright 1999-2015 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI=5
-inherit eutils flag-o-matic gnome2-utils
-
-MY_P=${P/ufo-ai/ufoai}
-
-# better than the default "/usr/games/ufo/"
-MY_DATADIR="${EPREFIX}/usr/share/games/${PN/-}"
-
-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 ~x86"
-# "editor" USE flag disabled until someone gets it to work
-# See http://ufoai.org/forum/index.php?topic=8978
-IUSE="debug dedicated profile"
-
-# Dependencies and more instructions can be found here:
-# http://ufoai.ninex.info/wiki/index.php/Compile_for_Linux
-DEPEND="!dedicated? (
-		virtual/opengl
-		virtual/glu
-		media-libs/libsdl2[joystick,opengl,sound,threads,video]
-		media-libs/sdl2-image[jpeg,png]
-		media-libs/sdl2-ttf
-		media-libs/sdl2-mixer
-		virtual/jpeg:62
-		media-libs/libpng:0
-		media-libs/libogg
-		media-libs/libvorbis
-		media-libs/libtheora
-		x11-proto/xf86vidmodeproto
-	)
-	net-misc/curl
-	sys-devel/gettext
-	sys-libs/zlib
-"
-	# editor? (
-	# 	dev-libs/libxml2
-	# 	virtual/jpeg:62
-	# 	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
-
-	einfo "
-	Note that the dedicated server (ufoded) is currently missing some
-	map files and therefore might not start:
-	http://ufoai.org/bugs/ufoalieninvasion/issues/5383
-
-	Help to fix this is welcome!
-"
-	if use dedicated ; then
-		ewarn "Only building dedicated server, which is known to still fail."
-	fi
-}
-
-src_unpack() {
-	unpack ${MY_P}-source.tar.bz2
-	cd "${S}" || die
-	unpack ${MY_P}-data.tar
-}
-
-src_configure() {
-	# The configure script of UFO:AI is hand crafted and a bit special
-	local MY_CONF=(
-		--disable-cgame-campaign
-		--disable-cgame-multiplayer
-		--disable-cgame-skirmish
-		--disable-memory
-		--disable-testall
-		--disable-ufomodel
-		--disable-ufoslicer
-		--enable-ufoded
-		$(use_enable !debug release)
-		# $(use_enable !dedicated game)
-		--disable-uforadiant
-		--disable-ufo2map
-		# $(use_enable editor uforadiant)
-		# $(use_enable editor ufo2map)
-		--disable-paranoid
-		$(use_enable profile profiling)
-		--prefix="${EPREFIX}"/usr/
-		--datadir="${MY_DATADIR}"
-	)
-	# econf does not work: "invalid option --build=x86_64-pc-linux-gnu"
-	./configure ${MY_CONF[*]} || die
-}
-
-src_compile() {
-	emake
-	emake lang
-
-	# if use editor; then
-	# 	emake uforadiant
-	# fi
-}
-
-src_install() {
-	newicon -s 32 src/ports/linux/ufo.png ${PN}.png
-
-	emake DESTDIR="${D}" install
-
-	# Shell script wrappers are always created for ufo, ufoded and
-	# uforadiant, delete them if we don't need them
-	rm "${D}/usr/bin/uforadiant" || die
-	# if !use editor; then
-	# 	rm "${D}/usr/bin/uforadiant" || die
-	# fi
-
-	if use dedicated; then
-		rm "${D}/usr/bin/ufo" || die
-	fi
-}
-
-pkg_preinst() {
-	gnome2_icon_savelist
-}
-
-pkg_postinst() {
-	gnome2_icon_cache_update
-}
-
-pkg_postrm() {
-	gnome2_icon_cache_update
-}


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-11-17 16:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-17 16:12 [gentoo-commits] repo/gentoo:master commit in: games-strategy/ufo-ai/ Michael Sterrett
  -- strict thread matches above, loose matches on Subject: below --
2015-11-17 13:17 Patrice Clement
2015-11-17 13:17 Patrice Clement

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox