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/xlogical/Manifest | 8 +++ .../xlogical/files/xlogical-1.0.7-gcc41.patch | 49 ++++++++++++++++++ .../xlogical/files/xlogical-1.0.7-gcc43.patch | 51 +++++++++++++++++++ games-puzzle/xlogical/metadata.xml | 15 ++++++ games-puzzle/xlogical/xlogical-1.0.7.ebuild | 59 ++++++++++++++++++++++ 5 files changed, 182 insertions(+) create mode 100644 games-puzzle/xlogical/Manifest create mode 100644 games-puzzle/xlogical/files/xlogical-1.0.7-gcc41.patch create mode 100644 games-puzzle/xlogical/files/xlogical-1.0.7-gcc43.patch create mode 100644 games-puzzle/xlogical/metadata.xml create mode 100644 games-puzzle/xlogical/xlogical-1.0.7.ebuild (limited to 'games-puzzle/xlogical') diff --git a/games-puzzle/xlogical/Manifest b/games-puzzle/xlogical/Manifest new file mode 100644 index 000000000000..15941215d094 --- /dev/null +++ b/games-puzzle/xlogical/Manifest @@ -0,0 +1,8 @@ +AUX xlogical-1.0.7-gcc41.patch 1121 SHA256 d70f35be5bbf65e7511d239d2449e332c71f93a5af632169c95a3262448fcc4a SHA512 eb98b351ae14f9c3f4f5783ef48633957c21ddb3debd7ba00e9c651be395cb11a30b6109bd26fef12845111ff320c71ef2b43bee6ec1b8748ac6ac34dd8cb87b WHIRLPOOL 0f62826cc0ccf91c6636fb5f651716b5a1f29b23b994bedd729d7709a58ca1932afe3260227fe48b3c89e94b1d8fe41da98ee5ac3d3f28be5439483426122040 +AUX xlogical-1.0.7-gcc43.patch 915 SHA256 fd8394829ba2a3726b25f0bb5d651e3920e5c945f023fca57d2044227e4e8ec7 SHA512 59cc10ec999aff4c8f5630e534ea834ff9a8b2d27e45752abdc46df812841e40de27ca406a45278f28a3a609c021c7753a6980edfaffd3c79b1bb7cf97336209 WHIRLPOOL 334e58b6503a20a71e0fe4b792b56af84ea0279081286e966f609a74d213536495b56b7264a2ea1fc96e89d991b663a1333feb637e802be6b28eb307516c530f +DIST xlogical-1.0-7.tar.bz2 1853575 SHA256 166d227770dcb7d94138f844a8a81380eff3fac7f564274bb2c66ae974e8e7ca SHA512 b47aadff91a7d3057fe8657bdda5c16a910f84f6d324bee82f1beba55de7faf6a599231c8d53ed68cc30f9edfe18f57f31dfc9fe06b8e03fa6120905f37c290d WHIRLPOOL 97c4b236156257a368b7687731da147f17643ca99c729e520e18fde3837c943e990009c7fe951cb1f7739bcfe6587162b0edd7a8773f1c1af7da0cc699788c96 +DIST xlogical_gfx.zip 347801 SHA256 1d6f97ad3cbcb7b78d3e3594643195d6457ab7ca613ccabd6256a5fe13a98f49 SHA512 14322ae1c8fb7f50513ef47e05372c5dc1ec1b658b33c53477e6b05bbee1de0250b21127891f205d16adc386e7ce37c4b834a62794ee105754b97e49eb5d2a42 WHIRLPOOL 5b33c7603b709c97975d28b264417e1645eeebfb9112d4ec6a84c689fd4bff0ade77188896615b77ec8ab764f61ca1e01ef6075acb25d82a114af32638ad1a6c +EBUILD xlogical-1.0.7.ebuild 1456 SHA256 b3f110b34ea58a1642aab61933b1a74d955ebbfdd2657ed2e28757009b7ebf77 SHA512 0a9b9481d89a3b07c91e7a80a5be0f6d6fc6bab46ae3a9e352dbfd3dc071efe3155a1afdcdd9e2115d7884f35d6fe3e455984237ba6bbd9ef23d98bf4bd9531a WHIRLPOOL 63b51b2c3bbd5ba30983a296e7ae5abfd2edf4bbb79a179a01f94ddfe41048cd240d55b3382888342b80f648a8bb618f0a14030f27cc07cf376775f60377a913 +MISC ChangeLog 2506 SHA256 a36ee3654168108bc387135ad5d27e0bc1450dfbc7bd1e39f480ca072683b30e SHA512 8273ec16fb68ecfed1708630cb569c8b6b51b36bdb315459095d27f79a2744caedfcde772931de452ef54d6f4143fea56d7419c73644728fab2b1c1457d8b1ae WHIRLPOOL 0663b7f5cfe18b2927e477bcaa9718df6073196937be5b89f903681088e5426a10b8c043fd1f68b6d9d7667c6c7f4cffb3698645eb69d3aaa1fa04206fc053fa +MISC ChangeLog-2015 1211 SHA256 974fb49de8186eee2619cc42a8a0f897e0ad85e745b305ed34e04cd21d36151a SHA512 a494f13f92602d71f5a71d3379aff5113439521b93828f342b4d8b783650ce91298864eca868f2981cdb0ef0835bf9468efb63545714b9502a32080e0e1892fb WHIRLPOOL 734d55753686394b67ed85cdbb897fd0b515f16197751209723f0c15de62dfaed0187d6fa77ae107a9cb220cbe3b1c6c49db0d725c2b41cf307e1ea9a639bb36 +MISC metadata.xml 554 SHA256 a0164879d498bd0bea60303800f83319f068f3dda286fc48f7c2e96ba3bafac5 SHA512 538cff1d408baf95b2d172490a3a038a8fd79edef5b8c1b64e3c495307b632870548dc0f33b6ed6bc77599d20e883a73a2c2d658b6ca85e131e404bc72e018ee WHIRLPOOL dd60778808e9e8c08932e5bf0efd38abfeb77e0739e013387e6583559f7a37cbbfc4dc4bbc38ead2cd134845efca6982b909d533c4c99a7a908fb55128430339 diff --git a/games-puzzle/xlogical/files/xlogical-1.0.7-gcc41.patch b/games-puzzle/xlogical/files/xlogical-1.0.7-gcc41.patch new file mode 100644 index 000000000000..19cd188b0e0e --- /dev/null +++ b/games-puzzle/xlogical/files/xlogical-1.0.7-gcc41.patch @@ -0,0 +1,49 @@ +--- properties.h.old 2007-01-11 17:33:45.000000000 +0100 ++++ properties.h 2007-01-11 17:34:32.000000000 +0100 +@@ -33,9 +33,7 @@ + #include + #include + +-#ifdef WIN32 + using namespace std; +-#endif + + #include "defs.h" + +--- anim.h.old 2007-01-11 17:36:20.000000000 +0100 ++++ anim.h 2007-01-11 17:36:37.000000000 +0100 +@@ -27,9 +27,7 @@ + // Language Includes + #include + +-#ifdef WIN32 + using namespace std; +-#endif + + // Application Includes + #include "graph.h" +--- exception.h.old 2007-01-11 17:37:37.000000000 +0100 ++++ exception.h 2007-01-11 17:38:21.000000000 +0100 +@@ -27,10 +27,9 @@ + + // Language Includes + #include ++#include + +-#ifdef WIN32 + using namespace std; +-#endif + + #define CatchEx(aEx) catch( CXLException aEx ) + #define ThrowEx(aError) throw CXLException(aError,__FILE__,__LINE__) +--- gamelogic.cpp.old 2007-01-11 17:38:52.000000000 +0100 ++++ gamelogic.cpp 2007-01-11 17:39:12.000000000 +0100 +@@ -154,7 +154,7 @@ + levelFile = NULL; + } + +- currentMap = NULL; ++ currentMap = gameLevels.begin(); + + playerName = new char[32+1]; + strcpy( playerName, "nobody" ); diff --git a/games-puzzle/xlogical/files/xlogical-1.0.7-gcc43.patch b/games-puzzle/xlogical/files/xlogical-1.0.7-gcc43.patch new file mode 100644 index 000000000000..4b64fcd67783 --- /dev/null +++ b/games-puzzle/xlogical/files/xlogical-1.0.7-gcc43.patch @@ -0,0 +1,51 @@ +--- gamelogic.cpp ++++ gamelogic.cpp +@@ -25,6 +25,7 @@ + #include + #include + #include ++#include + + #ifndef WIN32 + #include +--- levelmap.cpp ++++ levelmap.cpp +@@ -21,6 +21,7 @@ + //////////////////////////////////////////////////////////////////////// + + // Language Includes ++#include + #include + #include + #include +--- mapedit.cpp ++++ mapedit.cpp +@@ -26,6 +26,8 @@ + #include + #include + #include ++#include ++#include + + #ifndef WIN32 + #include +--- modlist.cpp ++++ modlist.cpp +@@ -22,6 +22,7 @@ + + #include + #include ++#include + + #ifdef WIN32 + #include +--- tile_spinner.cpp ++++ tile_spinner.cpp +@@ -24,6 +24,7 @@ + + + // Application Includes ++#include + #include "audio.h" + #include "properties.h" + #include "defs.h" diff --git a/games-puzzle/xlogical/metadata.xml b/games-puzzle/xlogical/metadata.xml new file mode 100644 index 000000000000..e2b7cea129a5 --- /dev/null +++ b/games-puzzle/xlogical/metadata.xml @@ -0,0 +1,15 @@ + + + + + games@gentoo.org + Gentoo Games Project + + +XLogical is a puzzle game based on the Logical! game that was originally +released by Rainbow Arts on the Commodore Amiga computer. + + + Use alternate graphics which are closer to the original Amiga version + + diff --git a/games-puzzle/xlogical/xlogical-1.0.7.ebuild b/games-puzzle/xlogical/xlogical-1.0.7.ebuild new file mode 100644 index 000000000000..b458c13e81eb --- /dev/null +++ b/games-puzzle/xlogical/xlogical-1.0.7.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit autotools versionator eutils games + +MY_PV=$(replace_version_separator 2 '-' ) +MY_P=${PN}-${MY_PV} +DESCRIPTION="SDL logical clone" +HOMEPAGE="http://changeling.ixionstudios.com/xlogical/" +SRC_URI="http://changeling.ixionstudios.com/xlogical/downloads/${MY_P}.tar.bz2 + alt_gfx? ( http://changeling.ixionstudios.com/xlogical/downloads/xlogical_gfx.zip )" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="alt_gfx" + +RDEPEND="media-libs/libsdl[sound,video] + media-libs/sdl-image[jpeg] + media-libs/sdl-mixer[mod]" +DEPEND="${RDEPEND} + alt_gfx? ( app-arch/unzip )" + +S=${WORKDIR}/${PN}-$(get_version_component_range 1-2) + +src_unpack() { + unpack ${MY_P}.tar.bz2 + if use alt_gfx ; then + cd "${S}/images" + unpack xlogical_gfx.zip + fi +} + +src_prepare() { + sed -i '/^CXXFLAGS/d' Makefile.am || die + edos2unix properties.h anim.h exception.h + epatch \ + "${FILESDIR}"/${P}-gcc41.patch \ + "${FILESDIR}"/${P}-gcc43.patch + mv configure.in configure.ac + eautoreconf +} + +src_install() { + dogamesbin ${PN} + + insinto "${GAMES_DATADIR}"/${PN} + doins -r ${PN}.{properties,levels} music sound images + find "${D}" -name "Makefile*" -exec rm -f '{}' + + + insinto "${GAMES_STATEDIR}"/${PN} + doins ${PN}.scores + fperms 0660 "${GAMES_STATEDIR}"/${PN}/${PN}.scores + + dodoc AUTHORS ChangeLog NEWS README TODO + make_desktop_entry ${PN} "Xlogical" + prepgamesdirs +} -- cgit v1.2.3