summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPacho Ramos <pacho@gentoo.org>2018-05-01 14:53:53 +0200
committerPacho Ramos <pacho@gentoo.org>2018-05-01 21:33:33 +0200
commitac647da9261e7b4130a4909d8d96d9324d005d3d (patch)
tree9ae2d75fbeaa2fc8d5c84f17e36aa31b5b5c42d6 /games-puzzle/mirrormagic/mirrormagic-2.0.2-r2.ebuild
parentgames-puzzle/mindless: Drop old (diff)
downloadgentoo-ac647da9261e7b4130a4909d8d96d9324d005d3d.tar.gz
gentoo-ac647da9261e7b4130a4909d8d96d9324d005d3d.tar.bz2
gentoo-ac647da9261e7b4130a4909d8d96d9324d005d3d.zip
games-puzzle/mirrormagic: Stop using games.eclass
Package-Manager: Portage-2.3.31, Repoman-2.3.9
Diffstat (limited to 'games-puzzle/mirrormagic/mirrormagic-2.0.2-r2.ebuild')
-rw-r--r--games-puzzle/mirrormagic/mirrormagic-2.0.2-r2.ebuild59
1 files changed, 59 insertions, 0 deletions
diff --git a/games-puzzle/mirrormagic/mirrormagic-2.0.2-r2.ebuild b/games-puzzle/mirrormagic/mirrormagic-2.0.2-r2.ebuild
new file mode 100644
index 000000000000..812835fd25d0
--- /dev/null
+++ b/games-puzzle/mirrormagic/mirrormagic-2.0.2-r2.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit desktop toolchain-funcs
+
+DESCRIPTION="A game like Deflektor (C 64) or Mindbender (Amiga)"
+HOMEPAGE="http://www.artsoft.org/mirrormagic/"
+SRC_URI="http://www.artsoft.org/RELEASES/unix/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="sdl"
+
+RDEPEND="
+ !sdl? ( x11-libs/libX11 )
+ sdl? (
+ media-libs/libsdl[video]
+ media-libs/sdl-mixer
+ media-libs/sdl-image
+ )
+"
+DEPEND="${RDEPEND}
+ !sdl? ( x11-libs/libXt )
+"
+
+src_prepare() {
+ default
+ eapply \
+ "${FILESDIR}"/${P}-gcc41.patch \
+ "${FILESDIR}"/${P}-parallel.patch \
+ "${FILESDIR}"/${P}-64bit.patch \
+ "${FILESDIR}"/${P}-gcc5.patch \
+ "${FILESDIR}"/${P}-editor.patch
+ rm -f ${PN} || die
+}
+
+src_compile() {
+ emake \
+ -C src \
+ CC="$(tc-getCC)" \
+ AR="$(tc-getAR)" \
+ RANLIB="$(tc-getRANLIB)" \
+ OPTIONS="${CFLAGS}" \
+ EXTRA_LDFLAGS="${LDFLAGS}" \
+ RO_GAME_DIR=/usr/share/${PN} \
+ RW_GAME_DIR=/var/${PN} \
+ TARGET=$(usex sdl sdl x11)
+}
+
+src_install() {
+ dobin ${PN}
+ insinto /usr/share/${PN}
+ doins -r graphics levels music sounds
+ doicon "${FILESDIR}"/${PN}.xpm
+ make_desktop_entry ${PN} "Mirror Magic II"
+ einstalldocs
+}