From bf2a9ad5179cc48817e2a42f7dd5902680b3ea41 Mon Sep 17 00:00:00 2001 From: Pacho Ramos Date: Mon, 23 Apr 2018 20:07:10 +0200 Subject: games-arcade/pacmanarena: Stop using games.eclass Package-Manager: Portage-2.3.31, Repoman-2.3.9 --- .../files/pacmanarena-0.15-underlink.patch | 4 +- .../pacmanarena/pacmanarena-0.15-r1.ebuild | 56 ++++++++++++++++++++++ games-arcade/pacmanarena/pacmanarena-0.15.ebuild | 53 -------------------- 3 files changed, 58 insertions(+), 55 deletions(-) create mode 100644 games-arcade/pacmanarena/pacmanarena-0.15-r1.ebuild delete mode 100644 games-arcade/pacmanarena/pacmanarena-0.15.ebuild diff --git a/games-arcade/pacmanarena/files/pacmanarena-0.15-underlink.patch b/games-arcade/pacmanarena/files/pacmanarena-0.15-underlink.patch index 08c2a54dd1f2..6c32d8793be7 100644 --- a/games-arcade/pacmanarena/files/pacmanarena-0.15-underlink.patch +++ b/games-arcade/pacmanarena/files/pacmanarena-0.15-underlink.patch @@ -1,5 +1,5 @@ ---- configure.ac.old 2011-05-24 08:45:49.197656941 +0200 -+++ configure.ac 2011-05-24 08:46:13.685193761 +0200 +--- a/configure.ac.old 2011-05-24 08:45:49.197656941 +0200 ++++ b/configure.ac 2011-05-24 08:46:13.685193761 +0200 @@ -101,6 +101,7 @@ AC_CHECK_LIB(GLU, gluNewQuadric, [ LDFLAGS="$LDFLAGS -lGLU" ], [AC_MSG_ERROR([OpenGL libraries not found]) diff --git a/games-arcade/pacmanarena/pacmanarena-0.15-r1.ebuild b/games-arcade/pacmanarena/pacmanarena-0.15-r1.ebuild new file mode 100644 index 000000000000..e803d7748359 --- /dev/null +++ b/games-arcade/pacmanarena/pacmanarena-0.15-r1.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit autotools desktop + +DESCRIPTION="3D Pacman clone with a few surprises. Rockets, bombs and explosions abound" +HOMEPAGE="http://pacmanarena.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/pacman-arena-${PV}.tar.bz2 + mirror://sourceforge/${PN}/pacman-data-0.0.zip" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~x86" +IUSE="" + +RDEPEND=" + virtual/opengl + virtual/glu + media-libs/libsdl[sound] + media-libs/sdl-mixer[vorbis] + media-libs/sdl-net +" +DEPEND="${RDEPEND} + app-arch/unzip +" + +S="${WORKDIR}/pacman" + +src_unpack() { + unpack pacman-arena-${PV}.tar.bz2 + cd "${S}" + unpack pacman-data-0.0.zip +} + +src_prepare() { + default + sed -i \ + -e "/^CFLAGS/ s:pacman:${PN}:" \ + -e '1i CC=@CC@' \ + Makefile.in || die + sed -i \ + -e '/CFLAGS/s:-g::' \ + configure || die + eapply "${FILESDIR}"/${P}-underlink.patch + eautoreconf +} + +src_install() { + newbin pacman ${PN} + insinto /usr/share/${PN} + doins -r gfx sfx + newicon gfx/pacman_arena1.tga ${PN}.tga + make_desktop_entry ${PN} "Pacman Arena" /usr/share/pixmaps/${PN}.tga + einstalldocs +} diff --git a/games-arcade/pacmanarena/pacmanarena-0.15.ebuild b/games-arcade/pacmanarena/pacmanarena-0.15.ebuild deleted file mode 100644 index 1d57629a1ffd..000000000000 --- a/games-arcade/pacmanarena/pacmanarena-0.15.ebuild +++ /dev/null @@ -1,53 +0,0 @@ -# Copyright 1999-2015 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=5 -inherit eutils autotools games - -DESCRIPTION="3D Pacman clone with a few surprises. Rockets, bombs and explosions abound" -HOMEPAGE="http://pacmanarena.sourceforge.net/" -SRC_URI="mirror://sourceforge/${PN}/pacman-arena-${PV}.tar.bz2 - mirror://sourceforge/${PN}/pacman-data-0.0.zip" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~alpha ~amd64 ~x86" -IUSE="" - -RDEPEND="virtual/opengl - virtual/glu - media-libs/libsdl[sound] - media-libs/sdl-mixer[vorbis] - media-libs/sdl-net" -DEPEND="${RDEPEND} - app-arch/unzip" - -S=${WORKDIR}/pacman - -src_unpack() { - unpack pacman-arena-${PV}.tar.bz2 - cd "${S}" - unpack pacman-data-0.0.zip -} - -src_prepare() { - sed -i \ - -e "/^CFLAGS/ s:pacman:${PN}:" \ - -e '1i CC=@CC@' \ - Makefile.in || die - sed -i \ - -e '/CFLAGS/s:-g::' \ - configure || die - epatch "${FILESDIR}"/${P}-underlink.patch - eautoreconf -} - -src_install() { - newgamesbin pacman ${PN} || die - insinto "${GAMES_DATADIR}"/${PN} - doins -r gfx sfx || die - newicon gfx/pacman_arena1.tga ${PN}.tga - make_desktop_entry ${PN} "Pacman Arena" /usr/share/pixmaps/${PN}.tga - dodoc README - prepgamesdirs -} -- cgit v1.2.3-65-gdbad