summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBetaRays <BetaRays@protonmail.com>2018-07-17 20:22:50 +0200
committerMichał Górny <mgorny@gentoo.org>2018-07-20 23:02:03 +0200
commit7b1aa8916856ce46d06bff6af32f03f4529b5fa7 (patch)
tree3d57260a5e5624dc6dd8c43701e1cba3a4602de2 /games-arcade
parentgames-arcade/mrrescue: Update love dependency (diff)
downloadgentoo-7b1aa8916856ce46d06bff6af32f03f4529b5fa7.tar.gz
gentoo-7b1aa8916856ce46d06bff6af32f03f4529b5fa7.tar.bz2
gentoo-7b1aa8916856ce46d06bff6af32f03f4529b5fa7.zip
games-arcade/orthorobot: Update love dependency
Package-Manager: Portage-2.3.40, Repoman-2.3.9
Diffstat (limited to 'games-arcade')
-rw-r--r--games-arcade/orthorobot/orthorobot-0-r2.ebuild41
1 files changed, 41 insertions, 0 deletions
diff --git a/games-arcade/orthorobot/orthorobot-0-r2.ebuild b/games-arcade/orthorobot/orthorobot-0-r2.ebuild
new file mode 100644
index 000000000000..d8730666312f
--- /dev/null
+++ b/games-arcade/orthorobot/orthorobot-0-r2.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit eutils
+
+DESCRIPTION="Perspective based puzzle game, where you flatten the view to move across gaps"
+HOMEPAGE="http://stabyourself.net/orthorobot/"
+SRC_URI="http://stabyourself.net/dl.php?file=${PN}/${PN}-source.zip -> ${P}.zip"
+
+LICENSE="CC-BY-NC-ND-3.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+LVSLOT="0.8"
+RDEPEND="games-engines/love:${LVSLOT}"
+DEPEND="app-arch/unzip"
+
+S="${WORKDIR}"
+
+src_unpack() {
+ default
+ #it is only one .love file (but with crappy name), so we can use asterisk
+ mv *.love "${P}.zip" || die 'mv failed'
+ unpack "./${P}.zip"
+ rm "${P}.zip" || die 'rm failed'
+}
+
+src_prepare() {
+ default
+ # fix error on quit
+ sed -i -e 's/love.event.push("q")/love.event.push(fadegoal)/' menu.lua || die 'sed failed'
+}
+
+src_install() {
+ local dir="/usr/share/love/${PN}"
+ insinto "${dir}"
+ doins -r .
+ make_wrapper "${PN}" "love-${LVSLOT} ${dir}"
+ make_desktop_entry "${PN}"
+}