summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /games-arcade/tuxpuck
downloadgentoo-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-arcade/tuxpuck')
-rw-r--r--games-arcade/tuxpuck/Manifest1
-rw-r--r--games-arcade/tuxpuck/files/tuxpuck-0.8.2-ldflags.patch11
-rw-r--r--games-arcade/tuxpuck/files/tuxpuck-0.8.2-parallel.patch58
-rw-r--r--games-arcade/tuxpuck/files/tuxpuck-0.8.2-png15.patch63
-rw-r--r--games-arcade/tuxpuck/metadata.xml5
-rw-r--r--games-arcade/tuxpuck/tuxpuck-0.8.2-r1.ebuild55
6 files changed, 193 insertions, 0 deletions
diff --git a/games-arcade/tuxpuck/Manifest b/games-arcade/tuxpuck/Manifest
new file mode 100644
index 000000000000..3e4371885eab
--- /dev/null
+++ b/games-arcade/tuxpuck/Manifest
@@ -0,0 +1 @@
+DIST tuxpuck-0.8.2.tar.gz 384009 SHA256 62d9604ed69c27b9ca2be1312bc705b36de8ed509c539c6d81193e7846272f18 SHA512 875680f7fd9d4257884c58d8a5529082aac4dc10f1a9c9d08acd4e67ddb5e9c66dd84a4fbcc27e3673e329d845b0966ea683412ffe61f0a403d195eac0f32a46 WHIRLPOOL 04bcb512a7b83cea122e982ce5c9b0c73585305878a959a03e8821109e8786258f4eb1dbb9abc66cf2e08a228ad9663077059b5ef4eafed8df575cec4ff498bd
diff --git a/games-arcade/tuxpuck/files/tuxpuck-0.8.2-ldflags.patch b/games-arcade/tuxpuck/files/tuxpuck-0.8.2-ldflags.patch
new file mode 100644
index 000000000000..28fcef48a7ec
--- /dev/null
+++ b/games-arcade/tuxpuck/files/tuxpuck-0.8.2-ldflags.patch
@@ -0,0 +1,11 @@
+--- Makefile.old 2010-10-05 10:34:57.000000000 +0200
++++ Makefile 2010-10-05 10:35:28.000000000 +0200
+@@ -20,7 +20,7 @@
+
+ $(NAME) : $(OBJS)
+ cd data; $(MAKE)
+- $(CC) $(CFLAGS) $(OBJS) data/libdata.a `sdl-config --libs` -lm -lpng \
++ $(CC) $(LDFLAGS) $(CFLAGS) $(OBJS) data/libdata.a `sdl-config --libs` -lm -lpng \
+ -ljpeg -lz -lvorbisfile -lvorbis -logg -o $(NAME)
+
+ w32icon.o : data/icons/tuxpuck.ico
diff --git a/games-arcade/tuxpuck/files/tuxpuck-0.8.2-parallel.patch b/games-arcade/tuxpuck/files/tuxpuck-0.8.2-parallel.patch
new file mode 100644
index 000000000000..cdcdecc42c32
--- /dev/null
+++ b/games-arcade/tuxpuck/files/tuxpuck-0.8.2-parallel.patch
@@ -0,0 +1,58 @@
+--- data/Makefile.old 2015-01-07 14:22:34.852150894 +0100
++++ data/Makefile 2015-01-07 14:57:44.079822614 +0100
+@@ -15,20 +15,29 @@
+ ar r libdata.a $(OBJS)
+ ranlib libdata.a
+
+-$(SOURCES):
+- cd ../utils/; $(MAKE)
++monos_fnt.c:
+ ../utils/ttf2font ttfs/mono.ttf monos.fnt 30 30
+ ../utils/data2c monos.fnt monos_fnt
++ rm monos.fnt
++monob_fnt.c:
+ ../utils/ttf2font ttfs/mono.ttf monob.fnt 45 45
+ ../utils/data2c monob.fnt monob_fnt
+- rm *.fnt
++ rm monob.fnt
++title_jpg.c:
+ ../utils/data2c jpgs/title.jpg title_jpg
++board_jpg.c:
+ ../utils/data2c jpgs/board.jpg board_jpg
++logo_jpg.c:
+ ../utils/data2c jpgs/logo.jpg logo_jpg
++pad_png.c: pngs/pad.png
+ ../utils/data2c pngs/pad.png pad_png
++puck_png.c: pngs/puck.png
+ ../utils/data2c pngs/puck.png puck_png
++scoreboard_png.c:
+ ../utils/data2c pngs/scoreboard.png scoreboard_png
++mousebar_png.c:
+ ../utils/data2c pngs/mousebar.png mousebar_png
++glass_png.c:
+ ../utils/data2c pngs/glass.png glass_png
+ ../utils/data2c pngs/piece1.png piece1_png
+ ../utils/data2c pngs/piece2.png piece2_png
+@@ -37,15 +46,22 @@
+ ../utils/data2c pngs/piece5.png piece5_png
+ mv glass_png.c temp; cat temp piece?_png.c > glass_png.c
+ rm piece?_png.c temp
++crash_ogg.c:
+ ../utils/data2c sounds/crash.ogg crash_ogg
++nock_ogg.c:
+ ../utils/data2c sounds/nock.ogg nock_ogg
++tux_eyes_spr.c:
+ # Tux
+ ../utils/anim tux/eyes.ac tux_eyes.spr
+ ../utils/data2c tux_eyes.spr tux_eyes_spr
+ rm tux_eyes.spr
++tux_png.c: tux/tux.png
+ ../utils/data2c tux/tux.png tux_png
++tux_apps_ogg.c:
+ ../utils/data2c tux/apps.ogg tux_apps_ogg
++tux_boos_ogg.c:
+ ../utils/data2c tux/boos.ogg tux_boos_ogg
++arcana_png.c:
+ # Arcana
+ ../utils/data2c arcana/arcana.png arcana_png
+ clean :
diff --git a/games-arcade/tuxpuck/files/tuxpuck-0.8.2-png15.patch b/games-arcade/tuxpuck/files/tuxpuck-0.8.2-png15.patch
new file mode 100644
index 000000000000..ca9539f39e51
--- /dev/null
+++ b/games-arcade/tuxpuck/files/tuxpuck-0.8.2-png15.patch
@@ -0,0 +1,63 @@
+--- png.c.old 2011-09-14 16:25:54.415338149 +0200
++++ png.c 2011-09-14 17:41:02.190803110 +0200
+@@ -38,6 +38,8 @@
+ png_color_16 *transv;
+ SDL_RWops *src = NULL;
+ Uint32 size;
++ int num_palette;
++ png_colorp png_palette;
+
+ memcpy(&size, data, sizeof(Uint32));
+ if (memcounter)
+@@ -74,7 +76,7 @@
+ * the normal method of doing things with libpng). REQUIRED unless you
+ * set up your own error handlers in png_create_read_struct() earlier.
+ */
+- if (setjmp(png_ptr->jmpbuf)) {
++ if (setjmp(png_jmpbuf(png_ptr))) {
+ SDL_SetError("Error reading the PNG file.");
+ goto done;
+ }
+@@ -142,9 +144,9 @@
+ Rmask = 0x000000FF;
+ Gmask = 0x0000FF00;
+ Bmask = 0x00FF0000;
+- Amask = (info_ptr->channels == 4) ? 0xFF000000 : 0;
++ Amask = (png_get_channels(png_ptr, info_ptr) == 4) ? 0xFF000000 : 0;
+ } else {
+- int s = (info_ptr->channels == 4) ? 0 : 8;
++ int s = (png_get_channels(png_ptr, info_ptr) == 4) ? 0 : 8;
+ Rmask = 0xFF000000 >> s;
+ Gmask = 0x00FF0000 >> s;
+ Bmask = 0x0000FF00 >> s;
+@@ -152,7 +154,7 @@
+ }
+ }
+ surface = SDL_AllocSurface(SDL_SWSURFACE, width, height,
+- bit_depth * info_ptr->channels, Rmask, Gmask,
++ bit_depth * png_get_channels(png_ptr, info_ptr), Rmask, Gmask,
+ Bmask, Amask);
+ if (surface == NULL) {
+ SDL_SetError("Out of memory");
+@@ -197,12 +199,15 @@
+ palette->colors[i].g = i;
+ palette->colors[i].b = i;
+ }
+- } else if (info_ptr->num_palette > 0) {
+- palette->ncolors = info_ptr->num_palette;
+- for (i = 0; i < info_ptr->num_palette; ++i) {
+- palette->colors[i].b = info_ptr->palette[i].blue;
+- palette->colors[i].g = info_ptr->palette[i].green;
+- palette->colors[i].r = info_ptr->palette[i].red;
++ } else {
++ png_get_PLTE(png_ptr, info_ptr, &png_palette, &num_palette);
++ if (num_palette > 0) {
++ palette->ncolors = num_palette;
++ for (i = 0; i < num_palette; ++i) {
++ palette->colors[i].b = png_palette[i].blue;
++ palette->colors[i].g = png_palette[i].green;
++ palette->colors[i].r = png_palette[i].red;
++ }
+ }
+ }
+ }
diff --git a/games-arcade/tuxpuck/metadata.xml b/games-arcade/tuxpuck/metadata.xml
new file mode 100644
index 000000000000..d3c2cc926f0b
--- /dev/null
+++ b/games-arcade/tuxpuck/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>games</herd>
+</pkgmetadata>
diff --git a/games-arcade/tuxpuck/tuxpuck-0.8.2-r1.ebuild b/games-arcade/tuxpuck/tuxpuck-0.8.2-r1.ebuild
new file mode 100644
index 000000000000..863111f923b7
--- /dev/null
+++ b/games-arcade/tuxpuck/tuxpuck-0.8.2-r1.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit eutils games
+
+DESCRIPTION="Hover hockey"
+HOMEPAGE="http://home.no.net/munsuun/tuxpuck/"
+SRC_URI="http://home.no.net/munsuun/tuxpuck/files/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha amd64 ppc ~sparc x86 ~x86-fbsd"
+IUSE=""
+
+RDEPEND="media-libs/libsdl
+ media-libs/libpng:0
+ virtual/jpeg:0
+ media-libs/libvorbis"
+DEPEND="${RDEPEND}
+ media-libs/freetype:2"
+
+src_prepare() {
+ # Bug #376741 - Make unpack call compatible with both
+ # PMS and <sys-apps/portage-2.1.10.10.
+ cd man || die
+ unpack ./${PN}.6.gz
+ cd .. || die
+ sed -i \
+ -e 's/-Werror//' \
+ -e '/^CC/d' \
+ Makefile \
+ utils/Makefile \
+ data/Makefile \
+ || die "sed failed"
+ epatch "${FILESDIR}"/${P}-ldflags.patch \
+ "${FILESDIR}"/${P}-png15.patch \
+ "${FILESDIR}"/${P}-parallel.patch
+}
+
+src_compile() {
+ emake -C utils
+ emake -C data
+ emake
+}
+
+src_install() {
+ dogamesbin tuxpuck
+ doman man/tuxpuck.6
+ dodoc *.txt
+ doicon data/icons/${PN}.ico
+ make_desktop_entry ${PN} "TuxPuck" /usr/share/pixmaps/${PN}.ico
+ prepgamesdirs
+}