diff options
author | 2018-05-01 14:36:51 +0200 | |
---|---|---|
committer | 2018-05-01 21:33:24 +0200 | |
commit | 211afaf050d6fdb25a0ada5cb77a0f29f38ab897 (patch) | |
tree | 621f1b869ea56a64652d42b3e59da80b536db5f2 /games-puzzle | |
parent | games-puzzle/ltris: Drop old (diff) | |
download | gentoo-211afaf050d6fdb25a0ada5cb77a0f29f38ab897.tar.gz gentoo-211afaf050d6fdb25a0ada5cb77a0f29f38ab897.tar.bz2 gentoo-211afaf050d6fdb25a0ada5cb77a0f29f38ab897.zip |
games-puzzle/magiccube4d: Stop using games.eclass
Package-Manager: Portage-2.3.31, Repoman-2.3.9
Diffstat (limited to 'games-puzzle')
5 files changed, 53 insertions, 8 deletions
diff --git a/games-puzzle/magiccube4d/Manifest b/games-puzzle/magiccube4d/Manifest index a241354be48a..a1723fcf9e19 100644 --- a/games-puzzle/magiccube4d/Manifest +++ b/games-puzzle/magiccube4d/Manifest @@ -1 +1,2 @@ +DIST magiccube4d.gif 20739 BLAKE2B feaf1911e483bff7244476000c75b34794911fe279772b8f5d46ee8bd4125881fb71aaab0ebac891fd0a5db38b746c940991bf5fe9e1ad8a678240b2d6cddf82 SHA512 7a8902710eaa78a6580f024a86bfa1828870dc873a4fef30a7d4fa197a67cd1dde162d6d1d1ba0bea4307c13198d52505fb1a1fa3f6d10b3914af42d7c0ebd49 DIST mc4d-src-2_2.tgz 144645 BLAKE2B 5b29963d056961ce425f7644b14c35e44ce94bc7be6ea5f3fbbb4048478366951005eb8e91fe7cb12e6f1424ad55add31493e0ad3a4ab18eea9e747f940c35f3 SHA512 19491460bada93b4ee2010004128279cb88ab866a5a8c791080d59fa86e5bacf966d7dab0c9b3074e94b77611ae341480d19b384079e83df549ef25e592b12a6 diff --git a/games-puzzle/magiccube4d/files/magiccube4d-2.2-gcc41.patch b/games-puzzle/magiccube4d/files/magiccube4d-2.2-gcc41.patch index adb4d2836a62..8e2aaf2b5fcd 100644 --- a/games-puzzle/magiccube4d/files/magiccube4d-2.2-gcc41.patch +++ b/games-puzzle/magiccube4d/files/magiccube4d-2.2-gcc41.patch @@ -1,5 +1,5 @@ ---- EventHandler.h.old 2006-05-19 22:11:48.000000000 +0200 -+++ EventHandler.h 2006-05-19 22:11:58.000000000 +0200 +--- a/EventHandler.h.old 2006-05-19 22:11:48.000000000 +0200 ++++ b/EventHandler.h 2006-05-19 22:11:58.000000000 +0200 @@ -165,7 +165,7 @@ int number_of_reference_stickers_needed; @@ -9,8 +9,8 @@ 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 +--- a/Machine.h.old 2006-05-19 22:12:17.000000000 +0200 ++++ b/Machine.h 2006-05-19 22:12:29.000000000 +0200 @@ -31,7 +31,7 @@ { public: diff --git a/games-puzzle/magiccube4d/files/magiccube4d-2.2-ldflags.patch b/games-puzzle/magiccube4d/files/magiccube4d-2.2-ldflags.patch index 446eb0cc91ae..73d1b4a59dca 100644 --- a/games-puzzle/magiccube4d/files/magiccube4d-2.2-ldflags.patch +++ b/games-puzzle/magiccube4d/files/magiccube4d-2.2-ldflags.patch @@ -1,5 +1,5 @@ ---- Makefile.in.old 2010-10-15 10:38:48.000000000 +0200 -+++ Makefile.in 2010-10-15 10:39:07.000000000 +0200 +--- a/Makefile.in.old 2010-10-15 10:38:48.000000000 +0200 ++++ b/Makefile.in 2010-10-15 10:39:07.000000000 +0200 @@ -72,10 +72,10 @@ $(CXX) -c $(CXXFLAGS) $< diff --git a/games-puzzle/magiccube4d/files/magiccube4d-EventHandler.patch b/games-puzzle/magiccube4d/files/magiccube4d-EventHandler.patch index 7dae8981c4aa..d242438d8d05 100644 --- a/games-puzzle/magiccube4d/files/magiccube4d-EventHandler.patch +++ b/games-puzzle/magiccube4d/files/magiccube4d-EventHandler.patch @@ -1,5 +1,5 @@ ---- EventHandler.cpp.old 2004-11-04 22:58:13.735812448 +1100 -+++ EventHandler.cpp 2004-11-04 22:57:03.176539088 +1100 +--- a/EventHandler.cpp.old 2004-11-04 22:58:13.735812448 +1100 ++++ b/EventHandler.cpp 2004-11-04 22:57:03.176539088 +1100 @@ -326,7 +326,7 @@ number_of_reference_stickers_needed--; reference_stickers_needed++; diff --git a/games-puzzle/magiccube4d/magiccube4d-2.2-r1.ebuild b/games-puzzle/magiccube4d/magiccube4d-2.2-r1.ebuild new file mode 100644 index 000000000000..5f9eac856d8f --- /dev/null +++ b/games-puzzle/magiccube4d/magiccube4d-2.2-r1.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit desktop + +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 + http://superliminal.com/cube/cube_transp.gif -> ${PN}.gif" + +LICENSE="free-noncomm" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="x11-libs/libXaw" +RDEPEND="${DEPEND}" + +S="${WORKDIR}/${PN}-src-${MY_PV}" + +src_prepare() { + default + eapply "${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() { + dobin magiccube4d + dodoc ChangeLog MagicCube4D-unix.txt readme-unix.txt Intro.txt + doicon "${DISTDIR}"/${PN}.gif + make_desktop_entry ${PN} "Magic Cube 4D" /usr/share/pixmaps/${PN}.gif +} |