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@gmx.ch>
This commit is contained in:
Andreas Zuber
2020-07-21 21:32:13 +02:00
parent e4e6f5ef5e
commit bf294f6a4e

View File

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