diff options
Diffstat (limited to 'games-puzzle/magiccube4d')
7 files changed, 159 insertions, 0 deletions
diff --git a/games-puzzle/magiccube4d/Manifest b/games-puzzle/magiccube4d/Manifest new file mode 100644 index 000000000000..7aea3a6fb38d --- /dev/null +++ b/games-puzzle/magiccube4d/Manifest @@ -0,0 +1,9 @@ +AUX magiccube4d-2.2-64bit-ptr.patch 1406 SHA256 05465f556602569b1e32360ffc74439bfeb4f060e4a2be9351a7ffbdfdd7623d SHA512 eb684cca4f6f02903c71e970146f6c110d9634ce2f1416e64bdf258b85264c79eaaa9b869f05ddb116373d908f4d0d2675c87d275ab79f76b21f77c5ce1c1563 WHIRLPOOL a3634b575c3f0286101c9137f1803086657ab2d7de8318d77a3d8932ffe8acd6e3c139a0287538b9d1dd1461a2f0f71b347c91616482ab5a854dd1fee8421de4 +AUX magiccube4d-2.2-gcc41.patch 877 SHA256 b69cc3f95795e5c7c6885bf69ffa384695fe001270e6bb3837ec39568e0c9d1a SHA512 e821864c45eb6effa7c613c43cb687def58fda4a770d57909498171db94a17f3f1d5e6ea8f387766eefc788500fc686167333c3c4e42d78a6ce46192d9ee9b1e WHIRLPOOL 1857f3816c7eb3ecc4c057000206ded5a9de823ac9ec5d32e1d56fa377594335c9def3d8c68edfdc6b5bd9bddcacf2b3051d0fa40d3a04da34c31442d0ab48c7 +AUX magiccube4d-2.2-ldflags.patch 497 SHA256 8dd2cb5db7b8ff9156f72bfba490474cea980b45df5ebb203b481bb114da0545 SHA512 d1dd876b8fd4a1db40cc534f828370fce679e2db666409af9923cf6e37ff08c42def867b06cf712a2d4ac4b269a0e4a4f07f6abfd797b85680d902f1f4a67e2c WHIRLPOOL 267940c444d27f53418132690c3bf0603bb9135d86bc6c88a01a7729fe876c5fa86ea2c5a93af5e76f2e36c53aa028beb00d6172e0ea20e38f8e54d69b3e090e +AUX magiccube4d-EventHandler.patch 425 SHA256 6bfdc4a34d560624da46f437f66f857c259dc8cf945feb0d989f4fc3a145a98b SHA512 940ef99a94c1cea687196d918597785d813df30c6e15217a5a02a97cbb8b94ea67a60ed612a5974a8e2635f5b562c34acaee316d1790297166bf70112ee5db70 WHIRLPOOL a48f42e4eed583a9d952a90db74f99964eb90f64288032bfecf5338436560c764c6c0fc4b5a495e2bd2ff196c6cb284eb2d5131157005dc920a7dccded5a23eb +DIST mc4d-src-2_2.tgz 144645 SHA256 79c7b62bbe7a132a2eacf58f92f80113ea63171d3eea59755bc828a1aa9daa44 SHA512 19491460bada93b4ee2010004128279cb88ab866a5a8c791080d59fa86e5bacf966d7dab0c9b3074e94b77611ae341480d19b384079e83df549ef25e592b12a6 WHIRLPOOL 9413fc099375eaf1c5bfdba15e9836125c37275cf0be47560b8d4b99c7a3008393787e2037d91b8b4f8075cf7c3c408a84c111f43d3378f2bd780e8ee35137dc +EBUILD magiccube4d-2.2.ebuild 877 SHA256 ae4a46bd28bf25b3dde93ee3c39f8c0552b944e2e380d1e411ba1709481daea0 SHA512 b4efd153f71082fbae9a968da5c0d8daf8c9bb9dc8c45fb6219564573336fccd3d70f69d344b0003802a74a4e45aed158eeeb90353ed90f8aed2235d25dcc6c3 WHIRLPOOL 3bc6126e827914f10eb07988618e75e2aaacaf5b4f7e8d11a2e0b32498d370d50973a1d1dd60cc07a85cb3a1b24dd133b4d9dc8d65deb0c51d59b1fbb265e2de +MISC ChangeLog 2596 SHA256 b72abd6f114e1aae290cfb11d794c1d808a09101dce31ee68e8fc1eb91a17899 SHA512 42a6e9a0e6dabd1f4d5ba6fb305005f55acc5b305ab696e14834f4e7f4637a2c8296ee4d96444c97408e4726940a5e4907232b0544da0791f6d50bdd00b3681a WHIRLPOOL 0933b4a61cb36b354645b586c0ab7b397926af837142bf962a462cdf65d6eb4ec5570a1e0c8125c1eb5b478a20a8bd4fa7701c9e1a593d1016cd013e4ec7dde5 +MISC ChangeLog-2015 1656 SHA256 56d437ee66c10c088a3399aaa95a63feeb87c240334acd25e56e481cf09337d7 SHA512 42b09e20effc30a4e995a734b7273231a3eae9ac4296c42c2a417086d4eb76c6b420e2295720aecb29d7f2d848ab95f904d2814ecf1342a3e4c4a94c68a559b7 WHIRLPOOL a8e5de679aace948d22f48fc912a14ac60c041fdb1ea37c78674c3bb8079972e42042cdfddfac22fd600ae0b1c3ae75e668c8c1e33ac4ffe3512fd40ad5760fc +MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088 diff --git a/games-puzzle/magiccube4d/files/magiccube4d-2.2-64bit-ptr.patch b/games-puzzle/magiccube4d/files/magiccube4d-2.2-64bit-ptr.patch new file mode 100644 index 000000000000..7fbd52871887 --- /dev/null +++ b/games-puzzle/magiccube4d/files/magiccube4d-2.2-64bit-ptr.patch @@ -0,0 +1,53 @@ +diff -Nru magiccube4d-src-2_2.orig/EventHandler.cpp magiccube4d-src-2_2/EventHandler.cpp +--- magiccube4d-src-2_2.orig/EventHandler.cpp 2007-09-30 12:01:46.503967712 +0200 ++++ magiccube4d-src-2_2/EventHandler.cpp 2007-09-30 12:03:23.489172011 +0200 +@@ -20,6 +20,7 @@ + #include <iostream> + #include <unistd.h> + #include <stdio.h> ++#include <stdint.h> + + #include "MagicCube.h" + #include "Puzzlest.h" +@@ -415,7 +416,7 @@ + void + EventHandler::undo_cb(void* argp) + { +- int arg = (int) argp; ++ int arg = (intptr_t) argp; + struct stickerspec grip; + int dir; + int slicesmask; +@@ -461,7 +462,7 @@ + void + EventHandler::redo_cb(void* argp) + { +- int arg = (int) argp; ++ int arg = (intptr_t) argp; + struct stickerspec grip; + int dir; + int slicesmask; +@@ -507,7 +508,7 @@ + void + EventHandler::scramble_cb(void *arg = NULL) + { +- int n = (int)arg; ++ int n = (intptr_t)arg; + struct stickerspec grip; + int i, previous_face = -1; + int ngrips = NFACES * 3 * 3 * 3; +@@ -855,12 +856,12 @@ + void + EventHandler::newPuzzle_cb(void* arg) + { +- if ((int)arg == preferences.getLength()) ++ if ((intptr_t)arg == preferences.getLength()) + { + reset_cb(0); + return; + } +- preferences.setLength((int)arg); ++ preferences.setLength((intptr_t)arg); + int length = preferences.getLength(); + + polymgr->reset(length); diff --git a/games-puzzle/magiccube4d/files/magiccube4d-2.2-gcc41.patch b/games-puzzle/magiccube4d/files/magiccube4d-2.2-gcc41.patch new file mode 100644 index 000000000000..adb4d2836a62 --- /dev/null +++ b/games-puzzle/magiccube4d/files/magiccube4d-2.2-gcc41.patch @@ -0,0 +1,22 @@ +--- EventHandler.h.old 2006-05-19 22:11:48.000000000 +0200 ++++ EventHandler.h 2006-05-19 22:11:58.000000000 +0200 +@@ -165,7 +165,7 @@ + + int number_of_reference_stickers_needed; + int (*reference_stickers_needed)[4]; +- void (EventHandler::*what_to_do_after_got_reference_stickers) (void *arg = NULL); ++ void (EventHandler::*what_to_do_after_got_reference_stickers) (void *arg); + void* cur_ui_data; + + bool quick_mode; +--- Machine.h.old 2006-05-19 22:12:17.000000000 +0200 ++++ Machine.h 2006-05-19 22:12:29.000000000 +0200 +@@ -31,7 +31,7 @@ + { + public: + typedef void (EventHandler::*event_handler)(EventHandler::Event*, +- void *arg = 0); ++ void *arg); + virtual ~Machine() {}; + + static Machine* createMachine(EventHandler*, int& argc, char *argv[], diff --git a/games-puzzle/magiccube4d/files/magiccube4d-2.2-ldflags.patch b/games-puzzle/magiccube4d/files/magiccube4d-2.2-ldflags.patch new file mode 100644 index 000000000000..446eb0cc91ae --- /dev/null +++ b/games-puzzle/magiccube4d/files/magiccube4d-2.2-ldflags.patch @@ -0,0 +1,15 @@ +--- Makefile.in.old 2010-10-15 10:38:48.000000000 +0200 ++++ Makefile.in 2010-10-15 10:39:07.000000000 +0200 +@@ -72,10 +72,10 @@ + $(CXX) -c $(CXXFLAGS) $< + + $(TARGET): $(OBJS) +- $(CXX) -o $(TARGET) $(OBJS) $(LIBDIRS) $(LIBS) ++ $(CXX) $(LDFLAGS) -o $(TARGET) $(OBJS) $(LIBDIRS) $(LIBS) + + $(TARGET).static: $(OBJS) +- $(CXX) -static -o $(TARGET).static $(OBJS) $(LIBDIRS) $(LIBS) ++ $(CXX) $(LDFLAGS) -static -o $(TARGET).static $(OBJS) $(LIBDIRS) $(LIBS) + + Vec.h: vec_h.c + $(CC) -o vec_h vec_h.c diff --git a/games-puzzle/magiccube4d/files/magiccube4d-EventHandler.patch b/games-puzzle/magiccube4d/files/magiccube4d-EventHandler.patch new file mode 100644 index 000000000000..7dae8981c4aa --- /dev/null +++ b/games-puzzle/magiccube4d/files/magiccube4d-EventHandler.patch @@ -0,0 +1,11 @@ +--- EventHandler.cpp.old 2004-11-04 22:58:13.735812448 +1100 ++++ EventHandler.cpp 2004-11-04 22:57:03.176539088 +1100 +@@ -326,7 +326,7 @@ + number_of_reference_stickers_needed--; + reference_stickers_needed++; + if (number_of_reference_stickers_needed == 0) +- (this->*what_to_do_after_got_reference_stickers)(); ++ (this->*what_to_do_after_got_reference_stickers)(NULL); + } + } + diff --git a/games-puzzle/magiccube4d/magiccube4d-2.2.ebuild b/games-puzzle/magiccube4d/magiccube4d-2.2.ebuild new file mode 100644 index 000000000000..0c262918fd47 --- /dev/null +++ b/games-puzzle/magiccube4d/magiccube4d-2.2.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit eutils games + +MY_PV=${PV/./_} +DESCRIPTION="four-dimensional analog of Rubik's cube" +HOMEPAGE="http://www.superliminal.com/cube/cube.htm" +SRC_URI="http://www.superliminal.com/cube/mc4d-src-${MY_PV}.tgz" + +LICENSE="free-noncomm" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +DEPEND="x11-libs/libXaw" +RDEPEND="${DEPEND}" + +S=${WORKDIR}/${PN}-src-${MY_PV} + +src_prepare() { + epatch "${FILESDIR}"/${PN}-EventHandler.patch \ + "${FILESDIR}/${P}"-gcc41.patch \ + "${FILESDIR}/${P}"-64bit-ptr.patch \ + "${FILESDIR}"/${P}-ldflags.patch + sed -i \ + -e "s:-Werror::" \ + configure \ + || die "sed failed" +} + +src_compile() { + emake DFLAGS="${CFLAGS}" +} + +src_install() { + dogamesbin magiccube4d + dodoc ChangeLog MagicCube4D-unix.txt readme-unix.txt Intro.txt + prepgamesdirs +} diff --git a/games-puzzle/magiccube4d/metadata.xml b/games-puzzle/magiccube4d/metadata.xml new file mode 100644 index 000000000000..78274e0fa550 --- /dev/null +++ b/games-puzzle/magiccube4d/metadata.xml @@ -0,0 +1,8 @@ +<?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> +</pkgmetadata> |