summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Heaven <nyhm@gentoo.org>2007-03-13 22:22:56 +0000
committerTristan Heaven <nyhm@gentoo.org>2007-03-13 22:22:56 +0000
commitb55d043a0c925cae453c4bcdfb202dd3b117409d (patch)
treeb62037adcec03ce4390dbfdb88f5e5277df5b3d1 /games-arcade/missile
parentRespect TIMEZONE="" and switch to elog. (diff)
downloadgentoo-2-b55d043a0c925cae453c4bcdfb202dd3b117409d.tar.gz
gentoo-2-b55d043a0c925cae453c4bcdfb202dd3b117409d.tar.bz2
gentoo-2-b55d043a0c925cae453c4bcdfb202dd3b117409d.zip
cleanup
(Portage version: 2.1.2.2)
Diffstat (limited to 'games-arcade/missile')
-rw-r--r--games-arcade/missile/files/1.0.1-Makefile-path-fix.patch80
-rw-r--r--games-arcade/missile/missile-1.0.1.ebuild34
2 files changed, 14 insertions, 100 deletions
diff --git a/games-arcade/missile/files/1.0.1-Makefile-path-fix.patch b/games-arcade/missile/files/1.0.1-Makefile-path-fix.patch
deleted file mode 100644
index 8482bd382d27..000000000000
--- a/games-arcade/missile/files/1.0.1-Makefile-path-fix.patch
+++ /dev/null
@@ -1,80 +0,0 @@
---- Makefile.orig 2003-07-07 21:58:28.000000000 -0400
-+++ Makefile 2003-07-07 21:59:22.000000000 -0400
-@@ -19,14 +19,19 @@
- # INSTALLATION DIRS:
- # binary will be installed to $game_prefix/$game_bin
- # data to $game_prefix/$game_data
--game_prefix = /usr/local
--game_bin = bin
--game_data = share/missile
--game_icons = share/pixmaps
-+game_prefix =GENTOO
-+game_bin =GENTOO
-+game_data =GENTOO
-+game_icons =GENTOO
-+DESTDIR =
-+game_prefix:=$(DESTDIR)/$(game_prefix)
-+game_bin:=$(DESTDIR)/$(game_bin)
-+game_data:=$(DESTDIR)/$(game_data)
-+game_icons:=$(DESTDIR)/$(game_icons)
-
- # who the owner of the installed game will be
--install_as_owner = root
--install_as_group = games
-+install_as_owner =GENTOO
-+install_as_group =GENTOO
-
-
-
-@@ -70,8 +75,9 @@
- #
- #CC = ccmalloc gcc
- CC = gcc
--OPTS = $(RPM_OPT_FLAGS) -DDATA=\"$(game_prefix)/$(game_data)\" -DVERSION=\"$(DIST_VER)\" -D$(sound)
--CFLAGS = -Wall -O2 $(OPTS) `sdl-config --cflags`
-+MYOPTS =
-+OPTS = $(RPM_OPT_FLAGS) -DDATA=\"$(game_data)\" -DVERSION=\"$(DIST_VER)\" -D$(sound)
-+CFLAGS = -Wall -O2 $(OPTS) `sdl-config --cflags` $(MYOPTS)
- #CFLAGS = -Wall -g `sdl-config --cflags`
- LIBS = `sdl-config --libs` -lSDL_image $(SND_LIBS)
- INCLUDE =
-@@ -143,14 +149,14 @@
- install :
- @$(STRIP) $(PROGRAM) || \
- (echo; echo "Please run \"make\" first to build the program"; echo; exit -1)
-- $(INSTALL) $(IFLAGS) $(EXEC_PERM) $(PROGRAM) $(game_prefix)/$(game_bin)/$(PROGRAM)
-+ $(INSTALL) $(IFLAGS) $(EXEC_PERM) $(PROGRAM) $(game_bin)/$(PROGRAM)
- cd $(DATA);\
- for f in `find . -type f`; do \
-- $(INSTALL) $(IFLAGS) $(FILE_PERM) $$f $(game_prefix)/$(game_data)/$$f;\
-+ $(INSTALL) $(IFLAGS) $(FILE_PERM) $$f $(game_data)/$$f;\
- done
- cd $(ICONS);\
- for f in `ls`; do \
-- $(INSTALL) $(IFLAGS) $(FILE_PERM) $$f $(game_prefix)/$(game_icons)/$$f;\
-+ $(INSTALL) $(IFLAGS) $(FILE_PERM) $$f $(game_icons)/$$f;\
- done
- # $(MAKE) create_etc_conf
- @echo ""
-@@ -160,7 +166,7 @@
-
- #create_etc_conf:
- # if [ -w /etc ]; then \
--# echo "Data=$(game_prefix)/$(game_data)" > /etc/missilecommand.conf; \
-+# echo "Data=$(game_data)" > /etc/missilecommand.conf; \
- # fi
-
- # I need the right way to do this...
-@@ -179,9 +185,9 @@
-
-
- uninstall :
-- - rm $(game_prefix)/$(game_bin)/$(PROGRAM)
-- - rm -rf $(game_prefix)/$(game_data)
-- - rm $(game_prefix)/$(game_icons)/missile_icon_{black,blue,white,green,red,yellow}.png
-+ - rm $(game_bin)/$(PROGRAM)
-+ - rm -rf $(game_data)
-+ - rm $(game_icons)/missile_icon_{black,blue,white,green,red,yellow}.png
- @echo ""
- @echo "---------------------------------------------------------------------"
- @echo "$(PROGRAM) and associated files uninstalled."
diff --git a/games-arcade/missile/missile-1.0.1.ebuild b/games-arcade/missile/missile-1.0.1.ebuild
index cfa3eca76c2d..4366b1e319dd 100644
--- a/games-arcade/missile/missile-1.0.1.ebuild
+++ b/games-arcade/missile/missile-1.0.1.ebuild
@@ -1,6 +1,6 @@
-# Copyright 1999-2006 Gentoo Foundation
+# Copyright 1999-2007 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.13 2006/12/06 17:04:44 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-arcade/missile/missile-1.0.1.ebuild,v 1.14 2007/03/13 22:22:56 nyhm Exp $
inherit eutils games
@@ -13,32 +13,26 @@ SLOT="0"
KEYWORDS="alpha amd64 ppc sparc x86"
IUSE=""
-RDEPEND=">=media-libs/libsdl-1.2.4
- >=media-libs/sdl-image-1.2.1
- >=media-libs/sdl-mixer-1.2.4
- media-libs/libpng"
+DEPEND="media-libs/libsdl
+ media-libs/sdl-image
+ media-libs/sdl-mixer"
src_unpack() {
unpack ${A}
- cd ${S}
- epatch "${FILESDIR}/${PV}-Makefile-path-fix.patch"
+ cd "${S}"
sed -i \
- -e "/^game_prefix/s:=GENTOO:=${GAMES_PREFIX}:" \
- -e "/^game_bin/s:=GENTOO:=${GAMES_PREFIX}/bin:" \
- -e "/^game_data/s:=GENTOO:=${GAMES_DATADIR}/${PN}:" \
- -e "/^game_icons/s:=GENTOO:=/usr/share/pixmaps/${PN}:" \
- -e "/^install_as_owner/s:=GENTOO:=${GAMES_USER}:" \
- -e "/^install_as_group/s:=GENTOO:=${GAMES_GROUP}:" \
+ -e "s:\$(game_prefix)/\$(game_data):${GAMES_DATADIR}/${PN}:" \
+ -e "s/-O2/${CFLAGS}/" \
Makefile \
- || die "sed failed"
-}
-
-src_compile() {
- emake MYOPTS="${CFLAGS}" || die "emake failed"
+ || die "sed failed"
}
src_install() {
- make DESTDIR="${D}" install || die "make install failed"
+ dogamesbin ${PN} || die "dogamesbin failed"
+ insinto "${GAMES_DATADIR}"/${PN}
+ doins -r data/* || die "doins failed"
+ newicon icons/${PN}_icon_black.png ${PN}.png
+ make_desktop_entry ${PN} "Missile Command"
dodoc README
prepgamesdirs
}