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 }