diff options
author | Pacho Ramos <pacho@gentoo.org> | 2018-05-01 14:36:51 +0200 |
---|---|---|
committer | Pacho Ramos <pacho@gentoo.org> | 2018-05-01 21:33:24 +0200 |
commit | 211afaf050d6fdb25a0ada5cb77a0f29f38ab897 (patch) | |
tree | 621f1b869ea56a64652d42b3e59da80b536db5f2 /games-puzzle/magiccube4d/magiccube4d-2.2-r1.ebuild | |
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/magiccube4d/magiccube4d-2.2-r1.ebuild')
-rw-r--r-- | games-puzzle/magiccube4d/magiccube4d-2.2-r1.ebuild | 44 |
1 files changed, 44 insertions, 0 deletions
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 +} |