diff options
Diffstat (limited to 'games-puzzle/einstein')
-rw-r--r-- | games-puzzle/einstein/Manifest | 9 | ||||
-rw-r--r-- | games-puzzle/einstein/einstein-2.0.ebuild | 42 | ||||
-rw-r--r-- | games-puzzle/einstein/files/einstein-2.0-64bit.patch | 31 | ||||
-rw-r--r-- | games-puzzle/einstein/files/einstein-2.0-as-needed.patch | 11 | ||||
-rw-r--r-- | games-puzzle/einstein/files/einstein-2.0-gcc43.patch | 20 | ||||
-rw-r--r-- | games-puzzle/einstein/metadata.xml | 11 |
6 files changed, 124 insertions, 0 deletions
diff --git a/games-puzzle/einstein/Manifest b/games-puzzle/einstein/Manifest new file mode 100644 index 000000000000..ab56ff35582d --- /dev/null +++ b/games-puzzle/einstein/Manifest @@ -0,0 +1,9 @@ +AUX einstein-2.0-64bit.patch 990 SHA256 5bd76c8ee617e7fb27856ba0e0b45defcaa41ff2c7d4a6f8a999371527430d68 SHA512 36115b1519edfd1e666f14ca3c98b50ea963bec35a2b75a77c3923debf40f3aced1b8d5b2bccf079fd8cdbf45df7ec9619a5eb6f4caaafcad293e9b90aef270b WHIRLPOOL 5a6562c9f5d0f977a2a9b13ba9328cb7c266a726484076563fd0a1f257ffd7fde8fb8406dd3afaa1cd30b437952da855dc5a09482ffc198d6eafbb3723d0667f +AUX einstein-2.0-as-needed.patch 310 SHA256 fcaa3b3f47425fb7c4342043a1b572d914266971f1aebac3ca2192caa4855349 SHA512 b535f4dae3fd20728805b3ddbf45f7b9bd29ab82047455bdccc7a1714d75dafd7608a6488ff3a41d5effd9c92ca26a8c74c767b3cc2b835130d8a1e411a26f09 WHIRLPOOL 3496b76d919c43b884ade54da62453e7adc247970da2c16abe97b251dfc321c324c6c442476de4172ce674ceadc6dadf5a0a83981b3eb9eaa9fe1596cc607f22 +AUX einstein-2.0-gcc43.patch 391 SHA256 9c648dfd740cbdcf855cf4df978934a65feb192eb67ca4d6692999104f4d9c59 SHA512 40900fc551f794b58bd3458a5289c2adfbf439a6bfcb477ce777531545e69056747e856dbe24a181c7748e583fadab14ab622e5d044a0836115dd9ee15a40e98 WHIRLPOOL fdfc124b2ed6b09664a5ed26d3f24a6a374867009f2dc4beac8b4f7ece3db12ff82f4f665753cb0546a2ba9bf58101c070fc4dc3aca2a34dace2cec56569f666 +DIST einstein-2.0-src.tar.gz 722301 SHA256 0f2d1c7d46d36f27a856b98cd4bbb95813970c8e803444772be7bd9bec45a548 SHA512 45599546f2f7fce32f7441cfdae88b72297f4a506d9eb98a64c3b24ec2e2fd86a63d59961a21e017df6a7a676d864ad12598d735f9049adf43cddd91d661f619 WHIRLPOOL aa0327d50a87a3e73e5812585cc6fd505eebda91eedbe43b83210a9e574c20be90c026a1d660d634a8a617b650c43a61e7df91c606780e5e5d7a6b2a1765ece1 +DIST einstein.png 932 SHA256 87416ad30823294a55be626adf3bbf3d32f98cf7c8d7e9e65470d78ed37a66a5 SHA512 9e19d351e915509a11d7275ef0ea7e246d0d334933ec4b48ea0f56aa552ac69041a5c2a64075b02ec3601b1c2b8307cef314c9427ab7615b16e689faaa074283 WHIRLPOOL 6a83e7e0de616f843a67a828a2b9fdeb47bfb134f5759dc2b04605b4eb89bba18183a3be2f5e92075c88fedb875f80e948dcc906572ba8c3513ff0455501f098 +EBUILD einstein-2.0.ebuild 1033 SHA256 634a0c64c860d2e0baaacabfbf424223b72b745c632b9933ce319d762f64f14d SHA512 cb9bb2c0af7e2d8ce75c62f4621a3bddf4c441327216d05fd844ed4978c696476ae6933ba41b09aa5826e4e67cc096c0033096f23c6c9e10034f00aa7d8f4f1e WHIRLPOOL f6a01de0ecf3ba42935104431341b0fdf374011d554edbad1395ade8c97c845d5b65fff4a37912988b552f3cfef27fbf4e677430114e8a155253929f1267e0d2 +MISC ChangeLog 2535 SHA256 18ba83e9359f88afecc92d1733fdea4cd5667b3effa8a91d667b35550b229b64 SHA512 f24caef9a87012afafee1050b900b27822471518217246b0645bc2f3a5c7eaeeba4f3c4856ba96332affb1766c72850cf4186a50d7b261115a57f39e41b0cb88 WHIRLPOOL b85f1db603658a8a51032ea1ed7bee2ca5847a16f7236e18e8efd8089a7f86af7eb58d7edc3b221ec381e44e30830198b9073f6227a7f1bbf6b81245707cc0bb +MISC ChangeLog-2015 1978 SHA256 8778052c248527d1ec418011da678e05124f1969bd02a4176206f3115b0005b3 SHA512 ceef27c381c7d8e395698cae62c3f9c0f45aad45c9baa97f811b27c2ebc1f8cfbe8702aca6bc8cdb0b69cd85b6ee81941e936f87e969294206d2a54cdbb763e5 WHIRLPOOL 31b88b212c6c4604682b8ac784677391003ea399bce98437bf7c44b124d0c5e64924359fb19d3bcc2fa35b9adaf15a7a5023ff1c0bb7658a33a1ee2e0676595f +MISC metadata.xml 334 SHA256 8882951d9dcd15084ee03dcad1fdc2a2f713852b76d0c641c058895751b6a65f SHA512 defe221da415005e05b0b8d58edd84050a565b3249bfd0eae9875f92a67ee0faf320f86cd2b6f703add270f86edfc187e8597fb659b4499e092825b82cd91f64 WHIRLPOOL c4e31db62dae69b83a826a1ff14df949b64d41e7efcc9ddf0136bbde1fc7df3337282b9926e2effdae1a570240ee374274ad282031b9588499621be1faeb25a0 diff --git a/games-puzzle/einstein/einstein-2.0.ebuild b/games-puzzle/einstein/einstein-2.0.ebuild new file mode 100644 index 000000000000..62c0a767bab7 --- /dev/null +++ b/games-puzzle/einstein/einstein-2.0.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit eutils games + +DESCRIPTION="A puzzle game inspired by Albert Einstein" +HOMEPAGE="https://freecode.com/projects/einsteinpuzzle" +SRC_URI="mirror://gentoo/${P}-src.tar.gz + mirror://gentoo/${PN}.png" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +DEPEND="media-libs/libsdl[sound,video] + media-libs/sdl-mixer + media-libs/sdl-ttf" +RDEPEND="${DEPEND}" + +src_prepare() { + epatch "${FILESDIR}"/${P}*.patch + sed -i \ + -e "/PREFIX/s:/usr/local:${GAMES_PREFIX}:" \ + -e "s:\$(PREFIX)/share/einstein:${GAMES_DATADIR}/${PN}:" \ + -e "s:\$(PREFIX)/bin:${GAMES_BINDIR}:" \ + -e "s/\(OPTIMIZE=[^#]*\)/\0 ${CXXFLAGS}/" Makefile \ + || die + sed -i \ + -e "s:PREFIX L\"/share/einstein:L\"${GAMES_DATADIR}/${PN}:" main.cpp \ + || die +} + +src_install() { + dogamesbin "${PN}" + insinto "${GAMES_DATADIR}/${PN}/res" + doins einstein.res + doicon "${DISTDIR}"/${PN}.png + make_desktop_entry ${PN} "Einstein Puzzle" + prepgamesdirs +} diff --git a/games-puzzle/einstein/files/einstein-2.0-64bit.patch b/games-puzzle/einstein/files/einstein-2.0-64bit.patch new file mode 100644 index 000000000000..4d6656252898 --- /dev/null +++ b/games-puzzle/einstein/files/einstein-2.0-64bit.patch @@ -0,0 +1,31 @@ +--- einstein-2.0.orig/formatter.cpp ++++ einstein-2.0/formatter.cpp +@@ -58,7 +58,7 @@ + if ((c.type == INT_ARG) || (c.type == STRING_ARG) || + (c.type == FLOAT_ARG) || (c.type == DOUBLE_ARG)) + { +- int no = (int)c.data; ++ long int no = (long int)c.data; + args[no - 1] = c.type; + } + } +@@ -123,7 +123,7 @@ + std::wstring Formatter::format(std::vector<ArgValue*> &argValues) const + { + std::wstring s; +- int no; ++ long int no; + + for (int i = 0; i < commandsCnt; i++) { + Command *cmd = &commands[i]; +@@ -135,8 +135,8 @@ + + case STRING_ARG: + case INT_ARG: +- no = (int)cmd->data - 1; +- if (no < (int)argValues.size()) ++ no = (long int)cmd->data - 1; ++ if (no < (long int)argValues.size()) + s += argValues[no]->format(cmd); + break; + diff --git a/games-puzzle/einstein/files/einstein-2.0-as-needed.patch b/games-puzzle/einstein/files/einstein-2.0-as-needed.patch new file mode 100644 index 000000000000..fe870bf036e7 --- /dev/null +++ b/games-puzzle/einstein/files/einstein-2.0-as-needed.patch @@ -0,0 +1,11 @@ +--- Makefile.old 2009-02-09 16:37:58.000000000 +0100 ++++ Makefile 2009-02-09 16:38:13.000000000 +0100 +@@ -49,7 +49,7 @@ + + + $(TARGET): $(OBJECTS) +- $(CXX) $(LNFLAGS) $(OBJECTS) -o $(TARGET) ++ $(CXX) $(LDFLAGS) $(OBJECTS) -o $(TARGET) $(LNFLAGS) + + clean: + rm -f $(OBJECTS) core* *core $(TARGET) *~ diff --git a/games-puzzle/einstein/files/einstein-2.0-gcc43.patch b/games-puzzle/einstein/files/einstein-2.0-gcc43.patch new file mode 100644 index 000000000000..25e1815e5e41 --- /dev/null +++ b/games-puzzle/einstein/files/einstein-2.0-gcc43.patch @@ -0,0 +1,20 @@ +--- einstein-2.0.orig/convert.h ++++ einstein-2.0/convert.h +@@ -5,6 +5,7 @@ + #include <iostream> + #include <sstream> + #include <string> ++#include <typeinfo> + + #include "exceptions.h" + #include "unicode.h" + +--- einstein-2.0.orig/unicode.cpp ++++ einstein-2.0/unicode.cpp +@@ -1,5 +1,6 @@ + #include <wchar.h> + #include <stdlib.h> ++#include <string.h> + #ifdef WIN32 + #include <windows.h> + #endif diff --git a/games-puzzle/einstein/metadata.xml b/games-puzzle/einstein/metadata.xml new file mode 100644 index 000000000000..c3f8c58cea81 --- /dev/null +++ b/games-puzzle/einstein/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="freecode">einsteinpuzzle</remote-id> + </upstream> +</pkgmetadata> |