From: Alfredo Tupone Date: Sat, 31 Mar 2007 09:36:23 +0000 (+0000) Subject: New package. Bug #117079 by roma1390 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=1295b206eabc9a9c4e040928284600db78c22080;p=gentoo.git New package. Bug #117079 by roma1390 Package-Manager: portage-2.1.2.2 --- 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; +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..8e2dc43e96cb --- /dev/null +++ b/games-arcade/snake3d/Manifest @@ -0,0 +1,30 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +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 781 RMD160 a181e07b2d8cdbf32d1785aabefea65c34456901 SHA1 95b91d882c3eb4eff67292a319e4603ad4d94100 SHA256 f83cd9325c975e87a95d4ab02831e5d244eaa922d40a9de0ba3bd97fb44223f6 +MD5 8cb3a6b753d7b9ad52793b794ada2ebf snake3d-0.9.ebuild 781 +RMD160 a181e07b2d8cdbf32d1785aabefea65c34456901 snake3d-0.9.ebuild 781 +SHA256 f83cd9325c975e87a95d4ab02831e5d244eaa922d40a9de0ba3bd97fb44223f6 snake3d-0.9.ebuild 781 +MISC ChangeLog 387 RMD160 31f8c74ddf9bdd3572541714549207a9e3a5ffc5 SHA1 97b01a51034177427a7fe898442df570c0bba7fd SHA256 5d3c702d5f5e4443a337295291f367dd9c438e489bbf67d8ef7270f08e18ca2b +MD5 fd8cc3132308fb48ae746351a9ceb9f5 ChangeLog 387 +RMD160 31f8c74ddf9bdd3572541714549207a9e3a5ffc5 ChangeLog 387 +SHA256 5d3c702d5f5e4443a337295291f367dd9c438e489bbf67d8ef7270f08e18ca2b ChangeLog 387 +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 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1.4.6 (GNU/Linux) + +iD8DBQFGDiuiRmMZkarFlIwRArjxAJ4z8JEzHY1o9giN+hgZfCpehsW5wgCeOsw1 +terYdzCIJ35iGELJPxxaQcM= +=HkrX +-----END PGP SIGNATURE----- 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 @@ + + + +games + +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. + + 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 +}