diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /games-action/gltron | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'games-action/gltron')
-rw-r--r-- | games-action/gltron/Manifest | 2 | ||||
-rw-r--r-- | games-action/gltron/files/gltron-0.70-configure.patch | 24 | ||||
-rw-r--r-- | games-action/gltron/files/gltron-0.70-debian.patch | 35 | ||||
-rw-r--r-- | games-action/gltron/files/gltron-0.70-gcc49.patch | 13 | ||||
-rw-r--r-- | games-action/gltron/files/gltron-0.70-prototypes.patch | 24 | ||||
-rw-r--r-- | games-action/gltron/gltron-0.70-r1.ebuild | 52 | ||||
-rw-r--r-- | games-action/gltron/metadata.xml | 8 |
7 files changed, 158 insertions, 0 deletions
diff --git a/games-action/gltron/Manifest b/games-action/gltron/Manifest new file mode 100644 index 000000000000..06472db6c743 --- /dev/null +++ b/games-action/gltron/Manifest @@ -0,0 +1,2 @@ +DIST gltron-0.70-source.tar.gz 2182440 SHA256 e0c8ebb41a18a1f8d7302a9c2cb466f5b1dd63e9a9966c769075e6b6bdad8bb0 SHA512 297708a145d995bfd186f1745ffa674ab44238e8c2fb627245de3c1602f578afdd9223fae696107769b3b29da476cd9623ee37183618bfb13a9a9cfa59e41bf2 WHIRLPOOL d734840ea4d4181d2531d7596a380edd96b2cecc91786428f183ea06903f8ce7183d51bf6655abbd56d07d5fa272a91c1d5b2691cf49408f28f773bb63121bc7 +DIST gltron.png 7570 SHA256 1f7262feb4f3bdff36573fe51dedd93905feb2ec9a54a3f8ec0a964489c40abd SHA512 d83eb90b4d070d4dc5e93bf90cf81629b6a8bb200ca5e2963b757e282aeae62288560a6ded6159a170c301f0119592ac743a15ab604a6ba98a4ee93d00c02d0a WHIRLPOOL 78cea6ca679908f536995d5398a236e03563097719033dccdb3f33892b3d41954e68d84b55367674a2cb77cb4cde49650c01febba95e34257d3790393aa23f23 diff --git a/games-action/gltron/files/gltron-0.70-configure.patch b/games-action/gltron/files/gltron-0.70-configure.patch new file mode 100644 index 000000000000..91414b3956ec --- /dev/null +++ b/games-action/gltron/files/gltron-0.70-configure.patch @@ -0,0 +1,24 @@ +configure.in is written poorly so it just stomps all over CFLAGS + +--- configure ++++ configure +@@ -2805,7 +2805,7 @@ + RANLIB="$ac_cv_prog_RANLIB" + fi + +-CFLAGS="-DSEPARATOR=\"'/'\"" ++CFLAGS="$CFLAGS -DSEPARATOR=\"'/'\"" + + # Check whether --enable-warn or --disable-warn was given. + if test "${enable_warn+set}" = set; then +@@ -2852,10 +2852,6 @@ + else + enable_optimize=s + fi; +-if test "x$enable_optimize" ; then +- CFLAGS="$CFLAGS -O$enable_optimize" +- CXXFLAGS="$CXXFLAGS -O$enable_optimize" +-fi + + # Check whether --with-sdl-prefix or --without-sdl-prefix was given. + if test "${with_sdl_prefix+set}" = set; then diff --git a/games-action/gltron/files/gltron-0.70-debian.patch b/games-action/gltron/files/gltron-0.70-debian.patch new file mode 100644 index 000000000000..464cf5928207 --- /dev/null +++ b/games-action/gltron/files/gltron-0.70-debian.patch @@ -0,0 +1,35 @@ +Ripped from Debian patchset 6 + +--- src/include/game/game_data.h ++++ src/include/game/game_data.h +@@ -71,7 +71,7 @@ + typedef struct AI { + int active; + int tdiff; +- long lasttime; ++ unsigned int lasttime; + segment2 left, right, front, backleft; + } AI; + +--- src/include/video/fonttex.h ++++ src/include/video/fonttex.h +@@ -10,7 +10,7 @@ + int lower; /* lowest ascii character (normally: 32) */ + int upper; /* highest ascii character (normally: 126) */ + +- int *texID; ++ unsigned int *texID; + + char *fontname; + char *bitmapname; +--- src/video/trail.c ++++ src/video/trail.c +@@ -19,7 +19,7 @@ + n[1] = s->vStart.v[1] - s->vDirection.v[0]; + tmp[0] = eye[0] - s->vStart.v[0]; + tmp[1] = eye[1] - s->vStart.v[1]; +- if(n[0] == n[1] == 0) return length(tmp); ++ if(n[0] == 0 && n[1] == 0) return length(tmp); + return abs(scalarprod2(n, tmp) / length(n)); + } + diff --git a/games-action/gltron/files/gltron-0.70-gcc49.patch b/games-action/gltron/files/gltron-0.70-gcc49.patch new file mode 100644 index 000000000000..4a1d5cbe1e1e --- /dev/null +++ b/games-action/gltron/files/gltron-0.70-gcc49.patch @@ -0,0 +1,13 @@ +--- 1/lua/src/lib/liolib.c ++++ 1/lua/src/lib/liolib.c +@@ -6,9 +6,9 @@ + */ + + ++#define __USE_MISC /* for mkstemp() */ + #include <ctype.h> + #include <stdio.h> +-#define __USE_MISC /* for mkstemp() */ + #include <stdlib.h> + #include <string.h> + #include <time.h> diff --git a/games-action/gltron/files/gltron-0.70-prototypes.patch b/games-action/gltron/files/gltron-0.70-prototypes.patch new file mode 100644 index 000000000000..d697f1ad59ac --- /dev/null +++ b/games-action/gltron/files/gltron-0.70-prototypes.patch @@ -0,0 +1,24 @@ +scripting.h declares these params as const so make sure they're the same. + +--- nebu/scripting/scripting.c ++++ nebu/scripting/scripting.c +@@ -169,16 +169,16 @@ + return status; + } + +-void scripting_RunFile(char *name) { ++void scripting_RunFile(const char *name) { + lua_dofile(L, name); + } + +-void scripting_Run(char *command) { ++void scripting_Run(const char *command) { + /* fprintf(stderr, "[command] %s\n", command); */ + lua_dostring(L, command); + } + +-void scripting_RunFormat(char *format, ... ) { ++void scripting_RunFormat(const char *format, ... ) { + char buf[4096]; + va_list ap; + va_start(ap, format); diff --git a/games-action/gltron/gltron-0.70-r1.ebuild b/games-action/gltron/gltron-0.70-r1.ebuild new file mode 100644 index 000000000000..8c909d21379d --- /dev/null +++ b/games-action/gltron/gltron-0.70-r1.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils games + +DESCRIPTION="3d tron, just like the movie" +HOMEPAGE="http://gltron.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}-source.tar.gz + mirror://gentoo/${PN}.png" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc x86" +IUSE="" + +DEPEND="virtual/opengl + media-libs/libpng:0 + media-libs/libsdl[sound,video] + media-libs/sdl-mixer[vorbis] + media-libs/sdl-sound[vorbis,mikmod] + media-libs/smpeg + media-libs/libmikmod" +RDEPEND=${DEPEND} + +src_prepare() { + epatch \ + "${FILESDIR}"/${P}-configure.patch \ + "${FILESDIR}"/${P}-prototypes.patch \ + "${FILESDIR}"/${P}-debian.patch \ + "${FILESDIR}"/${P}-gcc49.patch + sed -i \ + -e '/^gltron_LINK/s/$/ $(LDFLAGS)/' \ + Makefile.in || die +} + +src_configure() { + # warn/debug/profile just modify CFLAGS, they aren't + # real options, so don't utilize USE flags here + egamesconf \ + --disable-warn \ + --disable-debug \ + --disable-profile +} + +src_install() { + default + doicon "${DISTDIR}"/${PN}.png + make_desktop_entry ${PN} GLtron + prepgamesdirs +} diff --git a/games-action/gltron/metadata.xml b/games-action/gltron/metadata.xml new file mode 100644 index 000000000000..cf8792227341 --- /dev/null +++ b/games-action/gltron/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <upstream> + <remote-id type="sourceforge">gltron</remote-id> + </upstream> +</pkgmetadata> |