summaryrefslogtreecommitdiff
path: root/games-arcade/tomatoes
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /games-arcade/tomatoes
reinit the tree, so we can have metadata
Diffstat (limited to 'games-arcade/tomatoes')
-rw-r--r--games-arcade/tomatoes/Manifest9
-rw-r--r--games-arcade/tomatoes/files/tomatoes-1.55-c_str.patch24
-rw-r--r--games-arcade/tomatoes/files/tomatoes-1.55-gcc43.patch14
-rw-r--r--games-arcade/tomatoes/files/tomatoes-1.55-underlink.patch38
-rw-r--r--games-arcade/tomatoes/metadata.xml11
-rw-r--r--games-arcade/tomatoes/tomatoes-1.55-r2.ebuild62
6 files changed, 158 insertions, 0 deletions
diff --git a/games-arcade/tomatoes/Manifest b/games-arcade/tomatoes/Manifest
new file mode 100644
index 000000000000..e735f47b77ca
--- /dev/null
+++ b/games-arcade/tomatoes/Manifest
@@ -0,0 +1,9 @@
+AUX tomatoes-1.55-c_str.patch 573 SHA256 edc5f1804f4e287473a21d514f52f52cd020215878d8f22a7e5c51dc5a332499 SHA512 fce01efcdea6f14c497b747158e03e57fc39f532ddad7f8da80d6c94be6e9ec6b46b43e908e96f9b3744029ff285699f72b91a73b21b3e213d7054bf4e14f927 WHIRLPOOL 3bfd193ee41a92f7039ef3d6b400e5121d4f4de199199a85fb53d75ed45cd10e2385da01518e8acdb1e40a88cd1d7ae6271a8154f7c709dd077691e499cd74be
+AUX tomatoes-1.55-gcc43.patch 278 SHA256 0f1b0962a9620e5b28fccf96f1a13762ed54f94b5c1b4597e0ae2c032ff6ea5d SHA512 b0f6e5c3468902f73b2f88327f510b726082af6ace75d15f1d72c95d7ff19cfefef5558f2cdb2e0cf363a80f3c624c912825a1abb251608577bd617972b88e1c WHIRLPOOL 84028ae83ce7e7d22821534d3c3017684521654ada7ac8e50ea08642c334d8bda291da7e75d1787c2cc17aa52c7decd4a4e2076fd25bf2261e1ed4a9b64c73f8
+AUX tomatoes-1.55-underlink.patch 977 SHA256 6618c1aed9f9b65ed71bdccc50c9bd5f1de8266537f07094c66c5774f30043f3 SHA512 c6b1fb64b0196f0eb6a6f0d6a779d437d09901737670f66309598a84706615e1c9e48e60a7f6db15ce10f9237c1bdf8589cec39c46a4659fd4fcb3fe39225aa8 WHIRLPOOL d7b542b633c9fdb44e39dd9402ef5d884f7d30aeea43fedcb46bc73a13042ff5ff2e08ec433b5f1972dc5251dedac16fe7fb1586ed914922b902772ebd40180e
+DIST tomatoes-linux-1.5.tar.bz2 8807421 SHA256 69a3af1994cb58409be9b469e1aa4bdb91c405d99071c7431526640ec53d1300 SHA512 517f592bb3c3fb43cb740c58011f06b7a71c96eaff74ce1088db8dbd4aafa3463bba516547cd010e9ef2ca947fd36962c3d13ece6e979cab8adf01ffa991c308 WHIRLPOOL 62fd7eca64cd4ddf41de8a02fb80c3f114ff69f3b322f7f904592dca6109fba3856df1cd6bbb9162a22f78dd98e7c353756f1b5682f2128e5cc4f64e7c239001
+DIST tomatoes-linux-src-1.55.tar.bz2 62947 SHA256 126d001532ee5b81cc95e1a86a274d11669b8c8f65c8235ae2e9b8fbdfab4a60 SHA512 b5a6287659746179f0418630c55d34dc34897b532687007386b0b540ec728cc2492813f0d454314994a26a3629a24c802630085f64b969d1e6ea9ec936f5fe35 WHIRLPOOL 845ad2e84ad035d2f678c8465360439f057a323a020e01cd20f19fc5fb643b7372a963afdbe0b717edd230e3d7eb5f922a7fcc16affe4ec7ccd3d3696a4955ae
+EBUILD tomatoes-1.55-r2.ebuild 1588 SHA256 4e9150a0f710c3216593f034388a9c6015456389836e9928830e3f227d8bab92 SHA512 2c377f75145ac819b37507e3bd448c26339b48d5c4be6d76ffdc7dbfd2dc287036c890d584a51ccf2901a70d3f99b533d7a6ce701cceb3643540fc78c9c1a312 WHIRLPOOL 0e15d0445ed0cec80dfe22b79bc0d4386afd8764342b02234851c3b6cb15ec5b77b1fe7cf494753316a4c232c4529a335b996366b9ec2a394453a6e15231c629
+MISC ChangeLog 2548 SHA256 f4d1053e952ea4879fdca9fdfdbab2e7ed5c7f3a20104147b5b4cc4caef2641c SHA512 029acf546e35987ee1643cdf211932fce5b244f49cff2167033bb363e43b259ebb349ff7afb6b223357375c0c5b46af0031d5c3c6280ce32e7d5dee6d12f66f5 WHIRLPOOL d1c23ce835e9386efa6c63446194e255af98ddf43d0f23dc4ce9911bb6e86289b592d1cc833c35c19dbb706c3d828207fec13a8a3b6591a47e8b909c916ebf57
+MISC ChangeLog-2015 3305 SHA256 d78e68295587b243041984bbe51a0b81c89321822ada3e37598d68d6f3faa48f SHA512 dcc2972cf94b48f03e55cb5748fba8a1cb9db46d4290585a54326e9017cd5454859227541832d147cb848c50b760aba370cafb22dd8fbdc1470d175efb04c36d WHIRLPOOL 114ea56dd47339d71a8ea66d2356150b508191825fc18a71ac9ecd48dd908095c7af6d2b2f2410f61f1dd7b1fde37657b102bb6e36a56e766041c200cdc8d35e
+MISC metadata.xml 331 SHA256 c3308071f73448b891a865f41d726001903905a4b838e83b3bb9bdf23637245b SHA512 adee588bcc930244c19ea9a3ac34b70c3afbbbed2b68d61289742fd7ca3d97eae5724cef90d350a4e5b8ff8b594f8d25fc1a5fbc672459034d0a492bb155223d WHIRLPOOL cd6d585de8afa38ff75d7e49034214483e8cb078eca52930067b0cbb0626de4a7fea68415a0407321b6255524f39fe0e8caa6069ef08884a328f93c5c7a95fa2
diff --git a/games-arcade/tomatoes/files/tomatoes-1.55-c_str.patch b/games-arcade/tomatoes/files/tomatoes-1.55-c_str.patch
new file mode 100644
index 000000000000..dd6927e54153
--- /dev/null
+++ b/games-arcade/tomatoes/files/tomatoes-1.55-c_str.patch
@@ -0,0 +1,24 @@
+--- src/config.cpp.orig 2004-09-27 11:35:48.000000000 +0200
++++ src/config.cpp 2006-02-13 00:00:01.000000000 +0100
+@@ -78,6 +78,7 @@
+ // makefile.
+ char *get_config_location(bool write) {
+ #ifdef LINUX
++ static char *config_path = NULL;
+ // Get the path to the config file
+ string tmp = get_tomatoes_dir() + "config.cfg";
+
+@@ -90,8 +91,11 @@
+ }
+ fclose(ftest);
+ }
+-
+- return (char*)tmp.c_str();
++ if (!config_path) {
++ config_path = new char[tmp.length()+1];
++ strcpy(config_path,tmp.c_str());
++ }
++ return config_path;
+ #endif
+
+ // Return the CONFIG_DIR
diff --git a/games-arcade/tomatoes/files/tomatoes-1.55-gcc43.patch b/games-arcade/tomatoes/files/tomatoes-1.55-gcc43.patch
new file mode 100644
index 000000000000..cd85e31e5936
--- /dev/null
+++ b/games-arcade/tomatoes/files/tomatoes-1.55-gcc43.patch
@@ -0,0 +1,14 @@
+--- src/config.cpp
++++ src/config.cpp
+@@ -27,8 +27,9 @@
+
+ *************************************************************************/
+
+-#include <stdio.h>
+-#include <stdlib.h>
++#include <cstring>
++#include <cstdio>
++#include <cstdlib>
+ #include "config.h"
+ #include "init.h"
+
diff --git a/games-arcade/tomatoes/files/tomatoes-1.55-underlink.patch b/games-arcade/tomatoes/files/tomatoes-1.55-underlink.patch
new file mode 100644
index 000000000000..c028c79ba4a7
--- /dev/null
+++ b/games-arcade/tomatoes/files/tomatoes-1.55-underlink.patch
@@ -0,0 +1,38 @@
+--- makefile.old 2011-06-18 17:35:38.947020335 +0200
++++ makefile 2011-06-18 17:37:42.337811088 +0200
+@@ -48,7 +47,7 @@
+ LDFLAGS = `sdl-config --libs` -lSDL_image -lSDL_mixer -lGL -lGLU -pg
+ else
+ CFLAGS = -MMD -O3 -march=$(MARCH) -Wall $(SDL_FLAGS)
+-LDFLAGS = `sdl-config --libs` -lSDL_image -lSDL_mixer -lGL -lGLU -s
++LDLIBS = `sdl-config --libs` -lSDL_image -lSDL_mixer -lGL -lGLU -lm
+ endif
+ endif
+
+@@ -58,7 +57,7 @@
+ OBJS := $(subst src/,obj/,$(OBJS))
+
+ # Include directories
+-INCLUDES = -I./include
++INCLUDES = -I./include $(SDL_FLAGS)
+
+
+ # Targets
+@@ -69,7 +68,7 @@
+ -include $(DEPS)
+
+ $(TARGET): $(OBJS)
+- $(CC) -o $(TARGET) $(OBJS) $(LDFLAGS)
++ $(CXX) -o $(TARGET) $(OBJS) $(LDFLAGS) $(LDLIBS)
+
+ clean:
+ rm -f $(OBJS) $(TARGET)
+@@ -80,7 +79,7 @@
+ rebuild: veryclean all
+
+ obj/%.o: src/%.cpp
+- $(CC) $(CFLAGS) $(INCLUDES) $(DIR_DEFINES) -c $< -o $@
++ $(CXX) $(CXXFLAGS) $(INCLUDES) $(DIR_DEFINES) -c $< -o $@
+
+ # Compress the exe with UPX
+ compress: $(TARGET)
diff --git a/games-arcade/tomatoes/metadata.xml b/games-arcade/tomatoes/metadata.xml
new file mode 100644
index 000000000000..b774279148e4
--- /dev/null
+++ b/games-arcade/tomatoes/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">tomatoes</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-arcade/tomatoes/tomatoes-1.55-r2.ebuild b/games-arcade/tomatoes/tomatoes-1.55-r2.ebuild
new file mode 100644
index 000000000000..d2e7cc8911fa
--- /dev/null
+++ b/games-arcade/tomatoes/tomatoes-1.55-r2.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils games
+
+DATA_PV=1.5
+DESCRIPTION="How many tomatoes can you smash in ten short minutes?"
+HOMEPAGE="http://tomatoes.sourceforge.net/about.html"
+SRC_URI="mirror://sourceforge/tomatoes/tomatoes-linux-src-${PV}.tar.bz2
+ mirror://sourceforge/tomatoes/tomatoes-linux-${DATA_PV}.tar.bz2"
+
+LICENSE="ZLIB"
+SLOT="0"
+KEYWORDS="amd64 ~ppc64 x86"
+IUSE=""
+
+DEPEND="virtual/opengl
+ virtual/glu
+ media-libs/libsdl[sound,video]
+ media-libs/sdl-image[jpeg,png]
+ media-libs/sdl-mixer[mod]"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ mv ../tomatoes-1.5/* . || die "mv failed"
+ mv icon.png ${PN}.png
+
+ epatch \
+ "${FILESDIR}"/${P}-c_str.patch \
+ "${FILESDIR}"/${P}-underlink.patch \
+ "${FILESDIR}"/${P}-gcc43.patch
+
+ sed -i \
+ -e "/^MPKDIR = /s:./:${GAMES_DATADIR}/${PN}/:" \
+ -e "/^MUSICDIR = /s:./music/:${GAMES_DATADIR}/${PN}/music/:" \
+ -e "/^HISCOREDIR = /s:./:${GAMES_STATEDIR}/${PN}/:" \
+ -e "/^CONFIGDIR = /s:./:${GAMES_SYSCONFDIR}/${PN}/:" \
+ -e "/^OVERRIDEDIR = /s:./data/:${GAMES_DATADIR}/${PN}/data/:" \
+ makefile \
+ || die "sed failed"
+}
+
+src_install() {
+ dogamesbin tomatoes
+ dodoc README README-src
+
+ insinto "${GAMES_DATADIR}"/${PN}
+ doins -r tomatoes.mpk music
+
+ doicon ${PN}.png
+ make_desktop_entry tomatoes "I Have No Tomatoes"
+
+ dodir "${GAMES_STATEDIR}"/${PN}
+ touch "${D}${GAMES_STATEDIR}"/${PN}/hiscore.lst || die "touch failed"
+ fperms 660 "${GAMES_STATEDIR}"/${PN}/hiscore.lst
+
+ insinto "${GAMES_SYSCONFDIR}"/${PN}
+ doins config.cfg
+
+ prepgamesdirs
+}