summaryrefslogtreecommitdiff
path: root/games-misc/openmsx/openmsx-0.3.1-r3.ebuild
blob: 84b28b408e1316ff12c677d4ae08f03acf94fc60 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI=5
PYTHON_COMPAT=( python{2_7,3_{3,4,5}} )
inherit python-any-r1 games

DESCRIPTION="An ambiguously named music replacement set for OpenTTD"
HOMEPAGE="http://bundles.openttdcoop.org/openmsx/"
SRC_URI="http://bundles.openttdcoop.org/openmsx/releases/${PV}/${P}-source.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ~arm ppc ~ppc64 x86"
IUSE=""

DEPEND="${PYTHON_DEPS}"

PATCHES=( ${FILESDIR}/${P}-python3.patch )

S=${WORKDIR}/${P}-source

pkg_setup() {
	python-any-r1_pkg_setup
	games_pkg_setup
}

src_compile() {
	emake _V= bundle || die
}

src_install() {
	insinto "${GAMES_DATADIR}"/openttd/gm/${P}
	doins ${P}/{*.mid,openmsx.obm} || die
	dodoc ${P}/{changelog.txt,readme.txt} || die
	prepgamesdirs
}