commit:     38f27b5bba355678b93fcf79d634d30d98120894
Author:     Azamat H. Hackimov <azamat.hackimov <AT> gmail <DOT> com>
AuthorDate: Fri Feb  5 19:23:38 2021 +0000
Commit:     Azamat H. Hackimov <winterheart <AT> gentoo <DOT> ru>
CommitDate: Fri Feb  5 19:26:09 2021 +0000
URL:        https://gitweb.gentoo.org/proj/gamerlay.git/commit/?id=38f27b5b

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 <AT> gmail.com>

 ...{cubosphere-0.3a.ebuild => cubosphere-0.3a-r1.ebuild} | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/games-puzzle/cubosphere/cubosphere-0.3a.ebuild 
b/games-puzzle/cubosphere/cubosphere-0.3a-r1.ebuild
similarity index 64%
rename from games-puzzle/cubosphere/cubosphere-0.3a.ebuild
rename to 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
 }

Reply via email to