summaryrefslogtreecommitdiff
blob: 2ed6ff7a783824554076eb8617511316d390d8a5 (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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=5
PYTHON_COMPAT=( python{2_6,2_7} )

inherit eutils gnome2-utils games python-single-r1

DESCRIPTION="A computer mystery/romance game set five minutes into the future of 1988"
HOMEPAGE="http://scoutshonour.com/digital/"
SRC_URI="http://digital.artfulgamer.com/${P}.tar.bz2
	http://www.scoutshonour.com/lilyofthevalley/${P}.tar.bz2"

LICENSE="CC-BY-NC-SA-3.0"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

DEPEND="${PYTHON_DEPS}"
RDEPEND="${DEPEND}
	games-engines/renpy:6.14[${PYTHON_USEDEP}]"

S=${WORKDIR}/Digital-linux-x86

pkg_setup() {
	games_pkg_setup
	python-single-r1_pkg_setup
}

src_prepare() {
	cat <<EOF >"${T}"/digital || die
#!/bin/sh -e
cd "${GAMES_DATADIR}/${PN}"
export PYTHONPATH="$(python_get_sitedir)/renpy614"
exec "${PYTHON}" Digital.py
EOF
}

src_install() {
	exeinto "${GAMES_BINDIR}"
	doexe "${T}"/digital

	insinto "${GAMES_DATADIR}/${PN}"
	doins -r Digital.py common game renpy

	dohtml README.html

	newicon -s 128 game/icon.png ${PN}.png
	make_desktop_entry ${PN} "Digital: A love story"

	prepgamesdirs
}

pkg_preinst() {
	games_pkg_preinst
	gnome2_icon_savelist
}

pkg_postinst() {
	games_pkg_postinst
	gnome2_icon_cache_update
}

pkg_postrm() {
	gnome2_icon_cache_update
}