summaryrefslogtreecommitdiff
blob: 2ab5b56071162f4b48e51d85f0de2a2298cc081e (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
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

inherit eutils desktop

RENPY_SLOT="6.99"

DESCRIPTION="Bishoujo-style visual novel by Four Leaf Studios"
HOMEPAGE="https://www.katawa-shoujo.com"
SRC_URI="https://dl.katawa-shoujo.com/gold_${PV}/%5B4ls%5D_katawa_shoujo_${PV}-%5Blinux-x86%5D%5B18161880%5D.tar.bz2 -> ${P}.tar.bz2"

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

RDEPEND="games-engines/renpy:${RENPY_SLOT}"

S="${WORKDIR}/Katawa Shoujo-${PV}-linux"

src_install() {
	insinto "/usr/share/${PN}"
	doins -r game/.
	make_wrapper ${PN} "renpy-${RENPY_SLOT} '${EPREFIX}/usr/share/${PN}'"

	make_desktop_entry ${PN} "Katawa Shoujo" applications-games

	if use doc; then
		dodoc "Game Manual.pdf"
	fi
}