public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] proj/gamerlay:master commit in: games-action/zlock/, eclass/, games-util/qjoypad/, games-action/voxatron/
@ 2018-09-04 11:26 Vadim A. Misbakh-Soloviov
  0 siblings, 0 replies; only message in thread
From: Vadim A. Misbakh-Soloviov @ 2018-09-04 11:26 UTC (permalink / raw
  To: gentoo-commits

commit:     12d12d57d10be5b483a048d12114cb3ad5c487d9
Author:     Vadim A. Misbakh-Soloviov <git <AT> mva <DOT> name>
AuthorDate: Tue Sep  4 08:00:19 2018 +0000
Commit:     Vadim A. Misbakh-Soloviov <mva <AT> mva <DOT> name>
CommitDate: Tue Sep  4 08:00:19 2018 +0000
URL:        https://gitweb.gentoo.org/proj/gamerlay.git/commit/?id=12d12d57

some QA fixes. TODO: rewrite that ebuilds.

 eclass/d-games.eclass                                   | 17 +++++------------
 games-action/voxatron/voxatron-0.2.3.ebuild             | 12 +++++-------
 games-action/zlock/zlock-0.20.ebuild                    |  7 +------
 .../{qjoypad-4.3.0.ebuild => qjoypad-4.3.0-r1.ebuild}   |  0
 4 files changed, 11 insertions(+), 25 deletions(-)

diff --git a/eclass/d-games.eclass b/eclass/d-games.eclass
index 98f2706..5e9cbe3 100644
--- a/eclass/d-games.eclass
+++ b/eclass/d-games.eclass
@@ -11,27 +11,20 @@
 # in D programming language.
 
 # base added for PATCHES=( ${FILESDIR}/patch ) support
-inherit eutils base games
-
 # @ECLASS-VARIABLE: EAPI
 # @DESCRIPTION:
 # By default we want EAPI 2 which might be redefinable to newer versions later.
 case ${EAPI:-0} in
-	2) : ;;
-	*) DEPEND="EAPI-TOO-OLD" ;;
+	[2-7]) : ;;
+	*) die "d-games.eclass doesn't support your EAPI" ;;
 esac
 
 EXPORT_FUNCTIONS src_prepare
 
 d-games_src_prepare() {
 	# not eapi-handled due to danger of change for sys package in future.
-	if ! built_with_use sys-devel/gcc d; then
-		ewarn "sys-devel/gcc must be built with d useflag"
-		die "recompile gcc with USE=\"d\""
+	if ! has_version sys-devel/gcc[d]; then
+		ewarn "sys-devel/gcc must be built with d useflag (although, some new versions have no this flag anymore)"
+		die "recompile gcc with USE=\"d\" (or install the version that have this flag at all, and select this version to be used for this package"
 	fi
-
-	# TODO: add check for correct gcc version selected in profile.
-
-	base_src_prepare
-	games_src_prepare
 }

diff --git a/games-action/voxatron/voxatron-0.2.3.ebuild b/games-action/voxatron/voxatron-0.2.3.ebuild
index 7fba0d1..2d22e25 100644
--- a/games-action/voxatron/voxatron-0.2.3.ebuild
+++ b/games-action/voxatron/voxatron-0.2.3.ebuild
@@ -4,8 +4,6 @@
 
 EAPI=5
 
-inherit games
-
 DESCRIPTION="A voxelicious action adventure"
 HOMEPAGE="http://www.lexaloffle.com/voxatron.php"
 SRC_URI="${PN}_${PV}_i386.tar.gz"
@@ -17,9 +15,10 @@ KEYWORDS="~amd64 ~x86"
 IUSE=""
 
 DEPEND=""
-RDEPEND="${DEPEND}
-	x86? ( media-libs/libsdl[opengl] )
-	amd64? ( app-emulation/emul-linux-x86-sdl )"
+RDEPEND="
+	${DEPEND}
+	media-libs/libsdl[abi_x86_32,opengl]
+"
 
 pkg_nofetch() {
 	ewarn
@@ -37,7 +36,6 @@ src_install() {
 	doexe vox
 	newicon lexaloffle-vox.png ${PN}.png
 	make_desktop_entry ${PN} Voxatron ${PN}
-	games_make_wrapper ${PN} ./vox ${dir} ${dir}
+	make_wrapper ${PN} ./vox ${dir} ${dir}
 	dodoc ${PN}.txt
-	prepgamesdirs
 }

diff --git a/games-action/zlock/zlock-0.20.ebuild b/games-action/zlock/zlock-0.20.ebuild
index 53c357d..00c9c7a 100644
--- a/games-action/zlock/zlock-0.20.ebuild
+++ b/games-action/zlock/zlock-0.20.ebuild
@@ -47,7 +47,7 @@ src_prepare(){
 }
 
 src_install() {
-	dogamesbin ${PN} || die "dogamesbin failed"
+	dobin ${PN} || die "dobin failed"
 
 	local datadir="${GAMES_DATADIR}"/${PN}
 
@@ -56,9 +56,4 @@ src_install() {
 	doins -r *.xml *.bmp *.ogg *.wav || die
 	make_desktop_entry ${PN} ${PN}
 	dodoc readme*
-	prepgamesdirs
-}
-
-pkg_postinst() {
-	games_pkg_postinst
 }

diff --git a/games-util/qjoypad/qjoypad-4.3.0.ebuild b/games-util/qjoypad/qjoypad-4.3.0-r1.ebuild
similarity index 100%
rename from games-util/qjoypad/qjoypad-4.3.0.ebuild
rename to games-util/qjoypad/qjoypad-4.3.0-r1.ebuild


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2018-09-04 11:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-09-04 11:26 [gentoo-commits] proj/gamerlay:master commit in: games-action/zlock/, eclass/, games-util/qjoypad/, games-action/voxatron/ Vadim A. Misbakh-Soloviov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox