summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--games-puzzle/cubosphere/cubosphere-0.3a-r1.ebuild (renamed from games-puzzle/cubosphere/cubosphere-0.3a.ebuild)16
1 files changed, 8 insertions, 8 deletions
diff --git a/games-puzzle/cubosphere/cubosphere-0.3a.ebuild b/games-puzzle/cubosphere/cubosphere-0.3a-r1.ebuild
index da7ac6f..b4a8fbc 100644
--- a/games-puzzle/cubosphere/cubosphere-0.3a.ebuild
+++ b/games-puzzle/cubosphere/cubosphere-0.3a-r1.ebuild
@@ -1,9 +1,11 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
-#inherit eutils
+LUA_COMPAT=( lua5-1 )
+
+inherit lua-single
DESCRIPTION="game similar to the PSX game Kula World / Roll Away"
HOMEPAGE="http://cubosphere.sourceforge.net/"
@@ -12,9 +14,10 @@ SRC_URI="https://download.sourceforge.net/${PN}/${PN}_beta${PV}_linux_src.tar.gz
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
-IUSE=""
-DEPEND="dev-lang/lua:0
+REQUIRED_USE="${LUA_REQUIRED_USE}"
+DEPEND="
+ ${LUA_DEPS}
virtual/jpeg
media-libs/libsdl
media-libs/sdl-mixer
@@ -24,14 +27,11 @@ DEPEND="dev-lang/lua:0
virtual/glu"
RDEPEND="${DEPEND}"
-S="${WORKDIR}"/"${PN}"_beta"${PV}"/src
+S="${WORKDIR}/${PN}_beta${PV}/src"
src_prepare() {
default
# respect ${GAMES_DATADIR}
- sed -i -e "s:llua5.1:llua:g" -i Makefile
sed -i -e "s:PREFIX=/usr/local":PREFIX=/usr":g" -i Makefile
-# sed -i -e "s:BINDIR=\$(PREFIX)/bin:BINDIR=\$(PREFIX)/games/bin:g" -i Makefile
-# sed -i -e "s:DATADIR=\$(PREFIX)/share/cubosphere:DATADIR="${GAMES_DATADIR}"/"${PN}":g" -i Makefile
sed -i -e "s:install\: all:install\::g" -i Makefile
}