summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAzamat H. Hackimov <azamat.hackimov@gmail.com>2021-02-05 22:23:38 +0300
committerAzamat H. Hackimov <azamat.hackimov@gmail.com>2021-02-05 22:26:09 +0300
commit38f27b5bba355678b93fcf79d634d30d98120894 (patch)
treedc462d3a0cdab4954a5ce990964e604e9b3ddcd8
parentgames-strategy/wyrmsun: update package (diff)
downloadgamerlay-38f27b5bba355678b93fcf79d634d30d98120894.tar.gz
gamerlay-38f27b5bba355678b93fcf79d634d30d98120894.tar.bz2
gamerlay-38f27b5bba355678b93fcf79d634d30d98120894.zip
games-puzzle/cubosphere: migrate to lua.eclass
Package-Manager: Portage-3.0.13, Repoman-3.0.2 Signed-off-by: Azamat H. Hackimov <azamat.hackimov@gmail.com>
-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
}