blob: 0bfea748f909e006bd5d162a79e57b12bc1d4bed (
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
|
# Copyright 2018-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit xdg cmake
MY_PV="${PV/_p/-}"
DESCRIPTION="rewrite of the jump-and-run platformer Doukutsu Monogatari(Cave Story)"
HOMEPAGE="https://github.com/nxengine/nxengine-evo"
SRC_URI="
https://github.com/nxengine/nxengine-evo/archive/v${MY_PV}.tar.gz -> ${PN}-${MY_PV}.tar.gz
https://www.cavestory.org/downloads/cavestoryen.zip
"
S="${WORKDIR}/${PN}-${MY_PV}"
LICENSE="GPL-3 freedist"
SLOT="0"
KEYWORDS="~amd64"
DEPEND="
media-libs/libjpeg-turbo
media-libs/libpng:=
media-libs/libsdl2
media-libs/sdl2-image[jpeg,png]
media-libs/sdl2-mixer
"
RDEPEND="${DEPEND}"
BDEPEND="app-arch/unzip"
PATCHES=(
"${FILESDIR}/nxengine-evo-2.6.5-1-gcc13.patch"
)
src_compile() {
cmake_src_compile
cp -r data "${WORKDIR}/CaveStory" || die
cd "${WORKDIR}/CaveStory" || die
"${BUILD_DIR}/nxextract" || die
}
src_install() {
cmake_src_install
cd "${WORKDIR}/CaveStory" || die
insinto /usr/share/nxengine
doins -r data
newdoc Readme.txt Doukutsu-Readme.txt
docinto html
newdoc Manual.html Doukutsu-Manual.html
dodoc -r Manual
}
|