Gentoo Archives: gentoo-commits

From: Austin English <wizardedit@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-action/garden/, games-action/garden/files/
Date: Tue, 24 Jan 2017 23:40:14
Message-Id: 1485301157.e1b52c244e7416d879ebafe9aa294c483506bcc4.wizardedit@gentoo
1 commit: e1b52c244e7416d879ebafe9aa294c483506bcc4
2 Author: Austin English <wizardedit <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jan 24 23:25:27 2017 +0000
4 Commit: Austin English <wizardedit <AT> gentoo <DOT> org>
5 CommitDate: Tue Jan 24 23:39:17 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e1b52c24
7
8 games-action/garden: remove deprecated games eclass
9
10 Also update to EAPI 6
11
12 Gentoo-Bug: https://bugs.gentoo.org/574082
13
14 Package-Manager: Portage-2.3.2, Repoman-2.3.1
15
16 games-action/garden/files/garden-1.0.8-dash.patch | 4 +-
17 .../garden/files/garden-1.0.8-underlink.patch | 8 ++--
18 games-action/garden/files/garden-1.0.9-dash.patch | 4 +-
19 .../garden/files/garden-1.0.9-resources.patch | 4 +-
20 games-action/garden/garden-1.0.9-r1.ebuild | 52 ++++++++++++++++++++++
21 5 files changed, 62 insertions(+), 10 deletions(-)
22
23 diff --git a/games-action/garden/files/garden-1.0.8-dash.patch b/games-action/garden/files/garden-1.0.8-dash.patch
24 index 2d86302..6b197f4 100644
25 --- a/games-action/garden/files/garden-1.0.8-dash.patch
26 +++ b/games-action/garden/files/garden-1.0.8-dash.patch
27 @@ -1,5 +1,5 @@
28 ---- configure.ac.orig 2015-05-04 14:48:03.467935640 -0400
29 -+++ configure.ac 2015-05-04 14:48:24.729199607 -0400
30 +--- a/configure.ac 2015-05-04 14:48:03.467935640 -0400
31 ++++ b/configure.ac 2015-05-04 14:48:24.729199607 -0400
32 @@ -80,7 +80,7 @@
33 [have_allegro="no"])
34 AC_MSG_RESULT([$have_allegro])
35
36 diff --git a/games-action/garden/files/garden-1.0.8-underlink.patch b/games-action/garden/files/garden-1.0.8-underlink.patch
37 index bd25a4d..e538a61 100644
38 --- a/games-action/garden/files/garden-1.0.8-underlink.patch
39 +++ b/games-action/garden/files/garden-1.0.8-underlink.patch
40 @@ -1,5 +1,5 @@
41 ---- bin/Makefile.am.old 2011-06-22 18:16:30.654661047 +0200
42 -+++ bin/Makefile.am 2011-06-22 18:16:55.662251326 +0200
43 +--- a/bin/Makefile.am 2011-06-22 18:16:30.654661047 +0200
44 ++++ b/bin/Makefile.am 2011-06-22 18:16:55.662251326 +0200
45 @@ -9,6 +9,7 @@
46 garden_LDFLAGS = -static
47 else #unix version :-)
48 @@ -8,8 +8,8 @@
49 endif
50
51 #how to build resources?
52 ---- Makefile.am.old 2011-06-22 18:19:37.787560851 +0200
53 -+++ Makefile.am 2011-06-22 18:19:44.078960907 +0200
54 +--- a/Makefile.am 2011-06-22 18:19:37.787560851 +0200
55 ++++ b/Makefile.am 2011-06-22 18:19:44.078960907 +0200
56 @@ -1,5 +1,5 @@
57 ACLOCAL_AMFLAGS= -I m4
58 -SUBDIRS = bin resources
59
60 diff --git a/games-action/garden/files/garden-1.0.9-dash.patch b/games-action/garden/files/garden-1.0.9-dash.patch
61 index 2d86302..6b197f4 100644
62 --- a/games-action/garden/files/garden-1.0.9-dash.patch
63 +++ b/games-action/garden/files/garden-1.0.9-dash.patch
64 @@ -1,5 +1,5 @@
65 ---- configure.ac.orig 2015-05-04 14:48:03.467935640 -0400
66 -+++ configure.ac 2015-05-04 14:48:24.729199607 -0400
67 +--- a/configure.ac 2015-05-04 14:48:03.467935640 -0400
68 ++++ b/configure.ac 2015-05-04 14:48:24.729199607 -0400
69 @@ -80,7 +80,7 @@
70 [have_allegro="no"])
71 AC_MSG_RESULT([$have_allegro])
72
73 diff --git a/games-action/garden/files/garden-1.0.9-resources.patch b/games-action/garden/files/garden-1.0.9-resources.patch
74 index 6acd6f5..0ddbdc5 100644
75 --- a/games-action/garden/files/garden-1.0.9-resources.patch
76 +++ b/games-action/garden/files/garden-1.0.9-resources.patch
77 @@ -1,5 +1,5 @@
78 ---- Makefile.am.orig 2015-05-04 16:57:07.510191036 -0400
79 -+++ Makefile.am 2015-05-04 16:57:14.581946228 -0400
80 +--- a/Makefile.am 2015-05-04 16:57:07.510191036 -0400
81 ++++ b/Makefile.am 2015-05-04 16:57:14.581946228 -0400
82 @@ -1,3 +1,3 @@
83 ACLOCAL_AMFLAGS= -I m4
84
85
86 diff --git a/games-action/garden/garden-1.0.9-r1.ebuild b/games-action/garden/garden-1.0.9-r1.ebuild
87 new file mode 100644
88 index 00000000..681e2cd
89 --- /dev/null
90 +++ b/games-action/garden/garden-1.0.9-r1.ebuild
91 @@ -0,0 +1,52 @@
92 +# Copyright 1999-2017 Gentoo Foundation
93 +# Distributed under the terms of the GNU General Public License v2
94 +# $Id$
95 +
96 +EAPI=6
97 +inherit eutils gnome2-utils autotools flag-o-matic
98 +
99 +DESCRIPTION="Multiplatform vertical shoot-em-up with non-traditional elements"
100 +HOMEPAGE="http://garden.sourceforge.net/"
101 +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
102 +
103 +LICENSE="GPL-3+"
104 +SLOT="0"
105 +KEYWORDS="~amd64 ~ppc ~x86"
106 +IUSE=""
107 +
108 +DEPEND="<media-libs/allegro-5"
109 +RDEPEND="${DEPEND}"
110 +
111 +PATCHES=(
112 + "${FILESDIR}/${P}-dash.patch"
113 + "${FILESDIR}/${P}-resources.patch"
114 +)
115 +src_prepare() {
116 + default
117 +
118 + # build with gcc52
119 + sed -i \
120 + -e 's/inline/extern inline/' \
121 + src/stuff.h || die
122 + eautoreconf
123 + append-cflags -std=gnu89 # build with gcc5 (bug #572672)
124 +}
125 +
126 +src_install() {
127 + DOCS="AUTHORS ChangeLog NEWS README" \
128 + default
129 + doicon -s scalable resources/garden.svg
130 + make_desktop_entry garden "Garden of coloured lights"
131 +}
132 +
133 +pkg_preinst() {
134 + gnome2_icon_savelist
135 +}
136 +
137 +pkg_postinst() {
138 + gnome2_icon_cache_update
139 +}
140 +
141 +pkg_postrm() {
142 + gnome2_icon_cache_update
143 +}