Gentoo Archives: gentoo-commits

From: Pacho Ramos <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-arcade/xbubble/files/, games-arcade/xbubble/
Date: Wed, 25 Apr 2018 18:29:51
Message-Id: 1524680966.9086f24bc80430a3a4434bb80f7a91b00696cc1c.pacho@gentoo
1 commit: 9086f24bc80430a3a4434bb80f7a91b00696cc1c
2 Author: Pacho Ramos <pacho <AT> gentoo <DOT> org>
3 AuthorDate: Wed Apr 25 17:53:54 2018 +0000
4 Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org>
5 CommitDate: Wed Apr 25 18:29:26 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9086f24b
7
8 games-arcade/xbubble: Stop using games.eclass
9
10 Package-Manager: Portage-2.3.31, Repoman-2.3.9
11
12 .../xbubble/files/xbubble-0.5.8-libpng14.patch | 4 +-
13 .../xbubble/files/xbubble-0.5.8-locale.patch | 4 +-
14 .../xbubble/files/xbubble-0.5.8-png15.patch | 4 +-
15 .../xbubble/files/xbubble-0.5.8-xpaths.patch | 4 +-
16 games-arcade/xbubble/xbubble-0.5.8-r1.ebuild | 51 ++++++++++++++++++++++
17 5 files changed, 59 insertions(+), 8 deletions(-)
18
19 diff --git a/games-arcade/xbubble/files/xbubble-0.5.8-libpng14.patch b/games-arcade/xbubble/files/xbubble-0.5.8-libpng14.patch
20 index ad689e29d73..4fe12672db6 100644
21 --- a/games-arcade/xbubble/files/xbubble-0.5.8-libpng14.patch
22 +++ b/games-arcade/xbubble/files/xbubble-0.5.8-libpng14.patch
23 @@ -1,7 +1,7 @@
24 http://bugs.gentoo.org/show_bug.cgi?id=308731
25
26 ---- src/loadpng.c
27 -+++ src/loadpng.c
28 +--- a/src/loadpng.c
29 ++++ b/src/loadpng.c
30 @@ -55,7 +55,7 @@ unsigned char * load_png_file( const cha
31 }
32 /* ensure that we opened a PNG file */
33
34 diff --git a/games-arcade/xbubble/files/xbubble-0.5.8-locale.patch b/games-arcade/xbubble/files/xbubble-0.5.8-locale.patch
35 index a83d36fbd91..99c03b0c82a 100644
36 --- a/games-arcade/xbubble/files/xbubble-0.5.8-locale.patch
37 +++ b/games-arcade/xbubble/files/xbubble-0.5.8-locale.patch
38 @@ -1,5 +1,5 @@
39 ---- src/gettext.h.orig 2008-10-07 12:01:37.000000000 -0400
40 -+++ src/gettext.h 2008-10-07 12:01:45.000000000 -0400
41 +--- a/src/gettext.h.orig 2008-10-07 12:01:37.000000000 -0400
42 ++++ b/src/gettext.h 2008-10-07 12:01:45.000000000 -0400
43 @@ -24,6 +24,7 @@
44
45 /* Get declarations of GNU message catalog functions. */
46
47 diff --git a/games-arcade/xbubble/files/xbubble-0.5.8-png15.patch b/games-arcade/xbubble/files/xbubble-0.5.8-png15.patch
48 index 3a0a7d360ef..bbbae5c3107 100644
49 --- a/games-arcade/xbubble/files/xbubble-0.5.8-png15.patch
50 +++ b/games-arcade/xbubble/files/xbubble-0.5.8-png15.patch
51 @@ -1,5 +1,5 @@
52 ---- src/loadpng.c.old 2011-09-14 09:58:40.503566961 +0200
53 -+++ src/loadpng.c 2011-09-14 10:03:39.708531447 +0200
54 +--- a/src/loadpng.c.old 2011-09-14 09:58:40.503566961 +0200
55 ++++ b/src/loadpng.c 2011-09-14 10:03:39.708531447 +0200
56 @@ -73,7 +73,7 @@
57 return NULL;
58 }
59
60 diff --git a/games-arcade/xbubble/files/xbubble-0.5.8-xpaths.patch b/games-arcade/xbubble/files/xbubble-0.5.8-xpaths.patch
61 index c3dfa83cb5e..4db0b8f10cc 100644
62 --- a/games-arcade/xbubble/files/xbubble-0.5.8-xpaths.patch
63 +++ b/games-arcade/xbubble/files/xbubble-0.5.8-xpaths.patch
64 @@ -1,8 +1,8 @@
65 the x_libraries variable isnt always defined
66 http://bugs.gentoo.org/92688
67
68 ---- configure
69 -+++ configure
70 +--- a/configure
71 ++++ b/configure
72 @@ -4511,3 +4511,5 @@
73 fi
74 +if test x"$x_libraries" != x; then
75
76 diff --git a/games-arcade/xbubble/xbubble-0.5.8-r1.ebuild b/games-arcade/xbubble/xbubble-0.5.8-r1.ebuild
77 new file mode 100644
78 index 00000000000..67c8f575299
79 --- /dev/null
80 +++ b/games-arcade/xbubble/xbubble-0.5.8-r1.ebuild
81 @@ -0,0 +1,51 @@
82 +# Copyright 1999-2018 Gentoo Foundation
83 +# Distributed under the terms of the GNU General Public License v2
84 +
85 +EAPI=6
86 +inherit desktop
87 +
88 +DESCRIPTION="A Puzzle Bobble clone similar to Frozen-Bubble"
89 +HOMEPAGE="http://www.nongnu.org/xbubble/"
90 +SRC_URI="http://www.ibiblio.org/pub/mirrors/gnu/ftp/savannah/files/${PN}/${P}.tar.gz"
91 +
92 +LICENSE="GPL-2"
93 +SLOT="0"
94 +KEYWORDS="~alpha ~amd64 ~x86"
95 +IUSE="nls"
96 +
97 +RDEPEND="
98 + x11-libs/libX11
99 + x11-libs/libXt
100 + media-libs/libpng:0=
101 + nls? ( virtual/libintl )
102 +"
103 +DEPEND="${RDEPEND}
104 + nls? ( sys-devel/gettext )
105 +"
106 +
107 +DOCS=( AUTHORS ChangeLog NEWS NetworkProtocol README TODO )
108 +
109 +src_prepare() {
110 + default
111 + eapply \
112 + "${FILESDIR}"/${P}-xpaths.patch \
113 + "${FILESDIR}"/${P}-locale.patch \
114 + "${FILESDIR}"/${P}-libpng14.patch \
115 + "${FILESDIR}"/${P}-png15.patch
116 + sed -i \
117 + -e '/^AM_CFLAGS/d' \
118 + src/Makefile.in || die
119 + sed -i \
120 + -e '/^localedir/s:=.*:=/usr/share/locale:' \
121 + configure po/Makefile.in.in || die
122 +}
123 +
124 +src_configure() {
125 + econf $(use_enable nls)
126 +}
127 +
128 +src_install() {
129 + default
130 + newicon data/themes/fancy/Bubble_black_DEAD_01.png ${PN}.png
131 + make_desktop_entry ${PN} XBubble
132 +}