commit:     a7517f62a306c88c4dd0086ef90bb3fcf9bb5add
Author:     Pacho Ramos <pacho <AT> gentoo <DOT> org>
AuthorDate: Mon Apr 16 20:03:24 2018 +0000
Commit:     Pacho Ramos <pacho <AT> gentoo <DOT> org>
CommitDate: Mon Apr 16 20:26:32 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a7517f62

games-arcade/gav: Stop using games.eclass

Package-Manager: Portage-2.3.28, Repoman-2.3.9

 games-arcade/gav/files/gav-0.9.0-gcc43.patch   |  4 +-
 games-arcade/gav/files/gav-0.9.0-ldflags.patch |  8 ++--
 games-arcade/gav/gav-0.9.0-r1.ebuild           | 66 ++++++++++++++++++++++++++
 3 files changed, 72 insertions(+), 6 deletions(-)

diff --git a/games-arcade/gav/files/gav-0.9.0-gcc43.patch 
b/games-arcade/gav/files/gav-0.9.0-gcc43.patch
index 06bc1a5d254..c9b8a6e588b 100644
--- a/games-arcade/gav/files/gav-0.9.0-gcc43.patch
+++ b/games-arcade/gav/files/gav-0.9.0-gcc43.patch
@@ -1,5 +1,5 @@
---- Configuration.cpp
-+++ Configuration.cpp
+--- a/Configuration.cpp
++++ b/Configuration.cpp
 @@ -25,6 +25,7 @@
  #include <stdlib.h>
  #include <string>

diff --git a/games-arcade/gav/files/gav-0.9.0-ldflags.patch 
b/games-arcade/gav/files/gav-0.9.0-ldflags.patch
index 04188320ac4..dd49e616166 100644
--- a/games-arcade/gav/files/gav-0.9.0-ldflags.patch
+++ b/games-arcade/gav/files/gav-0.9.0-ldflags.patch
@@ -1,5 +1,5 @@
---- CommonHeader.old   2010-10-12 13:08:23.000000000 +0200
-+++ CommonHeader       2010-10-12 13:08:48.000000000 +0200
+--- a/CommonHeader.old 2010-10-12 13:08:23.000000000 +0200
++++ b/CommonHeader     2010-10-12 13:08:48.000000000 +0200
 @@ -31,9 +31,9 @@
  endif
  
@@ -12,8 +12,8 @@
  endif
  
  SRCS  =       $(wildcard *.cpp)
---- Makefile.Linux.old 2010-10-12 14:36:47.000000000 +0200
-+++ Makefile.Linux     2010-10-12 14:37:02.000000000 +0200
+--- a/Makefile.Linux.old       2010-10-12 14:36:47.000000000 +0200
++++ b/Makefile.Linux   2010-10-12 14:37:02.000000000 +0200
 @@ -38,8 +38,7 @@
        $(MAKE) -C $(@D:%_module.o=%)
  

diff --git a/games-arcade/gav/gav-0.9.0-r1.ebuild 
b/games-arcade/gav/gav-0.9.0-r1.ebuild
new file mode 100644
index 00000000000..d039cac137a
--- /dev/null
+++ b/games-arcade/gav/gav-0.9.0-r1.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit desktop
+
+DESCRIPTION="GPL Arcade Volleyball"
+HOMEPAGE="http://gav.sourceforge.net/";
+# the themes are behind a lame php-counter script.
+SRC_URI="mirror://sourceforge/gav/${P}.tar.gz
+       mirror://gentoo/fabeach.tgz
+       mirror://gentoo/florindo.tgz
+       mirror://gentoo/inverted.tgz
+       mirror://gentoo/naive.tgz
+       mirror://gentoo/unnamed.tgz
+       mirror://gentoo/yisus.tgz
+       mirror://gentoo/yisus2.tgz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~x86-fbsd"
+IUSE=""
+
+DEPEND="media-libs/sdl-image[jpeg,png]
+       media-libs/sdl-net
+       media-libs/libsdl[joystick,video]"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+       default
+
+       local d
+
+       eapply "${FILESDIR}"/${P}-ldflags.patch
+
+       for d in . automa menu net ; do
+               cp ${d}/Makefile.Linux ${d}/Makefile || die "cp ${d}/Makefile 
failed"
+       done
+
+       eapply "${FILESDIR}"/${P}-gcc43.patch
+       sed -i \
+               -e "/^CXXFLAGS=/s: -g : ${CXXFLAGS} :" CommonHeader \
+               || die "sed failed"
+
+       # Now, move the additional themes in the proper directory
+       mv ../{fabeach,florindo,inverted,naive,unnamed,yisus,yisus2} themes
+
+       # no reason to have executable files in the themes
+       find themes -type f -exec chmod a-x \{\} \;
+}
+
+src_compile() {
+       # bug #41530 - doesn't like the hot parallel make action.
+       emake -C automa
+       emake -C menu
+       emake -C net
+       emake
+}
+
+src_install() {
+       dodir /usr/bin
+       emake ROOT="${D}" install
+       insinto /usr/share/${PN}
+       doins -r sounds
+       einstalldocs
+}

Reply via email to