blob: 0dd898c6b9051b0891570e200f793e70ec16e1ff (
plain)
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
39
40
41
42
43
|
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
PYTHON_COMPAT=( python2_7 )
inherit python-single-r1 games
DESCRIPTION="Hexagonal Minesweeper"
HOMEPAGE="https://sourceforge.net/projects/hexamine"
SRC_URI="mirror://sourceforge/hexamine/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ~ppc x86"
IUSE=""
RDEPEND="dev-python/pygame
${PYTHON_DEPS}"
DEPEND="${PYTHON_DEPS}"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
S=${WORKDIR}/${PN}
pkg_setup() {
python-single-r1_pkg_setup
games_pkg_setup
}
src_prepare() {
# Modify game data directory
sed -i \
-e "s:\`dirname \$0\`:${GAMES_DATADIR}/${PN}:" \
-e "s:\./hexamine:exec ${EPYTHON} &:" \
hexamine || die
}
src_install() {
dogamesbin hexamine
insinto "${GAMES_DATADIR}/${PN}"
doins -r hexamine.* skins
dodoc ABOUT README
prepgamesdirs
}
|