diff options
author | Alfredo Tupone <tupone@gentoo.org> | 2007-03-31 09:36:23 +0000 |
---|---|---|
committer | Alfredo Tupone <tupone@gentoo.org> | 2007-03-31 09:36:23 +0000 |
commit | 3b54117ee72fbb129a548195be7b092183008e78 (patch) | |
tree | 2b9794d1f1c528b434983899f764d75320a80147 /games-arcade/snake3d | |
parent | Stable on ppc wrt bug #172851. (diff) | |
download | gentoo-2-3b54117ee72fbb129a548195be7b092183008e78.tar.gz gentoo-2-3b54117ee72fbb129a548195be7b092183008e78.tar.bz2 gentoo-2-3b54117ee72fbb129a548195be7b092183008e78.zip |
New package. Bug #117079 by roma1390
(Portage version: 2.1.2.2)
Diffstat (limited to 'games-arcade/snake3d')
-rw-r--r-- | games-arcade/snake3d/ChangeLog | 10 | ||||
-rw-r--r-- | games-arcade/snake3d/Manifest | 20 | ||||
-rw-r--r-- | games-arcade/snake3d/files/digest-snake3d-0.9 | 3 | ||||
-rw-r--r-- | games-arcade/snake3d/files/snake3d-0.9-amd64.patch | 37 | ||||
-rw-r--r-- | games-arcade/snake3d/metadata.xml | 10 | ||||
-rw-r--r-- | games-arcade/snake3d/snake3d-0.9.ebuild | 34 |
6 files changed, 114 insertions, 0 deletions
diff --git a/games-arcade/snake3d/ChangeLog b/games-arcade/snake3d/ChangeLog new file mode 100644 index 000000000000..40563e779afd --- /dev/null +++ b/games-arcade/snake3d/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for games-arcade/snake3d +# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/games-arcade/snake3d/ChangeLog,v 1.1 2007/03/31 09:36:23 tupone Exp $ + +*snake3d-0.9 (31 Mar 2007) + + 31 Mar 2007; <atupone@gentoo.org> +files/snake3d-0.9-amd64.patch, + +metadata.xml, +snake3d-0.9.ebuild: + New package. Bug #117079 by roma1390 + diff --git a/games-arcade/snake3d/Manifest b/games-arcade/snake3d/Manifest new file mode 100644 index 000000000000..3b795d7f44bf --- /dev/null +++ b/games-arcade/snake3d/Manifest @@ -0,0 +1,20 @@ +AUX snake3d-0.9-amd64.patch 860 RMD160 249c741e20c672ef1a4d0f378756d3d58b01d690 SHA1 e4f2cd80ec3e5efd4f27b19aaed1b6934a26fe94 SHA256 5b282bdc85808e66c65351394a6c1c08fa33766e6b9cb1d35bc53513d8e4dedf +MD5 0baa0ebd556d601cda885189f9843834 files/snake3d-0.9-amd64.patch 860 +RMD160 249c741e20c672ef1a4d0f378756d3d58b01d690 files/snake3d-0.9-amd64.patch 860 +SHA256 5b282bdc85808e66c65351394a6c1c08fa33766e6b9cb1d35bc53513d8e4dedf files/snake3d-0.9-amd64.patch 860 +DIST snake3d-0.9.tar.gz 62900 RMD160 40c625995535ef634d50cec3d9407781a3c1a816 SHA1 4d0e76bf4e987fab6a4172d95479986e81f01956 SHA256 38f7a8020044f331da2b718df5ec65d9cca95eaa1866acce3ea8772ac27ec16b +EBUILD snake3d-0.9.ebuild 680 RMD160 7d312f1f4266c14a7891fcfebadc0773bf82e47a SHA1 1047145d913497b446997845bf45495b44595f8f SHA256 96e76a8e6ef0e74ecc82d466479037324ef2050d355d97ccbef2f82ae5e178c3 +MD5 c1bae1493fc883656261c1044591f09c snake3d-0.9.ebuild 680 +RMD160 7d312f1f4266c14a7891fcfebadc0773bf82e47a snake3d-0.9.ebuild 680 +SHA256 96e76a8e6ef0e74ecc82d466479037324ef2050d355d97ccbef2f82ae5e178c3 snake3d-0.9.ebuild 680 +MISC ChangeLog 295 RMD160 d0dd82909105a7aafb754e2013f18a3c37fd8b0c SHA1 ab7dee01dd75776edc523a0cedc02daf0a990e29 SHA256 3234718c758dd7b7bc78f39472d6f83f05787ee15eaff191b2e551914e28b762 +MD5 75f69037d6894a47775f4b5a5200ae0b ChangeLog 295 +RMD160 d0dd82909105a7aafb754e2013f18a3c37fd8b0c ChangeLog 295 +SHA256 3234718c758dd7b7bc78f39472d6f83f05787ee15eaff191b2e551914e28b762 ChangeLog 295 +MISC metadata.xml 435 RMD160 69890f55b0eec6c0f4d80ebab36e638ccb7b7b54 SHA1 ed54a61f28614ea3a36f9e054c08cbc817fe52ae SHA256 97deab27d14ae43173bede46b49d45eb69e65162bb2f253da13e9a2f76bcdf8a +MD5 e65ae91c9a0eb247ed2139ccd928740a metadata.xml 435 +RMD160 69890f55b0eec6c0f4d80ebab36e638ccb7b7b54 metadata.xml 435 +SHA256 97deab27d14ae43173bede46b49d45eb69e65162bb2f253da13e9a2f76bcdf8a metadata.xml 435 +MD5 8d812b33e21764827560449456fd5fa6 files/digest-snake3d-0.9 232 +RMD160 770e8486485deaa732a5eaea8240ba2cdbc13090 files/digest-snake3d-0.9 232 +SHA256 eda83f6d29878d5bc6b6a1be893e90a96d8c7bff68cc9fe7fedf50ae29981339 files/digest-snake3d-0.9 232 diff --git a/games-arcade/snake3d/files/digest-snake3d-0.9 b/games-arcade/snake3d/files/digest-snake3d-0.9 new file mode 100644 index 000000000000..c0f721b28b00 --- /dev/null +++ b/games-arcade/snake3d/files/digest-snake3d-0.9 @@ -0,0 +1,3 @@ +MD5 d6646489931be03a880133aaeb233119 snake3d-0.9.tar.gz 62900 +RMD160 40c625995535ef634d50cec3d9407781a3c1a816 snake3d-0.9.tar.gz 62900 +SHA256 38f7a8020044f331da2b718df5ec65d9cca95eaa1866acce3ea8772ac27ec16b snake3d-0.9.tar.gz 62900 diff --git a/games-arcade/snake3d/files/snake3d-0.9-amd64.patch b/games-arcade/snake3d/files/snake3d-0.9-amd64.patch new file mode 100644 index 000000000000..d2b5f2c79acd --- /dev/null +++ b/games-arcade/snake3d/files/snake3d-0.9-amd64.patch @@ -0,0 +1,37 @@ +--- src/functions.cpp.old 2007-03-31 11:04:10.000000000 +0200 ++++ src/functions.cpp 2007-03-31 11:11:52.000000000 +0200 +@@ -107,8 +107,8 @@ + pointer = end; + } + +- memcpy(str, i, (int)pointer - (int)i); +- str[(int)pointer - (int)i] = 0; ++ memcpy(str, i, ssize_t(pointer - i)); ++ str[pointer - i] = 0; + + drawString(x, y, str); + +@@ -501,15 +501,21 @@ + + Uint32 timer(Uint32 interval, void* value) { + ++ union { ++ void *value; ++ int p_mode; ++ } p_modeConv; ++ p_modeConv.value = value; ++ + //if ((int)value != gameModeValue) +- if ((int)value != p_mode) ++ if (p_modeConv.p_mode != p_mode) + return 0; + + SDL_Event event; + SDL_UserEvent userevent; + + userevent.type = SDL_USEREVENT; +- userevent.code = (int)value; ++ userevent.code = p_modeConv.p_mode; + userevent.data1 = NULL; + userevent.data2 = NULL; + diff --git a/games-arcade/snake3d/metadata.xml b/games-arcade/snake3d/metadata.xml new file mode 100644 index 000000000000..fe498e3cd8bb --- /dev/null +++ b/games-arcade/snake3d/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +<longdescription lang="en"> +snake3d is a variant of the snake game. You are a snake in a 3d world trying to +eat as many icosahedrons as possible, which makes your tail longer. There are +other snakes (network players) in the world which will try to fail you. +</longdescription> +</pkgmetadata> diff --git a/games-arcade/snake3d/snake3d-0.9.ebuild b/games-arcade/snake3d/snake3d-0.9.ebuild new file mode 100644 index 000000000000..f30e331715bd --- /dev/null +++ b/games-arcade/snake3d/snake3d-0.9.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-arcade/snake3d/snake3d-0.9.ebuild,v 1.1 2007/03/31 09:36:23 tupone Exp $ + +inherit eutils games + +DESCRIPTION="variant of the snake game" +HOMEPAGE="http://sourceforge.net/projects/worms3d/" +SRC_URI="mirror://sourceforge/worms3d/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64" +IUSE="" + +DEPEND="media-libs/sdl-net + virtual/opengl + virtual/glut + virtual/glu + media-libs/libsdl" + +S=${WORKDIR}/${PN} + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}/${P}"-amd64.patch +} + +src_install() { + dodoc ChangeLog README TODO || die "failed installing doc" + dogamesbin ${PN} || die "failed installing executable" + prepgamesdirs +} |