commit:     e1b52c244e7416d879ebafe9aa294c483506bcc4
Author:     Austin English <wizardedit <AT> gentoo <DOT> org>
AuthorDate: Tue Jan 24 23:25:27 2017 +0000
Commit:     Austin English <wizardedit <AT> gentoo <DOT> org>
CommitDate: Tue Jan 24 23:39:17 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e1b52c24

games-action/garden: remove deprecated games eclass

Also update to EAPI 6

Gentoo-Bug: https://bugs.gentoo.org/574082

Package-Manager: Portage-2.3.2, Repoman-2.3.1

 games-action/garden/files/garden-1.0.8-dash.patch  |  4 +-
 .../garden/files/garden-1.0.8-underlink.patch      |  8 ++--
 games-action/garden/files/garden-1.0.9-dash.patch  |  4 +-
 .../garden/files/garden-1.0.9-resources.patch      |  4 +-
 games-action/garden/garden-1.0.9-r1.ebuild         | 52 ++++++++++++++++++++++
 5 files changed, 62 insertions(+), 10 deletions(-)

diff --git a/games-action/garden/files/garden-1.0.8-dash.patch 
b/games-action/garden/files/garden-1.0.8-dash.patch
index 2d86302..6b197f4 100644
--- a/games-action/garden/files/garden-1.0.8-dash.patch
+++ b/games-action/garden/files/garden-1.0.8-dash.patch
@@ -1,5 +1,5 @@
---- configure.ac.orig  2015-05-04 14:48:03.467935640 -0400
-+++ configure.ac       2015-05-04 14:48:24.729199607 -0400
+--- a/configure.ac     2015-05-04 14:48:03.467935640 -0400
++++ b/configure.ac     2015-05-04 14:48:24.729199607 -0400
 @@ -80,7 +80,7 @@
                       [have_allegro="no"])
        AC_MSG_RESULT([$have_allegro])

diff --git a/games-action/garden/files/garden-1.0.8-underlink.patch 
b/games-action/garden/files/garden-1.0.8-underlink.patch
index bd25a4d..e538a61 100644
--- a/games-action/garden/files/garden-1.0.8-underlink.patch
+++ b/games-action/garden/files/garden-1.0.8-underlink.patch
@@ -1,5 +1,5 @@
---- bin/Makefile.am.old        2011-06-22 18:16:30.654661047 +0200
-+++ bin/Makefile.am    2011-06-22 18:16:55.662251326 +0200
+--- a/bin/Makefile.am  2011-06-22 18:16:30.654661047 +0200
++++ b/bin/Makefile.am  2011-06-22 18:16:55.662251326 +0200
 @@ -9,6 +9,7 @@
  garden_LDFLAGS = -static
  else #unix version :-)
@@ -8,8 +8,8 @@
  endif
  
  #how to build resources?
---- Makefile.am.old    2011-06-22 18:19:37.787560851 +0200
-+++ Makefile.am        2011-06-22 18:19:44.078960907 +0200
+--- a/Makefile.am      2011-06-22 18:19:37.787560851 +0200
++++ b/Makefile.am      2011-06-22 18:19:44.078960907 +0200
 @@ -1,5 +1,5 @@
  ACLOCAL_AMFLAGS= -I m4
 -SUBDIRS = bin resources

diff --git a/games-action/garden/files/garden-1.0.9-dash.patch 
b/games-action/garden/files/garden-1.0.9-dash.patch
index 2d86302..6b197f4 100644
--- a/games-action/garden/files/garden-1.0.9-dash.patch
+++ b/games-action/garden/files/garden-1.0.9-dash.patch
@@ -1,5 +1,5 @@
---- configure.ac.orig  2015-05-04 14:48:03.467935640 -0400
-+++ configure.ac       2015-05-04 14:48:24.729199607 -0400
+--- a/configure.ac     2015-05-04 14:48:03.467935640 -0400
++++ b/configure.ac     2015-05-04 14:48:24.729199607 -0400
 @@ -80,7 +80,7 @@
                       [have_allegro="no"])
        AC_MSG_RESULT([$have_allegro])

diff --git a/games-action/garden/files/garden-1.0.9-resources.patch 
b/games-action/garden/files/garden-1.0.9-resources.patch
index 6acd6f5..0ddbdc5 100644
--- a/games-action/garden/files/garden-1.0.9-resources.patch
+++ b/games-action/garden/files/garden-1.0.9-resources.patch
@@ -1,5 +1,5 @@
---- Makefile.am.orig   2015-05-04 16:57:07.510191036 -0400
-+++ Makefile.am        2015-05-04 16:57:14.581946228 -0400
+--- a/Makefile.am      2015-05-04 16:57:07.510191036 -0400
++++ b/Makefile.am      2015-05-04 16:57:14.581946228 -0400
 @@ -1,3 +1,3 @@
  ACLOCAL_AMFLAGS= -I m4
  

diff --git a/games-action/garden/garden-1.0.9-r1.ebuild 
b/games-action/garden/garden-1.0.9-r1.ebuild
new file mode 100644
index 00000000..681e2cd
--- /dev/null
+++ b/games-action/garden/garden-1.0.9-r1.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+inherit eutils gnome2-utils autotools flag-o-matic
+
+DESCRIPTION="Multiplatform vertical shoot-em-up with non-traditional elements"
+HOMEPAGE="http://garden.sourceforge.net/";
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-3+"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+
+DEPEND="<media-libs/allegro-5"
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+       "${FILESDIR}/${P}-dash.patch"
+       "${FILESDIR}/${P}-resources.patch"
+)
+src_prepare() {
+       default
+
+       # build with gcc52
+       sed -i \
+               -e 's/inline/extern inline/' \
+               src/stuff.h || die
+       eautoreconf
+       append-cflags -std=gnu89 # build with gcc5 (bug #572672)
+}
+
+src_install() {
+       DOCS="AUTHORS ChangeLog NEWS README" \
+               default
+       doicon -s scalable resources/garden.svg
+       make_desktop_entry garden "Garden of coloured lights"
+}
+
+pkg_preinst() {
+       gnome2_icon_savelist
+}
+
+pkg_postinst() {
+       gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+       gnome2_icon_cache_update
+}

Reply via email to