games-arcade/pacmanarena: Stop using games.eclass
authorPacho Ramos <pacho@gentoo.org>
Mon, 23 Apr 2018 18:07:10 +0000 (20:07 +0200)
committerPacho Ramos <pacho@gentoo.org>
Mon, 23 Apr 2018 19:16:56 +0000 (21:16 +0200)
Package-Manager: Portage-2.3.31, Repoman-2.3.9

games-arcade/pacmanarena/files/pacmanarena-0.15-underlink.patch
games-arcade/pacmanarena/pacmanarena-0.15-r1.ebuild [moved from games-arcade/pacmanarena/pacmanarena-0.15.ebuild with 72% similarity]

index 08c2a54dd1f21eb54bf25d844fbafa89ede394cd..6c32d8793be74b51958d3fc025e2b9fc6b4dd8dd 100644 (file)
@@ -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])
similarity index 72%
rename from games-arcade/pacmanarena/pacmanarena-0.15.ebuild
rename to games-arcade/pacmanarena/pacmanarena-0.15-r1.ebuild
index 1d57629a1ffd8f26ccebe6842efb4e771b6a5a3f..e803d7748359e22480b3a41facd64554c92a696e 100644 (file)
@@ -1,8 +1,8 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=5
-inherit eutils autotools games
+EAPI=6
+inherit autotools desktop
 
 DESCRIPTION="3D Pacman clone with a few surprises. Rockets, bombs and explosions abound"
 HOMEPAGE="http://pacmanarena.sourceforge.net/"
@@ -14,15 +14,18 @@ SLOT="0"
 KEYWORDS="~alpha ~amd64 ~x86"
 IUSE=""
 
-RDEPEND="virtual/opengl
+RDEPEND="
+       virtual/opengl
        virtual/glu
        media-libs/libsdl[sound]
        media-libs/sdl-mixer[vorbis]
-       media-libs/sdl-net"
+       media-libs/sdl-net
+"
 DEPEND="${RDEPEND}
-       app-arch/unzip"
+       app-arch/unzip
+"
 
-S=${WORKDIR}/pacman
+S="${WORKDIR}/pacman"
 
 src_unpack() {
        unpack pacman-arena-${PV}.tar.bz2
@@ -31,6 +34,7 @@ src_unpack() {
 }
 
 src_prepare() {
+       default
        sed -i \
                -e "/^CFLAGS/ s:pacman:${PN}:" \
                -e '1i CC=@CC@' \
@@ -38,16 +42,15 @@ src_prepare() {
        sed -i \
                -e '/CFLAGS/s:-g::' \
                configure || die
-       epatch "${FILESDIR}"/${P}-underlink.patch
+       eapply "${FILESDIR}"/${P}-underlink.patch
        eautoreconf
 }
 
 src_install() {
-       newgamesbin pacman ${PN} || die
-       insinto "${GAMES_DATADIR}"/${PN}
-       doins -r gfx sfx || die
+       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
-       dodoc README
-       prepgamesdirs
+       einstalldocs
 }