blob: 6442579710c7d882c76e774a04ab785450a853ed (
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
|
# Copyright 2023-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit toolchain-funcs
DESCRIPTION="Fork of the Ponscripter visual novel engine to take advantage of SDL2"
HOMEPAGE="https://github.com/07th-mod/ponscripter-fork"
SRC_URI="https://github.com/07th-mod/ponscripter-fork/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-2+"
SLOT="0"
KEYWORDS="~amd64"
IUSE="+mpeg +ogg"
RDEPEND="
media-libs/libsdl2
media-libs/sdl2-image[jpeg,png]
media-libs/sdl2-mixer
app-arch/bzip2:=
media-libs/freetype
virtual/jpeg
media-libs/libogg
media-libs/libpng
media-libs/libvorbis
media-libs/smpeg2
virtual/zlib:=
"
DEPEND="${RDEPEND}"
BDEPEND="
app-text/xmlto
dev-lang/perl
"
src_prepare() {
default
rm -r src/extlib || die "Failed to remove bundled libraries"
rm -r src/win_dll || die "Failed to remove Windows binaries"
# Broken test for SDL2_Mixer
sed -i '/^if \$EXTERNAL_SDL_MIXER$/,/^fi$/d' configure || die
}
src_configure() {
tc-export CC CXX AR RANLIB
export STRIPPROG=true
# not autoconf
./configure \
--no-werror \
--unsupported-compiler \
--prefix="${EPREFIX}/usr" \
--disable-internal-libs \
--disable-steam || die
}
src_install() {
einstalldocs
emake PREFIX="${ED}/usr" install
mv "${ED}/usr/man" "${ED}/usr/share" || die
}
|