summaryrefslogtreecommitdiff
path: root/games-arcade/blobby
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
commit8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch)
tree7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /games-arcade/blobby
parent30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff)
gentoo resync : 14.07.2018
Diffstat (limited to 'games-arcade/blobby')
-rw-r--r--games-arcade/blobby/Manifest6
-rw-r--r--games-arcade/blobby/blobby-1.0.ebuild38
-rw-r--r--games-arcade/blobby/files/blobby-1.0-compile.patch29
-rw-r--r--games-arcade/blobby/files/blobby-1.0-install.patch29
-rw-r--r--games-arcade/blobby/files/blobby-1.0-paths.patch37
-rw-r--r--games-arcade/blobby/metadata.xml11
6 files changed, 150 insertions, 0 deletions
diff --git a/games-arcade/blobby/Manifest b/games-arcade/blobby/Manifest
new file mode 100644
index 000000000000..5e888a5d2dff
--- /dev/null
+++ b/games-arcade/blobby/Manifest
@@ -0,0 +1,6 @@
+AUX blobby-1.0-compile.patch 953 BLAKE2B c946783dd30b7f10c5f8cd4db932ef1c913fc10dbb8d83d23c0985d07cd2e96a4dda242914a96a2925ed7d8510035c0014641077278fb5600acab54b574d7bc7 SHA512 da389d12f388cfd48a4259be72e076bfff65258e6ff27c9d8ea815e9c04ce99520fc321b17cfcc95241e1ec7b5f70dee7d6a5dd05c36e351648c67ee5226d078
+AUX blobby-1.0-install.patch 669 BLAKE2B c23270394ce98e271713da8af60d8b8f510d1a6f69950485af060eacae977942b2490eb9450faaea25c6adb29a5e216356f68cfd48cb13aca97e9b4eb582d294 SHA512 ed31fd4a8f6e5c0f30bfbaf331c5b4dc51250c72481d38b556bceed673de5ee8c1fe89c5002e15125202551023e3d836937eeb1de1121e78f60c15132b5850c9
+AUX blobby-1.0-paths.patch 1237 BLAKE2B 77199702e08216ce741698b7435288f4536e6304a3fec09f2ef57bd73004d3306d9430230a2d8fdb1fc3a8018765c3a7d7662501eb6eb1caa6b29a858a96a798 SHA512 63c0ea107197ec2bed46b34d6cebbd0df1cc09477d6253ee8f325a554608456b0a34b301201e4d774c985df0512ba330105a5ec2be29ba34250a3a7311437793
+DIST blobby2-linux-1.0.tar.gz 1772918 BLAKE2B ee2231d5c2a287f812debf43a95b6ffe4abdcd87fec41eea5e528253d83190f20d4b2245b5e530f1b8b9df310ce2757b06377f7305f8cf60e6d51db9964ea239 SHA512 b9e36de4a44e482c9d0742b95034c2979d7a51512ac5e3fd8f4933655132028dfc9642c3580e5523b5b95d38acc169932d24808cee236710731c2571321337fa
+EBUILD blobby-1.0.ebuild 802 BLAKE2B c3eef011c49da2d3476e62b6baa7b9abd79d672699dbd8aa7eed95b60b1336b20fec157dfd8899a8bbdbb1949f4d588c84434486cb1f865f127a1ef17b47733d SHA512 3b493fb652e2aadf44972c007dc0506a68c7e9af33d47a04c8650fcaf1500c822f5a203b7ae59c990190c4115beb1e5deb37dd69338ed59dad7ce3e7a35e2d46
+MISC metadata.xml 329 BLAKE2B 57c87f4ead15774d9253ee14454b3316e1ca30eef93f18066c039a25137258555ec8788dfab78f94be77c38bb2ebe03ce42f1046896fb323653ce04760e7b8f6 SHA512 a46248ffada14ff8459d5a6949e8d437d7fc72036c04f0c8f28b3cca614ccdb3116875f741d0dd248e172431d292761c6c1d230f1a07499b2d6cc63208ccc740
diff --git a/games-arcade/blobby/blobby-1.0.ebuild b/games-arcade/blobby/blobby-1.0.ebuild
new file mode 100644
index 000000000000..413ea74b1024
--- /dev/null
+++ b/games-arcade/blobby/blobby-1.0.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-utils desktop
+
+DESCRIPTION="Beach ball game with blobs of goo"
+HOMEPAGE="https://sourceforge.net/projects/blobby/"
+SRC_URI="mirror://sourceforge/${PN}/${PN}2-linux-${PV}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="
+ >=dev-games/physfs-2[zip]
+ media-libs/libsdl[sound,joystick,opengl,video,X]
+ virtual/opengl"
+DEPEND="${RDEPEND}
+ app-arch/zip
+ dev-libs/boost
+ virtual/pkgconfig
+"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-compile.patch
+ "${FILESDIR}"/${P}-paths.patch
+ "${FILESDIR}"/${P}-install.patch
+)
+
+src_install() {
+ cmake-utils_src_install
+
+ newicon data/Icon.bmp ${PN}.bmp
+ make_desktop_entry ${PN} "Blobby Volley" /usr/share/pixmaps/${PN}.bmp
+}
diff --git a/games-arcade/blobby/files/blobby-1.0-compile.patch b/games-arcade/blobby/files/blobby-1.0-compile.patch
new file mode 100644
index 000000000000..f41601d56375
--- /dev/null
+++ b/games-arcade/blobby/files/blobby-1.0-compile.patch
@@ -0,0 +1,29 @@
+From eaa17d2ad90de2024fc3a7a59575597d1dc0b171 Mon Sep 17 00:00:00 2001
+From: Sebastian Pipping <sebastian@pipping.org>
+Date: Sat, 21 Jan 2017 18:01:14 +0100
+Subject: [PATCH] Fix compilation
+
+---
+ src/NetworkMessage.cpp | 7 ++++++-
+ 1 file changed, 6 insertions(+), 1 deletion(-)
+
+diff --git a/src/NetworkMessage.cpp b/src/NetworkMessage.cpp
+index 9178e74..0c3163b 100644
+--- a/src/NetworkMessage.cpp
++++ b/src/NetworkMessage.cpp
+@@ -109,6 +109,11 @@ bool operator == (const ServerInfo& lval, const ServerInfo& rval)
+
+ std::ostream& operator<<(std::ostream& stream, const ServerInfo& val)
+ {
+- return stream << val.name << " (" << val.hostname << ":" << val.port << ")";
++ return stream
++ << std::string(val.name)
++ << std::string(" (")
++ << std::string(val.hostname)
++ << std::string(":") << std::to_string(val.port)
++ << std::string(")");
+ }
+
+--
+2.11.0
+
diff --git a/games-arcade/blobby/files/blobby-1.0-install.patch b/games-arcade/blobby/files/blobby-1.0-install.patch
new file mode 100644
index 000000000000..5bd95c121ed9
--- /dev/null
+++ b/games-arcade/blobby/files/blobby-1.0-install.patch
@@ -0,0 +1,29 @@
+From 0a3ebb368242ed379f4ff7d5eca24be79841d968 Mon Sep 17 00:00:00 2001
+From: Sebastian Pipping <sebastian@pipping.org>
+Date: Sat, 21 Jan 2017 18:55:47 +0100
+Subject: [PATCH] Install missing files
+
+---
+ data/CMakeLists.txt | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/data/CMakeLists.txt b/data/CMakeLists.txt
+index a2454cd..5a2a661 100644
+--- a/data/CMakeLists.txt
++++ b/data/CMakeLists.txt
+@@ -25,10 +25,12 @@ set(install_files
+ ${CMAKE_CURRENT_BINARY_DIR}/backgrounds.zip
+ ${CMAKE_CURRENT_BINARY_DIR}/rules.zip
+ config.xml
++ Icon.bmp
+ inputconfig.xml
+ server/server.xml
+ lang_de.xml
+ lang_en.xml
++ lang_it.xml
+ lang_fr.xml)
+
+ if (WIN32)
+--
+2.11.0
+
diff --git a/games-arcade/blobby/files/blobby-1.0-paths.patch b/games-arcade/blobby/files/blobby-1.0-paths.patch
new file mode 100644
index 000000000000..6ddc76877e7d
--- /dev/null
+++ b/games-arcade/blobby/files/blobby-1.0-paths.patch
@@ -0,0 +1,37 @@
+From 3dbc91fcfe5412598201e33de80db7b1b01e4ffb Mon Sep 17 00:00:00 2001
+From: Sebastian Pipping <sebastian@pipping.org>
+Date: Sat, 21 Jan 2017 18:49:04 +0100
+Subject: [PATCH] Use system installation path
+
+---
+ data/CMakeLists.txt | 2 +-
+ src/main.cpp | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/data/CMakeLists.txt b/data/CMakeLists.txt
+index d9029b3..a2454cd 100644
+--- a/data/CMakeLists.txt
++++ b/data/CMakeLists.txt
+@@ -34,5 +34,5 @@ set(install_files
+ if (WIN32)
+ install(FILES ${install_files} DESTINATION data)
+ elseif (UNIX)
+- install(FILES ${install_files} DESTINATION share/blobby)
++ install(FILES ${install_files} DESTINATION /usr/share/blobby)
+ endif (WIN32)
+diff --git a/src/main.cpp b/src/main.cpp
+index 2628990..15bddf2 100644
+--- a/src/main.cpp
++++ b/src/main.cpp
+@@ -78,7 +78,7 @@ void setupPHYSFS()
+ std::string separator = fs.getDirSeparator();
+ // Game should be playable out of the source package on all
+ // relevant platforms.
+- std::string baseSearchPath("data" + separator);
++ std::string baseSearchPath("/usr/share/blobby/");
+ // Android and iOS are needing a special path
+ #ifdef __ANDROID__
+ baseSearchPath = SDL_AndroidGetExternalStoragePath() + separator;
+--
+2.11.0
+
diff --git a/games-arcade/blobby/metadata.xml b/games-arcade/blobby/metadata.xml
new file mode 100644
index 000000000000..503a13f4e202
--- /dev/null
+++ b/games-arcade/blobby/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">blobby</remote-id>
+ </upstream>
+</pkgmetadata>