diff options
author | Michael Sterrett <mr_bones_@gentoo.org> | 2011-03-23 20:56:25 +0000 |
---|---|---|
committer | Michael Sterrett <mr_bones_@gentoo.org> | 2011-03-23 20:56:25 +0000 |
commit | 7b71ef1d39ec13ea04e094129c713dd658643b29 (patch) | |
tree | b1044593d9bf67dbd3c591770d010ae449abe9bd /games-action/atanks | |
parent | Remove old, use slot dep for gtk+, and other cleanups. (diff) | |
download | gentoo-2-7b71ef1d39ec13ea04e094129c713dd658643b29.tar.gz gentoo-2-7b71ef1d39ec13ea04e094129c713dd658643b29.tar.bz2 gentoo-2-7b71ef1d39ec13ea04e094129c713dd658643b29.zip |
version bump
(Portage version: 2.1.9.42/cvs/Linux i686)
Diffstat (limited to 'games-action/atanks')
-rw-r--r-- | games-action/atanks/ChangeLog | 10 | ||||
-rw-r--r-- | games-action/atanks/atanks-4.8.ebuild | 41 | ||||
-rw-r--r-- | games-action/atanks/files/atanks-4.8-build.patch | 134 |
3 files changed, 183 insertions, 2 deletions
diff --git a/games-action/atanks/ChangeLog b/games-action/atanks/ChangeLog index 786c6faa18c3..e829a1d47f44 100644 --- a/games-action/atanks/ChangeLog +++ b/games-action/atanks/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for games-action/atanks -# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/games-action/atanks/ChangeLog,v 1.59 2010/10/15 13:43:46 ranger Exp $ +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/games-action/atanks/ChangeLog,v 1.60 2011/03/23 20:56:25 mr_bones_ Exp $ + +*atanks-4.8 (23 Mar 2011) + + 23 Mar 2011; Michael Sterrett <mr_bones_@gentoo.org> +atanks-4.8.ebuild, + +files/atanks-4.8-build.patch: + version bump 15 Oct 2010; Brent Baude <ranger@gentoo.org> atanks-4.7.ebuild: stable ppc, bug 340010 diff --git a/games-action/atanks/atanks-4.8.ebuild b/games-action/atanks/atanks-4.8.ebuild new file mode 100644 index 000000000000..ee9441a463e7 --- /dev/null +++ b/games-action/atanks/atanks-4.8.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-action/atanks/atanks-4.8.ebuild,v 1.1 2011/03/23 20:56:25 mr_bones_ Exp $ + +EAPI=2 +inherit eutils games + +DESCRIPTION="Worms and Scorched Earth-like game" +HOMEPAGE="http://atanks.sourceforge.net/" +SRC_URI="mirror://sourceforge/atanks/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="" + +DEPEND="media-libs/allegro[X]" + +src_prepare() { + find . -type f -name ".directory" -exec rm -vf '{}' + + epatch "${FILESDIR}"/${P}-build.patch +} + +src_compile() { + emake \ + BINDIR="${GAMES_BINDIR}" \ + INSTALLDIR="${GAMES_DATADIR}/${PN}" \ + || die "emake failed" +} + +src_install() { + dogamesbin ${PN} || die "dogamesbin failed" + insinto "${GAMES_DATADIR}"/${PN} + doins -r button misc missile sound stock tank tankgun text title \ + unicode.dat *.txt \ + || die "doins failed" + doicon ${PN}.png + make_desktop_entry atanks "Atomic Tanks" + dodoc Changelog README TODO + prepgamesdirs +} diff --git a/games-action/atanks/files/atanks-4.8-build.patch b/games-action/atanks/files/atanks-4.8-build.patch new file mode 100644 index 000000000000..aca3f4467baa --- /dev/null +++ b/games-action/atanks/files/atanks-4.8-build.patch @@ -0,0 +1,134 @@ +diff -ru atanks-4.6.orig/src/Makefile atanks-4.6/src/Makefile +--- atanks-4.6.orig/src/Makefile 2010-05-24 12:30:23.000000000 -0400 ++++ atanks-4.6/src/Makefile 2010-06-02 03:22:25.112064819 -0400 +@@ -4,9 +4,6 @@ + missile.o perlin.o physobj.o player.o satellite.o sky.o tank.o team.o teleport.o virtobj.o \ + update.o network.o floattext.o land.o text.o client.o gameloop.o + +-CPP=g++ +-CC=gcc +-LD=g++ + LIB=ar + WINDRES= + # FLAGS += -DDATA_DIR=\".\" -Wno-write-strings -DNETWORK -DTHREADS +@@ -15,9 +12,9 @@ + WFLAGS = + OFLAGS = + LFLAGS += +-LDFLAGS = `allegro-config --libs` ++LDFLAGS += `allegro-config --libs` + +-CFLAGS += -g -Wall -Iinclude # -fprofile-arcs -ftest-coverage ++CXXFLAGS += -Wall -Iinclude # -fprofile-arcs -ftest-coverage + + SRCS = $(MODULES:.o=.cpp) + GLOBALS = main.h imagedefs.h externs.h +@@ -33,82 +30,82 @@ + $(MODULES): Makefile + + atanks.o: atanks.cpp globals.h main.h menucontent.h +- $(CPP) -c atanks.cpp -o $@ $(FLAGS) $(LFLAGS) $(OFLAGS) $(CFLAGS) ++ $(CXX) -c atanks.cpp -o $@ $(FLAGS) $(LFLAGS) $(OFLAGS) $(CXXFLAGS) + + button.o: button.cpp button.h +- $(CPP) -c button.cpp -o $@ $(FLAGS) $(LFLAGS) $(OFLAGS) $(CFLAGS) ++ $(CXX) -c button.cpp -o $@ $(FLAGS) $(LFLAGS) $(OFLAGS) $(CXXFLAGS) + + client.o: client.h client.cpp +- $(CPP) -c client.cpp -o $@ $(FLAGS) $(LFLAGS) $(OFLAGSS) $(CFLAGS) ++ $(CXX) -c client.cpp -o $@ $(FLAGS) $(LFLAGS) $(OFLAGSS) $(CXXFLAGS) + + environment.o: environment.cpp environment.h +- $(CPP) -c environment.cpp -o $@ $(FLAGS) $(LFLAGS) $(OFLAGS) $(CFLAGS) ++ $(CXX) -c environment.cpp -o $@ $(FLAGS) $(LFLAGS) $(OFLAGS) $(CXXFLAGS) + + explosion.o: explosion.cpp explosion.h +- $(CPP) -c explosion.cpp -o $@ $(FLAGS) $(LFLAGS) $(OFLAGS) $(CFLAGS) ++ $(CXX) -c explosion.cpp -o $@ $(FLAGS) $(LFLAGS) $(OFLAGS) $(CXXFLAGS) + + files.o: files.cpp files.h text.h text.cpp +- $(CPP) -c files.cpp -o $@ $(FLAGS) $(LFLAGS) $(OFLAGS) $(CFLAGS) ++ $(CXX) -c files.cpp -o $@ $(FLAGS) $(LFLAGS) $(OFLAGS) $(CXXFLAGS) + + floattext.o: floattext.cpp floattext.h +- $(CPP) -c floattext.cpp -o $@ $(FLAGS) $(LFLAGS) $(OFLAGS) $(CFLAGS) ++ $(CXX) -c floattext.cpp -o $@ $(FLAGS) $(LFLAGS) $(OFLAGS) $(CXXFLAGS) + + gameloop.o: gameloop.cpp atanks.cpp main.h +- $(CPP) -c gameloop.cpp -o $@ $(FLAGS) $(LFLAGS) $(OFLAGS) $(CFLAGS) ++ $(CXX) -c gameloop.cpp -o $@ $(FLAGS) $(LFLAGS) $(OFLAGS) $(CXXFLAGS) + + globaldata.o: globaldata.cpp globaldata.h +- $(CPP) -c globaldata.cpp -o $@ $(FLAGS) $(LFLAGS) $(OFLAGS) $(CFLAGS) ++ $(CXX) -c globaldata.cpp -o $@ $(FLAGS) $(LFLAGS) $(OFLAGS) $(CXXFLAGS) + + land.o: land.cpp land.h globaldata.h environment.h +- $(CPP) -c land.cpp -o $@ $(FLAGS) $(LFLAGS) $(OFLAGS) $(CFLAGS) ++ $(CXX) -c land.cpp -o $@ $(FLAGS) $(LFLAGS) $(OFLAGS) $(CXXFLAGS) + + missile.o: missile.cpp missile.h +- $(CPP) -c missile.cpp -o $@ $(FLAGS) $(LFLAGS) $(OFLAGS) $(CFLAGS) ++ $(CXX) -c missile.cpp -o $@ $(FLAGS) $(LFLAGS) $(OFLAGS) $(CXXFLAGS) + + teleport.o: teleport.cpp teleport.h +- $(CPP) -c teleport.cpp -o $@ $(FLAGS) $(LFLAGS) $(OFLAGS) $(CFLAGS) ++ $(CXX) -c teleport.cpp -o $@ $(FLAGS) $(LFLAGS) $(OFLAGS) $(CXXFLAGS) + + physobj.o: physobj.cpp physobj.h +- $(CPP) -c physobj.cpp -o $@ $(FLAGS) $(LFLAGS) $(OFLAGS) $(CFLAGS) ++ $(CXX) -c physobj.cpp -o $@ $(FLAGS) $(LFLAGS) $(OFLAGS) $(CXXFLAGS) + + player.o: player.cpp player.h +- $(CPP) -c player.cpp -o $@ $(FLAGS) $(LFLAGS) $(OFLAGS) $(CFLAGS) ++ $(CXX) -c player.cpp -o $@ $(FLAGS) $(LFLAGS) $(OFLAGS) $(CXXFLAGS) + + tank.o: tank.cpp tank.h +- $(CPP) -c tank.cpp -o $@ $(FLAGS) $(LFLAGS) $(OFLAGS) $(CFLAGS) ++ $(CXX) -c tank.cpp -o $@ $(FLAGS) $(LFLAGS) $(OFLAGS) $(CXXFLAGS) + + team.o: team.cpp team.h +- $(CPP) -c team.cpp -o $@ $(FLAGS) $(LFLAGS) $(OFLAGS) $(CFLAGS) ++ $(CXX) -c team.cpp -o $@ $(FLAGS) $(LFLAGS) $(OFLAGS) $(CXXFLAGS) + + virtobj.o: virtobj.cpp virtobj.h +- $(CPP) -c virtobj.cpp -o $@ $(FLAGS) $(LFLAGS) $(OFLAGS) $(CFLAGS) ++ $(CXX) -c virtobj.cpp -o $@ $(FLAGS) $(LFLAGS) $(OFLAGS) $(CXXFLAGS) + + fade.o: fade.cpp +- $(CPP) -c fade.cpp -o $@ $(FLAGS) $(LFLAGS) $(OFLAGS) $(CFLAGS) ++ $(CXX) -c fade.cpp -o $@ $(FLAGS) $(LFLAGS) $(OFLAGS) $(CXXFLAGS) + + perlin.o: perlin.cpp +- $(CPP) -c perlin.cpp -o $@ $(FLAGS) $(LFLAGS) $(OFLAGS) $(CFLAGS) ++ $(CXX) -c perlin.cpp -o $@ $(FLAGS) $(LFLAGS) $(OFLAGS) $(CXXFLAGS) + + sky.o: sky.cpp sky.h +- $(CPP) -c sky.cpp -o $@ $(FLAGS) $(LFLAGS) $(OFLAGS) $(CFLAGS) ++ $(CXX) -c sky.cpp -o $@ $(FLAGS) $(LFLAGS) $(OFLAGS) $(CXXFLAGS) + + satellite.o: satellite.cpp satellite.h +- $(CPP) -c satellite.cpp -o $@ $(FLAGS) $(LFLAGS) $(OFLAGS) $(CFLAGS) ++ $(CXX) -c satellite.cpp -o $@ $(FLAGS) $(LFLAGS) $(OFLAGS) $(CXXFLAGS) + + text.o: text.cpp text.h +- $(CPP) -c text.cpp -o $@ $(FLAGS) $(LFLAGS) $(OFLAGS) $(CFLAGS) ++ $(CXX) -c text.cpp -o $@ $(FLAGS) $(LFLAGS) $(OFLAGS) $(CXXFLAGS) + + update.o: update.cpp update.h +- $(CPP) -c update.cpp -o $@ $(FLAGS) $(LFLAGS) $(OFLAGS) $(CFLAGS) ++ $(CXX) -c update.cpp -o $@ $(FLAGS) $(LFLAGS) $(OFLAGS) $(CXXFLAGS) + + network.o: network.cpp network.h +- $(CPP) -c network.cpp -o $@ $(FLAGS) $(LFLAGS) $(OFLAGS) $(CFLAGS) ++ $(CXX) -c network.cpp -o $@ $(FLAGS) $(LFLAGS) $(OFLAGS) $(CXXFLAGS) + + %.o: %.cpp %.h +- $(CPP) -c $< -o $@ $(FLAGS) $(LFLAGS) $(OFLAGS) $(CFLAGS) ++ $(CXX) -c $< -o $@ $(FLAGS) $(LFLAGS) $(OFLAGS) $(CXXFLAGS) + + $(OUTPUT): $(OBJECTS) $(MODULES) +- $(CPP) $(MODULES) -o $(OUTPUT) $(FLAGS) $(LFLAGS) $(LDFLAGS) $(SFLAGS) $(CFLAGS) ++ $(CXX) $(MODULES) -o $(OUTPUT) $(FLAGS) $(LFLAGS) $(LDFLAGS) $(SFLAGS) $(CXXFLAGS) + # strip $(OUTPUT) + + # dependencies: |