diff options
Diffstat (limited to 'games-arcade/xtux')
-rw-r--r-- | games-arcade/xtux/Manifest | 5 | ||||
-rw-r--r-- | games-arcade/xtux/files/xtux-20030306-ldflags.patch | 22 | ||||
-rw-r--r-- | games-arcade/xtux/files/xtux-20030306-particles.patch | 30 | ||||
-rw-r--r-- | games-arcade/xtux/metadata.xml | 11 | ||||
-rw-r--r-- | games-arcade/xtux/xtux-20030306-r1.ebuild | 55 |
5 files changed, 123 insertions, 0 deletions
diff --git a/games-arcade/xtux/Manifest b/games-arcade/xtux/Manifest new file mode 100644 index 000000000000..61a1f6012969 --- /dev/null +++ b/games-arcade/xtux/Manifest @@ -0,0 +1,5 @@ +AUX xtux-20030306-ldflags.patch 805 BLAKE2B 1d3cda6f7bfb2619507caad5fb5fb769dbfe89fd7e377c9e747e0ec4a515f03079d9c4d34c9ac204f21d504812662676322c643feae68f80ddb9eded0c10668b SHA512 089d03e2ef4072b0d134940771820f151e4e51d95c8f01230a78933e0160fa204dd277b4b0bbd7a4288dbb6fabf1ebe7a976f0ead2096b8eaa21daf82f6c97eb +AUX xtux-20030306-particles.patch 1411 BLAKE2B 22db279e8bdca02029be6a115dc0329893dc69ffd39fcbf773fead770db1cac85c52086bf9bf7e5b23774981f94c86b6858653673f797f082aa3b205bf165443 SHA512 4288325e2e24cbbc2b0407c526d733b028d670d4ce182957392d16675b666c2a9ef44c23227f3acae526bcb439df1e73f13772612ee2c25ac5f373c7863927fd +DIST xtux-src-20030306.tar.gz 1640928 BLAKE2B 0db135f741a978a943035df5b78773bbb3fbbeecc2fd740525614e4f942e7e23b67a6fa5640fa82c2c32d2aa2abe73badc9d341ab0ec06922513a8ed0783ce7a SHA512 edb137b4d6b0fe7d673e8eedffbd9c521800a8e51aff0a36e5aa02d46a157d42142326b334b9c7358cfb5debf4b78a2a9951f82121dd538cfe288cf292a269d4 +EBUILD xtux-20030306-r1.ebuild 1241 BLAKE2B dcc32bf27f2df307d4d940ac5d971164c31eb5a6a5fd866798c9a54adbd52f40e6452afa68bf76ee6b4450e7f4e86069546bb31a0fe707195f2231e4c6922dec SHA512 dcb83c916fc67c3fc01067473e31fd8d608183f3203701c1f46ca27025b04ef5aae5fa0f99718bc00c3ad1ce11c693e8f0ac6e2b0c57ee5f464f501b7efb163b +MISC metadata.xml 327 BLAKE2B c3a5163b1311672e516ad8cec744bc8813705ef58da277f566101f8699cf1db7bd519bf80d35b5410ee32185ba3a38ae3f4a04dacd49ed5cfda24dfa45ddea19 SHA512 cda1520a7e746d0b8e78cfe62b83466123b01bc02186b63d365f170bce8477be0f408a73d1436b916538c7c1906a77e73114f8d81fb799d48e7bdb4b0fd5c418 diff --git a/games-arcade/xtux/files/xtux-20030306-ldflags.patch b/games-arcade/xtux/files/xtux-20030306-ldflags.patch new file mode 100644 index 000000000000..4a4877a6d65a --- /dev/null +++ b/games-arcade/xtux/files/xtux-20030306-ldflags.patch @@ -0,0 +1,22 @@ +--- a/src/client/Makefile.old 2010-09-30 18:08:16.000000000 +0200 ++++ b/src/client/Makefile 2010-09-30 18:08:41.000000000 +0200 +@@ -48,7 +48,7 @@ + + #Apps + client: $(OBJECTS) +- $(CC) -o $(BINARY) $(CFLAGS) $(OBJECTS) $(XTUXLIB) $(MATHLIB) $(X11LIB) $(XPMLIB) $(SOCKLIB) $(GGZLIB) ++ $(CC) -o $(BINARY) $(LDFLAGS) $(CFLAGS) $(OBJECTS) $(XTUXLIB) $(MATHLIB) $(X11LIB) $(XPMLIB) $(SOCKLIB) $(GGZLIB) + + # OBJECTS + .c.o: client.h $*.c +--- a/src/server/Makefile.old 2010-09-30 18:09:55.000000000 +0200 ++++ b/src/server/Makefile 2010-09-30 18:10:16.000000000 +0200 +@@ -41,7 +41,7 @@ + + #Apps + server: $(OBJECTS) +- $(CC) -o $(BINARY) $(OBJECTS) $(XTUXLIB) $(MATHLIB) $(SOCKLIB) $(GGZLIB) ++ $(CC) $(LDFLAGS) -o $(BINARY) $(OBJECTS) $(XTUXLIB) $(MATHLIB) $(SOCKLIB) $(GGZLIB) + + # OBJECTS + .c.o: server.h $*.h $*.c diff --git a/games-arcade/xtux/files/xtux-20030306-particles.patch b/games-arcade/xtux/files/xtux-20030306-particles.patch new file mode 100644 index 000000000000..9a340821dd6e --- /dev/null +++ b/games-arcade/xtux/files/xtux-20030306-particles.patch @@ -0,0 +1,30 @@ +diff -u -r xtux.old/src/client/particle.c xtux/src/client/particle.c +--- xtux.old/src/client/particle.c 2008-09-02 20:34:24.000000000 +0200 ++++ xtux/src/client/particle.c 2008-09-02 20:35:40.000000000 +0200 +@@ -340,11 +340,11 @@ + ptl->pos[i].y = src_y; + d = dir + 128; + d += i%SHARD_ANGLE - SHARD_ANGLE/2; +- ptl->vel[i].x = sin_lookup[dir + 64 + rand()%64] * SHARD_EXP_VEL; +- ptl->vel[i].y = -cos_lookup[dir + 64 + rand()%64] * SHARD_EXP_VEL; ++ ptl->vel[i].x = sin_lookup[(dir + 64 + rand()%64) % DEGREES] * SHARD_EXP_VEL; ++ ptl->vel[i].y = -cos_lookup[(dir + 64 + rand()%64) % DEGREES] * SHARD_EXP_VEL; + vel = SHARD_MIN_VEL + (SHARD_MAX_VEL*rand()/(RAND_MAX+SHARD_MIN_VEL)); +- ptl->vel[i].x += vel * sin_lookup[d] * 10; +- ptl->vel[i].y += vel * -cos_lookup[d] * 10; ++ ptl->vel[i].x += vel * sin_lookup[d % DEGREES] * 10; ++ ptl->vel[i].y += vel * -cos_lookup[d % DEGREES] * 10; + } + + ptl = particles_new(color2, PTL_TOP, num_sh2); +@@ -357,8 +357,8 @@ + ptl->vel[i].x = sin_lookup[rand()%256] * SHARD_EXP_VEL; + ptl->vel[i].y = -cos_lookup[rand()%256] * SHARD_EXP_VEL; + vel = SHARD_MIN_VEL + (SHARD_MAX_VEL*rand()/(RAND_MAX+SHARD_MIN_VEL)); +- ptl->vel[i].x += vel * sin_lookup[d] * 20; +- ptl->vel[i].y += vel * -cos_lookup[d] * 20; ++ ptl->vel[i].x += vel * sin_lookup[d % DEGREES] * 20; ++ ptl->vel[i].y += vel * -cos_lookup[d % DEGREES] * 20; + } + + /* "Extra" particles (ie bullet holes) */ diff --git a/games-arcade/xtux/metadata.xml b/games-arcade/xtux/metadata.xml new file mode 100644 index 000000000000..b9b705622a97 --- /dev/null +++ b/games-arcade/xtux/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>games@gentoo.org</email> + <name>Gentoo Games Project</name> + </maintainer> + <upstream> + <remote-id type="sourceforge">xtux</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-arcade/xtux/xtux-20030306-r1.ebuild b/games-arcade/xtux/xtux-20030306-r1.ebuild new file mode 100644 index 000000000000..35368df77f3f --- /dev/null +++ b/games-arcade/xtux/xtux-20030306-r1.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit desktop + +DESCRIPTION="Multiplayer Gauntlet-style arcade game" +HOMEPAGE="http://xtux.sourceforge.net/" +SRC_URI="mirror://sourceforge/xtux/xtux-src-${PV}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="x11-libs/libXpm" +RDEPEND="${DEPEND} + media-fonts/font-adobe-75dpi +" + +S="${WORKDIR}/${PN}" + +src_prepare() { + default + + find data/ -type d -name .xvpics -exec rm -rf \{\} + + sed -i \ + -e "s:-g -Wall -O2:${CFLAGS}:" \ + src/{client,common,server}/Makefile \ + || die "sed failed" + sed -i \ + -e "s:./tux_serv:tux_serv:" \ + src/client/menu.c \ + || die "sed failed" + + eapply "${FILESDIR}/${P}-particles.patch" \ + "${FILESDIR}"/${P}-ldflags.patch +} + +src_compile() { + # Not parallel-make friendly (bug #247332) + emake DATADIR="/usr/share/xtux/data" common + emake DATADIR="/usr/share/xtux/data" ggz + emake DATADIR="/usr/share/xtux/data" server + emake DATADIR="/usr/share/xtux/data" client +} + +src_install () { + dobin xtux tux_serv + insinto "/usr/share/xtux" + doins -r data/ + dodoc AUTHORS CHANGELOG README README.GGZ doc/* + newicon data/images/icon.xpm ${PN}.xpm + make_desktop_entry xtux "Xtux" +} |