games-action/garden: remove deprecated games eclass
authorAustin English <wizardedit@gentoo.org>
Tue, 24 Jan 2017 23:25:27 +0000 (17:25 -0600)
committerAustin English <wizardedit@gentoo.org>
Tue, 24 Jan 2017 23:39:17 +0000 (17:39 -0600)
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
games-action/garden/files/garden-1.0.8-underlink.patch
games-action/garden/files/garden-1.0.9-dash.patch
games-action/garden/files/garden-1.0.9-resources.patch
games-action/garden/garden-1.0.9-r1.ebuild [new file with mode: 0644]

index 2d8630236ffb87285754bb7b935fbddad1bc233c..6b197f4f4e1ae28ef1c3117e03b7f8c9073f1628 100644 (file)
@@ -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])
index bd25a4d573842c5f4b6508e9ee735e0f45367617..e538a61a1c1abfa6a6713af5794884b673728fc8 100644 (file)
@@ -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
index 2d8630236ffb87285754bb7b935fbddad1bc233c..6b197f4f4e1ae28ef1c3117e03b7f8c9073f1628 100644 (file)
@@ -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])
index 6acd6f5f78d51f3c7e77ac63bb59f5ff0ac8e400..0ddbdc5e6e3000d1f7467d6fe67cc883aa1dbc5b 100644 (file)
@@ -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 (file)
index 0000000..681e2cd
--- /dev/null
@@ -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
+}