summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Sterrett <mr_bones_@gentoo.org>2014-04-03 05:06:16 +0000
committerMichael Sterrett <mr_bones_@gentoo.org>2014-04-03 05:06:16 +0000
commit7ffe3fdb3206f39ba75d7bcd272de41ac9d31650 (patch)
treec0b2138df1db23e02da8cb6c611c20548dde04c7
parentmake the AMQP support optional for bug #506618 (diff)
downloadgentoo-2-7ffe3fdb3206f39ba75d7bcd272de41ac9d31650.tar.gz
gentoo-2-7ffe3fdb3206f39ba75d7bcd272de41ac9d31650.tar.bz2
gentoo-2-7ffe3fdb3206f39ba75d7bcd272de41ac9d31650.zip
EAPI=5; fix up linking (bug #496950); improve icon install
(Portage version: 2.2.8-r1/cvs/Linux x86_64, unsigned Manifest commit)
-rw-r--r--games-arcade/missile/ChangeLog7
-rw-r--r--games-arcade/missile/missile-1.0.1.ebuild33
2 files changed, 29 insertions, 11 deletions
diff --git a/games-arcade/missile/ChangeLog b/games-arcade/missile/ChangeLog
index 473da708b928..ed45d1a98cb3 100644
--- a/games-arcade/missile/ChangeLog
+++ b/games-arcade/missile/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for games-arcade/missile
-# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-arcade/missile/ChangeLog,v 1.13 2010/10/11 22:02:19 mr_bones_ Exp $
+# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-arcade/missile/ChangeLog,v 1.14 2014/04/03 05:06:16 mr_bones_ Exp $
+
+ 03 Apr 2014; Michael Sterrett <mr_bones_@gentoo.org> missile-1.0.1.ebuild:
+ EAPI=5; fix up linking (bug #496950); improve icon install
11 Oct 2010; Michael Sterrett <mr_bones_@gentoo.org> missile-1.0.1.ebuild:
tidy; honor CC; add use-deps
diff --git a/games-arcade/missile/missile-1.0.1.ebuild b/games-arcade/missile/missile-1.0.1.ebuild
index 3bfb2da78681..b31744b3e946 100644
--- a/games-arcade/missile/missile-1.0.1.ebuild
+++ b/games-arcade/missile/missile-1.0.1.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2010 Gentoo Foundation
+# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/games-arcade/missile/missile-1.0.1.ebuild,v 1.16 2010/10/11 22:02:19 mr_bones_ Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-arcade/missile/missile-1.0.1.ebuild,v 1.17 2014/04/03 05:06:16 mr_bones_ Exp $
-EAPI=2
-inherit eutils games
+EAPI=5
+inherit eutils gnome2-utils games
DESCRIPTION="The game Missile Command for Linux"
HOMEPAGE="http://missile.sourceforge.net/"
@@ -17,6 +17,7 @@ IUSE=""
DEPEND="media-libs/libsdl[audio,video]
media-libs/sdl-image[png]
media-libs/sdl-mixer"
+RDEPEND="${DEPEND}"
src_prepare() {
epatch "${FILESDIR}"/${P}-ldflags.patch
@@ -24,16 +25,30 @@ src_prepare() {
-e '/^CC/d' \
-e "s:\$(game_prefix)/\$(game_data):${GAMES_DATADIR}/${PN}:" \
-e "s/-O2/${CFLAGS}/" \
- Makefile \
- || die "sed failed"
+ -e 's/-lSDL_image $(SND_LIBS)/-lSDL_image -lm $(SND_LIBS)/g' \
+ Makefile || die
}
src_install() {
- dogamesbin ${PN} || die "dogamesbin failed"
+ dogamesbin ${PN}
insinto "${GAMES_DATADIR}"/${PN}
- doins -r data/* || die "doins failed"
- newicon icons/${PN}_icon_black.png ${PN}.png
+ doins -r data/*
+ newicon -s 48 icons/${PN}_icon_black.png ${PN}.png
make_desktop_entry ${PN} "Missile Command"
dodoc README
prepgamesdirs
}
+
+pkg_preinst() {
+ games_pkg_preinst
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}