commit:     bf294f6a4e08aa5bb13524b8a3d3c469f2e56924
Author:     Andreas Zuber <a.zuber <AT> gmx <DOT> ch>
AuthorDate: Tue Jul 21 19:32:13 2020 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
CommitDate: Wed Jul 22 14:14:39 2020 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=bf294f6a

games-engines/boxtron: ebuild improvements

- use the correct python eclass
- move sed command to correct build phase
- fix shebangs of python scripts

Package-Manager: Portage-2.3.103, Repoman-2.3.23
Signed-off-by: Andreas Zuber <a.zuber <AT> gmx.ch>

 .../{boxtron-0.5.4.ebuild => boxtron-0.5.4-r1.ebuild}      | 14 ++++++++++++--
 1 file changed, 12 insertions(+), 2 deletions(-)

diff --git a/games-engines/boxtron/boxtron-0.5.4.ebuild 
b/games-engines/boxtron/boxtron-0.5.4-r1.ebuild
similarity index 74%
rename from games-engines/boxtron/boxtron-0.5.4.ebuild
rename to games-engines/boxtron/boxtron-0.5.4-r1.ebuild
index cf2d3d6..f6f4a37 100644
--- a/games-engines/boxtron/boxtron-0.5.4.ebuild
+++ b/games-engines/boxtron/boxtron-0.5.4-r1.ebuild
@@ -3,6 +3,9 @@
 
 EAPI=7
 
+PYTHON_COMPAT=( python3_{6,7,8} )
+inherit python-single-r1
+
 DESCRIPTION="Steam Play compatibility tool to run DOS games using native Linux 
DOSBox"
 HOMEPAGE="https://github.com/dreamer/boxtron/";
 SRC_URI="https://github.com/dreamer/boxtron/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
@@ -11,22 +14,29 @@ LICENSE="GPL-2"
 SLOT="0"
 KEYWORDS="~amd64 ~x86"
 IUSE=""
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
 
 BDEPEND="
        sys-devel/make
        app-arch/tar"
 
 RDEPEND="
-       >=dev-lang/python-3.5.0
+       ${PYTHON_DEPS}
        >=games-emulation/dosbox-staging-0.75.0
        media-sound/fluid-soundfont
        media-sound/timidity++
        sys-fs/inotify-tools"
 
+src_prepare() {
+       default
+       sed -i '/README.md/d' Makefile || die "sed failed"
+}
+
 src_compile() { :; }
 
 src_install() {
-       sed -i '/README.md/d' Makefile || die "sed failed"
        emake DESTDIR="${D}" prefix=/usr install || die "died running emake"
        dodoc README.md
+       python_fix_shebang "${D}"/usr/share/boxtron/run-dosbox
+       python_fix_shebang "${D}"/usr/bin/install-gog-game
 }

Reply via email to