summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPacho Ramos <pacho@gentoo.org>2018-04-17 22:50:36 +0200
committerPacho Ramos <pacho@gentoo.org>2018-04-17 23:00:47 +0200
commit5ad18daf984626afd8c07ec5d03ecd804c8c1b9c (patch)
tree2ea863838cf50fa63e0d2eadaeeee3054cb150a2 /games-arcade/jumpnbump
parentgames-arcade/insaneodyssey: Drop old (diff)
downloadgentoo-5ad18daf984626afd8c07ec5d03ecd804c8c1b9c.tar.gz
gentoo-5ad18daf984626afd8c07ec5d03ecd804c8c1b9c.tar.bz2
gentoo-5ad18daf984626afd8c07ec5d03ecd804c8c1b9c.zip
games-arcade/jumpnbump: Stop using games.eclass
Package-Manager: Portage-2.3.28, Repoman-2.3.9
Diffstat (limited to 'games-arcade/jumpnbump')
-rw-r--r--games-arcade/jumpnbump/jumpnbump-1.50-r2.ebuild53
1 files changed, 53 insertions, 0 deletions
diff --git a/games-arcade/jumpnbump/jumpnbump-1.50-r2.ebuild b/games-arcade/jumpnbump/jumpnbump-1.50-r2.ebuild
new file mode 100644
index 000000000000..476381cf4757
--- /dev/null
+++ b/games-arcade/jumpnbump/jumpnbump-1.50-r2.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit autotools desktop
+
+DESCRIPTION="A funny multiplayer game about cute little fluffy bunnies"
+HOMEPAGE="http://www.jumpbump.mine.nu/"
+SRC_URI="
+ http://www.jumpbump.mine.nu/port/${P}.tar.gz
+ mirror://gentoo/${P}-autotool.patch.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="X fbcon kde svga tk +music"
+
+DEPEND="
+ media-libs/sdl-mixer
+ media-libs/libsdl[sound,joystick,video]
+ media-libs/sdl-net
+ X? ( x11-libs/libXext )
+ kde? ( kde-apps/kdialog )
+ music? ( media-libs/sdl-mixer[mod] )
+"
+RDEPEND="${DEPEND}
+ tk? (
+ dev-lang/tcl:0=
+ dev-lang/tk:0=
+ )
+"
+
+src_prepare() {
+ default
+ eapply ../${P}-autotool.patch
+ rm -f configure
+ eautoreconf
+ sed -i \
+ -e "/PREFIX/ s:PREFIX.*:\"/usr/share/${PN}/jumpbump.dat\":" \
+ globals.h \
+ || die "sed failed"
+}
+
+src_install() {
+ default
+ # clean up a bit. It leaves a dep on Xdialog but ignore that.
+ use fbcon || rm -f "${D}${GAMES_BINDIR}/jumpnbump.fbcon"
+ use kde || rm -f "${D}${GAMES_BINDIR}/jumpnbump-kdialog"
+ use svga || rm -f "${D}${GAMES_BINDIR}/jumpnbump.svgalib"
+ use tk || rm -f "${D}${GAMES_BINDIR}/jnbmenu.tcl"
+ newicon sdl/jumpnbump64.xpm ${PN}.xpm
+ make_desktop_entry ${PN} "Jump n Bump"
+}