blob: a48697492c6e200b6044fa5fc9b8c4405a62633e (
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
68
69
|
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{9..11} )
inherit desktop python-single-r1 toolchain-funcs
MY_COMMIT="73c5fe86fd831dec45a22077e8d63dd2b6a6349e"
DESCRIPTION="Funny multiplayer game about cute little fluffy bunnies"
HOMEPAGE="https://libregames.gitlab.io/jumpnbump"
SRC_URI="https://gitlab.com/LibreGames/jumpnbump/-/archive/${MY_COMMIT}/${P}.tar.bz2"
S="${WORKDIR}/${PN}-${MY_COMMIT}"
LICENSE="GPL-2+"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="gui"
REQUIRED_USE="gui? ( ${PYTHON_REQUIRED_USE} )"
DEPEND="
app-arch/bzip2:=
media-libs/libsdl2[joystick,sound,video]
media-libs/sdl2-mixer[mod]
media-libs/sdl2-net
sys-libs/zlib:="
RDEPEND="
${DEPEND}
gui? (
${PYTHON_DEPS}
$(python_gen_cond_dep '
dev-python/pillow[${PYTHON_USEDEP}]
dev-python/pygobject[${PYTHON_USEDEP}]
')
x11-libs/gdk-pixbuf:2[introspection]
x11-libs/gtk+:3[introspection]
)"
BDEPEND="gui? ( ${PYTHON_DEPS} )"
PATCHES=(
"${FILESDIR}"/${PN}-1.61-ranlib.patch
)
pkg_setup() {
use gui && python-single-r1_pkg_setup
}
src_compile() {
tc-export AR CC RANLIB
emake PREFIX="${EPREFIX}"/usr
if use gui; then
emake PREFIX="${EPREFIX}"/usr jnbmenu
python_fix_shebang menu/jumpnbump_menu.py
fi
}
src_install() {
emake PREFIX="${ED}"/usr install
use gui && emake -C menu PREFIX="${ED}"/usr install
doicon dist/${PN}.png
rm "${ED}"/usr/share/icons/${PN}.png || die
einstalldocs
}
|