From bf294f6a4e08aa5bb13524b8a3d3c469f2e56924 Mon Sep 17 00:00:00 2001 From: Andreas Zuber Date: Tue, 21 Jul 2020 21:32:13 +0200 Subject: [PATCH] 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 --- ...oxtron-0.5.4.ebuild => boxtron-0.5.4-r1.ebuild} | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) rename games-engines/boxtron/{boxtron-0.5.4.ebuild => boxtron-0.5.4-r1.ebuild} (74%) 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 cf2d3d6e40..f6f4a379cd 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 }