From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- games-puzzle/shaaft/Manifest | 9 ++++ games-puzzle/shaaft/files/shaaft-0.5.0-gcc34.patch | 18 ++++++++ games-puzzle/shaaft/files/shaaft-0.5.0-gcc41.patch | 11 +++++ games-puzzle/shaaft/files/shaaft-0.5.0-gcc43.patch | 23 +++++++++ .../shaaft/files/shaaft-0.5.0-libpng15.patch | 20 ++++++++ games-puzzle/shaaft/metadata.xml | 11 +++++ games-puzzle/shaaft/shaaft-0.5.0.ebuild | 54 ++++++++++++++++++++++ 7 files changed, 146 insertions(+) create mode 100644 games-puzzle/shaaft/Manifest create mode 100644 games-puzzle/shaaft/files/shaaft-0.5.0-gcc34.patch create mode 100644 games-puzzle/shaaft/files/shaaft-0.5.0-gcc41.patch create mode 100644 games-puzzle/shaaft/files/shaaft-0.5.0-gcc43.patch create mode 100644 games-puzzle/shaaft/files/shaaft-0.5.0-libpng15.patch create mode 100644 games-puzzle/shaaft/metadata.xml create mode 100644 games-puzzle/shaaft/shaaft-0.5.0.ebuild (limited to 'games-puzzle/shaaft') diff --git a/games-puzzle/shaaft/Manifest b/games-puzzle/shaaft/Manifest new file mode 100644 index 000000000000..2fe0592ae6ca --- /dev/null +++ b/games-puzzle/shaaft/Manifest @@ -0,0 +1,9 @@ +AUX shaaft-0.5.0-gcc34.patch 388 SHA256 29c4d240888abf5097935cc5f94ca1af0324c42717a3def697f3e1432b29f4b2 SHA512 75d5e5e3f7cedb7ccbef0b1f6aff16744240fa2f320779348f850f2f3d8bdc8f78b0785fbd26adda841c0f8cc2f7c795a08113092cf79c8cf915a8bccbc5f5fe WHIRLPOOL c997713f72a6ec772cf5546335b29a06dc2f939793e86273fcb02b2809ee7a3ee54042c38f6699541edb2321082d3f8e636c9340355d1596dec24ec2a4f56041 +AUX shaaft-0.5.0-gcc41.patch 205 SHA256 5da9ee61cc79e217bd037e73aa4583c3dbd85c4effc970cff0bcc318ef2d0fb6 SHA512 09b58039598a7cc42ee143474d175b277c4eb999e22b473d3872ed75396a09c1fa8d8931077a99a79552be095df0c79f0b1419d8a9e5b0fc718bc0e6abcb6f54 WHIRLPOOL 572abecee5e58d609a8408938312db44d1b47fe1b17f2512f53a260171e80b81d77d5c814d46d02a18072b39a2e218d4c1ae97c6125a0d66e341375779ccb66d +AUX shaaft-0.5.0-gcc43.patch 428 SHA256 923bbf44762997fa9cef7b42c93bac31da05ae622eb8f3f12abad4f11d7a7549 SHA512 4286064e5c194c74248cc9fe9b4bb85819b740e744ca9e275278c2b17d438d5623e0a68618e9377639d03df0864b317862e9aa1f200cfa6c737f4046795871a9 WHIRLPOOL 4a6af3023bda7e1190deea4de7f31ad3f7e5e8852c72a9b84f54f4079f1f4e4d9aa4d7bfceca33017090654b74de4058f68cbfc652de6bef6846aa5caa52bba8 +AUX shaaft-0.5.0-libpng15.patch 472 SHA256 0e38ad14f625ce89f1a7b8d17b169e7ae3f92f46b89127e95d3cdfaa39c5b71e SHA512 80e202e16b7823c4579761a14e865a12b7e5be7073b545a86b28dca4b565b5b95fe1e38156c839ca02167c63fc1acc1fe0dcfac7b145d9464a34b535031c3e6a WHIRLPOOL 60567228aad625e050ef052a990d87d09cf86264d5aaf893d73d2f281df35aab997e45ce8a87eb9a10bfc38136c64d5f89d4a0059af821c15c2821b9d9239870 +DIST Shaaft-0.5.0.tar.bz2 512996 SHA256 db8040c4fee36da9ec9653fd6c04ffb21112c4c9c2297ee66f08b94efa61dc80 SHA512 8fce8f1b8e2cfd78832a5f328d95c186bbd1c96a66685e87f993879e96564d8c9051576c3c822d7dbdb59141d71726ced08a07390b298c3d26969f2b59dceedf WHIRLPOOL 135128793b9f99c917af5de5dd24662ff1970550a68a140869c94c71278e7ad9fc38c8b0e9108078b0bb02a41ee46e3d26a810ec6fc9e06075874a39cbb1f2ce +EBUILD shaaft-0.5.0.ebuild 1144 SHA256 70d9ad9aeba6c52a567774328138f44ccf45f57f749bdc7228d1a2ad13047d77 SHA512 5b755ba1c6b1eb4247904fc5f7e142ebd7712978f33783c59c40c7bbe6e249ecf021f88b83d542217489823171781c8cbb1519886ec1c3753786936cc5e139db WHIRLPOOL 2eee2250bb0ae0b9f9da9e028e29eb5afeb18370c99fd15b3302f738866eb30275ca8f103dce2d78007b3b3f7b69dd3dcdcc74b03864a6249cdfe4c9d7a10e74 +MISC ChangeLog 2793 SHA256 d54448237f8503bd3d21ae7baac6be49c4588c065ec2d30691ba3d5fe32d4ea0 SHA512 4f614dcd12b127635150bde14e99a46e3676eacae5fcaac86e2d67738cb7c03b614ad2938b68aab22682b5ee80ff802711c7071510c9ed5f0b5c6b9e3e7e0364 WHIRLPOOL b09d231d98a349fcf9f1829bec74a25b8dad3e7a2795c7edaa80614d423a321f976612d21161e41af8ca669029b2bc0aa07434ecd6819448a2edcb768c87a8ad +MISC ChangeLog-2015 2273 SHA256 1579c87fafc16f7ec9eb0b1bd2822cad628e573a1a1933fb81dc0ab261db528c SHA512 b6f7d60dbe7be63fbc133eaf3287b9285835a8fd4cb7527324eba48f26204fb2229531be407c8fcfa5131a89a8e92883a06428ca08c1e4aa619b68a33c767233 WHIRLPOOL b0b153eca93ad05291e9e15ee6cbb8ac01139bbc7961220a6964194d781a9c0baeef6d46915a3a4e47c3ae77db9c82f8f5d25c132db6938b537252ee5ec79e4d +MISC metadata.xml 335 SHA256 dc0cbba662f09469700f64a8581a639de8aa689458ae2b80e5428763d0f2f36c SHA512 ef6dcb84323c49c9a21a59eea375bd3c1419ba2c7490f3e20e9daeab88942b4574d3d8668c465e2b2fc4221dff97695ba122d6790ebade3202f873f890fef9e4 WHIRLPOOL 861f0725885ada70e5a9237167168f938a6f8c72e193fe4d8745bab87c1e0e91d7fac4d5e773d8ba2699332cdc423835c9bca9961cac56aea3cfd118e3dd46c1 diff --git a/games-puzzle/shaaft/files/shaaft-0.5.0-gcc34.patch b/games-puzzle/shaaft/files/shaaft-0.5.0-gcc34.patch new file mode 100644 index 000000000000..de3d59c90771 --- /dev/null +++ b/games-puzzle/shaaft/files/shaaft-0.5.0-gcc34.patch @@ -0,0 +1,18 @@ +--- Shaaft-0.5.0.orig/utils/HashString.hpp ++++ Shaaft-0.5.0/utils/HashString.hpp +@@ -21,6 +21,7 @@ using namespace std; + + namespace HASH_NAMESPACE + { ++ template <> + struct hash + { + //a simple hash function for string +@@ -32,6 +33,7 @@ namespace HASH_NAMESPACE + } + }; + ++ template <> + struct hash + { + //a simple hash function for string diff --git a/games-puzzle/shaaft/files/shaaft-0.5.0-gcc41.patch b/games-puzzle/shaaft/files/shaaft-0.5.0-gcc41.patch new file mode 100644 index 000000000000..87b07f109d2f --- /dev/null +++ b/games-puzzle/shaaft/files/shaaft-0.5.0-gcc41.patch @@ -0,0 +1,11 @@ +--- utils/hashMap.hpp.old ++++ utils/hashMap.hpp +@@ -14,7 +14,7 @@ + // + #if defined( __GNUC__ ) + +-# if (__GNUC__ == 3) ++# if (__GNUC__ >= 3) + # include + + # if (__GNUC_MINOR__ == 0) diff --git a/games-puzzle/shaaft/files/shaaft-0.5.0-gcc43.patch b/games-puzzle/shaaft/files/shaaft-0.5.0-gcc43.patch new file mode 100644 index 000000000000..2ddb37c75514 --- /dev/null +++ b/games-puzzle/shaaft/files/shaaft-0.5.0-gcc43.patch @@ -0,0 +1,23 @@ +--- utils/ResourceManager.cpp ++++ utils/ResourceManager.cpp +@@ -17,6 +17,7 @@ + #include + #include + #include ++#include + + #include + #include +--- utils/Value.hpp ++++ utils/Value.hpp +@@ -15,8 +15,9 @@ + #ifndef _Value_hpp_ + #define _Value_hpp_ + +-#include ++#include + #include ++#include + + #include + diff --git a/games-puzzle/shaaft/files/shaaft-0.5.0-libpng15.patch b/games-puzzle/shaaft/files/shaaft-0.5.0-libpng15.patch new file mode 100644 index 000000000000..6773242ea6dc --- /dev/null +++ b/games-puzzle/shaaft/files/shaaft-0.5.0-libpng15.patch @@ -0,0 +1,20 @@ +--- utilssdl/PNG.cpp ++++ utilssdl/PNG.cpp +@@ -45,7 +45,7 @@ + { + png_uint_32 check; + +- check = fwrite( data, 1, length, (FILE *)(png->io_ptr)); ++ check = fwrite( data, 1, length, (FILE *)(png_get_io_ptr(png))); + if( check != length) + { + png_error( png, "Write Error"); +@@ -72,7 +72,7 @@ + return false; + } + +- if( setjmp(_png->jmpbuf)) ++ if( setjmp(png_jmpbuf(_png))) + { + fclose( fp); + png_destroy_write_struct(&_png, (png_infopp)NULL); diff --git a/games-puzzle/shaaft/metadata.xml b/games-puzzle/shaaft/metadata.xml new file mode 100644 index 000000000000..26c1c9ca5f2d --- /dev/null +++ b/games-puzzle/shaaft/metadata.xml @@ -0,0 +1,11 @@ + + + + + games@gentoo.org + Gentoo Games Project + + + criticalmass + + diff --git a/games-puzzle/shaaft/shaaft-0.5.0.ebuild b/games-puzzle/shaaft/shaaft-0.5.0.ebuild new file mode 100644 index 000000000000..ac936664c2bb --- /dev/null +++ b/games-puzzle/shaaft/shaaft-0.5.0.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit autotools eutils games + +DESCRIPTION="A falling block game similar to Blockout" +HOMEPAGE="https://packages.gentoo.org/package/games-puzzle/shaaft" +SRC_URI="mirror://sourceforge/criticalmass/${P/s/S}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +DEPEND="virtual/opengl + sys-libs/zlib + media-libs/libpng:0 + media-libs/libsdl[sound,opengl,video] + media-libs/sdl-mixer[mod] + media-libs/sdl-image[png]" +RDEPEND=${DEPEND} + +S=${WORKDIR}/${P/s/S} + +src_prepare() { + sed -i \ + -e 's:DATA_DIR:"'${GAMES_DATADIR}'\/'${PN/s/S}\/'":g' \ + game/main.cpp || die + + sed -i \ + -e 's:png12:png:g' \ + -e '/^CFLAGS=""/d' \ + -e '/^CXXFLAGS=""/d' \ + configure.in || die + + epatch \ + "${FILESDIR}"/${P}-gcc34.patch \ + "${FILESDIR}"/${P}-gcc41.patch \ + "${FILESDIR}"/${P}-gcc43.patch \ + "${FILESDIR}"/${P}-libpng15.patch + mv configure.in configure.ac || die + eautoreconf +} + +src_configure() { + egamesconf --disable-optimize +} + +src_install() { + DOCS="TODO.txt" default + rm -f "${D}/${GAMES_BINDIR}"/Packer + prepgamesdirs +} -- cgit v1.2.3