# Copyright 2019 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 PYTHON_COMPAT=( python3_{5,6,7,8} ) inherit desktop distutils-r1 DESCRIPTION="Cute fluffy little bunnies hoping on each other's head" HOMEPAGE="https://libregames.gitlab.io/jumpnbump/" SRC_URI="https://gitlab.com/LibreGames/${PN}/-/archive/${PV}/${P}.tar.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="+menu" DEPEND=" menu? ( dev-python/pygobject:3[${PYTHON_USEDEP}] ) media-libs/sdl2-mixer[mod] media-libs/libsdl2[sound,joystick,video] media-libs/sdl2-net " RDEPEND="${DEPEND}" BDEPEND="" src_prepare() { sed -i -e 's:/local::' Makefile menu/Makefile default } src_compile() { use menu && emake jnbmenu emake } src_install() { default insinto /usr/share/${PN} if use menu; then doins menu/${PN}_menu.glade newbin menu/${PN}_menu.py ${PN}-menu make_desktop_entry ${PN}-menu "Jump & Bump Launcher" fi }