diff options
Diffstat (limited to 'games-arcade/nottetris/nottetris-2.ebuild')
-rw-r--r-- | games-arcade/nottetris/nottetris-2.ebuild | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/games-arcade/nottetris/nottetris-2.ebuild b/games-arcade/nottetris/nottetris-2.ebuild new file mode 100644 index 0000000..2bcf64d --- /dev/null +++ b/games-arcade/nottetris/nottetris-2.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: This ebuild is from Lua overlay; Bumped by mva; $ + +EAPI="5" + +inherit eutils games + +DESCRIPTION="A tetris game with physics" +HOMEPAGE="http://stabyourself.net/${PN}2/" +SRC_URI="http://stabyourself.net/dl.php?file=${PN}2/${PN}2-source.zip -> ${P}.zip" +LICENSE="GPL-2" +SLOT="0" + +# Currently not usable with love-0.8.0. +# Waiting for fixes from upstream. +KEYWORDS="-*" + +IUSE="" +RESTRICT="" + +DEPEND=">=games-engines/love-0.8.0" +RDEPEND="${DEPEND}" + +S="${WORKDIR}" + +src_unpack() { + default + #it is only one .love file (but with crappy name), so we can use asterisk + mv *.love "${P}.zip" + unpack "./${P}.zip" + rm "${P}.zip" +} + +src_prepare() { + default + epatch_user +} + +src_install() { + local dir="${GAMES_DATADIR}/love/${PN}" + insinto "${dir}" + doins -r . + games_make_wrapper "${PN}" "love /usr/share/games/love/${P}" + make_desktop_entry "${PN}" + prepgamesdirs +} + +pkg_postinst() { + elog "${PN} savegames and configurations are stored in:" + elog "~/.local/share/love/${PN}/" +} + |