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/slimevolley
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/slimevolley')
-rw-r--r--games-arcade/slimevolley/Manifest1
-rw-r--r--games-arcade/slimevolley/files/slimevolley-2.4.2-nodatalocal.patch23
-rw-r--r--games-arcade/slimevolley/files/slimevolley-2.4.2-underlink.patch10
-rw-r--r--games-arcade/slimevolley/metadata.xml8
-rw-r--r--games-arcade/slimevolley/slimevolley-2.4.2.ebuild48
5 files changed, 90 insertions, 0 deletions
diff --git a/games-arcade/slimevolley/Manifest b/games-arcade/slimevolley/Manifest
new file mode 100644
index 000000000000..fd2054561496
--- /dev/null
+++ b/games-arcade/slimevolley/Manifest
@@ -0,0 +1 @@
+DIST slimevolley_2.4.2.tar.bz2 2402839 SHA256 be8f461c6f1188ba709b1fbcbe64edffca4b8eb358bd2ed8825f8ebf30e660d3 SHA512 7a72329d9e22396f2e304d40370896b2c1a0ae22d5bf1769a46cad8fb1131b1ae9c16de0e5f847b8a31004df074cdeb710a28bfd1e1d94beceb1c8eb0a750680 WHIRLPOOL 7fc3c0dbc6b26bb330c97355d1bdf6d26c33b1d284104bddb5d520c7c1bc67a8c6f83a7c5770f7017017e02b1c2cc8f23fbb14e0608f0b5685d2fc480f09a3a2
diff --git a/games-arcade/slimevolley/files/slimevolley-2.4.2-nodatalocal.patch b/games-arcade/slimevolley/files/slimevolley-2.4.2-nodatalocal.patch
new file mode 100644
index 000000000000..a1ab7616a645
--- /dev/null
+++ b/games-arcade/slimevolley/files/slimevolley-2.4.2-nodatalocal.patch
@@ -0,0 +1,23 @@
+diff -ru slimevolley-2.4.1.orig/src/themes_std.c slimevolley-2.4.1/src/themes_std.c
+--- slimevolley-2.4.1.orig/src/themes_std.c 2008-11-30 04:36:52.000000000 -0500
++++ slimevolley-2.4.1/src/themes_std.c 2010-05-05 13:00:23.875723904 -0400
+@@ -30,7 +30,6 @@
+ #include "audio.h"
+ #include "themes.h"
+
+-#define DATA_LOCAL "data"
+ #define DOSS_THEMES "themes"
+ #define DOSS_SLIMES "slimes"
+ #define SLIME_D_NOM "slimeJD%d.png"
+@@ -74,10 +73,7 @@
+ chemin[0] = '\0';
+
+ if(var_env == NULL) {
+- if(access(DATA_LOCAL, R_OK | X_OK) == 0) {
+- strncpy(chemin, DATA_LOCAL, sizeof(chemin) - 1);
+-
+- } else if(access(DATA_DIR, R_OK | X_OK) == 0) {
++ if(access(DATA_DIR, R_OK | X_OK) == 0) {
+ strncpy(chemin, DATA_DIR, sizeof(chemin) - 1);
+ }
+
diff --git a/games-arcade/slimevolley/files/slimevolley-2.4.2-underlink.patch b/games-arcade/slimevolley/files/slimevolley-2.4.2-underlink.patch
new file mode 100644
index 000000000000..7ca362c7bc63
--- /dev/null
+++ b/games-arcade/slimevolley/files/slimevolley-2.4.2-underlink.patch
@@ -0,0 +1,10 @@
+--- CMakeLists.txt.old 2011-06-20 20:42:26.545500925 +0200
++++ CMakeLists.txt 2011-06-20 20:42:34.407999223 +0200
+@@ -42,6 +42,7 @@
+ ${SDL_LIBRARY}
+ ${SDLTTF_LIBRARY}
+ ${SDLIMAGE_LIBRARY}
++ m
+ )
+
+ INCLUDE(FindGettext.cmake)
diff --git a/games-arcade/slimevolley/metadata.xml b/games-arcade/slimevolley/metadata.xml
new file mode 100644
index 000000000000..4f008a8be0cf
--- /dev/null
+++ b/games-arcade/slimevolley/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>
+<use>
+<flag name="net">Enable network support</flag>
+</use>
+</pkgmetadata>
diff --git a/games-arcade/slimevolley/slimevolley-2.4.2.ebuild b/games-arcade/slimevolley/slimevolley-2.4.2.ebuild
new file mode 100644
index 000000000000..872a54eb33b1
--- /dev/null
+++ b/games-arcade/slimevolley/slimevolley-2.4.2.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit cmake-utils eutils games
+
+DESCRIPTION="A simple volleyball game"
+HOMEPAGE="http://slime.tuxfamily.org/index.php"
+SRC_URI="http://downloads.tuxfamily.org/slime/v242/${PN}_${PV}.tar.bz2"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="net"
+
+RDEPEND="media-libs/libsdl[X,sound,video]
+ media-libs/sdl-ttf
+ media-libs/sdl-image[png]
+ net? ( media-libs/sdl-net )
+ virtual/libintl"
+DEPEND="${RDEPEND}
+ sys-devel/gettext"
+
+DOCS="docs/README docs/TODO"
+
+PATCHES=( "${FILESDIR}"/${P}-nodatalocal.patch
+ "${FILESDIR}"/${P}-underlink.patch )
+
+S=${WORKDIR}/${PN}
+
+src_configure() {
+ mycmakeargs=(
+ "-DCMAKE_VERBOSE_MAKEFILE=TRUE"
+ "-DBIN_DIR=${GAMES_BINDIR}"
+ $(use net && echo "-DNO_NET=0" || echo "-DNO_NET=1")
+ )
+ cmake-utils_src_configure
+}
+
+src_compile() {
+ cmake-utils_src_compile
+}
+
+src_install() {
+ cmake-utils_src_install
+ prepgamesdirs
+}