Gentoo Archives: gentoo-commits

From: Michael Sterrett <mr_bones_@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-puzzle/neverball/, games-puzzle/neverball/files/
Date: Thu, 17 Dec 2015 07:01:57
Message-Id: 1450335697.353f08f3e69746840366fad109547c82744b2859.mr_bones_@gentoo
1 commit: 353f08f3e69746840366fad109547c82744b2859
2 Author: Michael Sterrett <mr_bones_ <AT> gentoo <DOT> org>
3 AuthorDate: Thu Dec 17 07:01:37 2015 +0000
4 Commit: Michael Sterrett <mr_bones_ <AT> gentoo <DOT> org>
5 CommitDate: Thu Dec 17 07:01:37 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=353f08f3
7
8 clean old (drops ppc support)
9
10 Package-Manager: portage-2.2.24
11
12 games-puzzle/neverball/Manifest | 1 -
13 .../neverball/files/neverball-1.5.4-libpng.patch | 21 ------
14 .../neverball/files/neverball-1.5.4-lm.patch | 28 --------
15 .../files/neverball-1.5.4-underlink.patch | 11 ---
16 games-puzzle/neverball/neverball-1.5.4.ebuild | 84 ----------------------
17 5 files changed, 145 deletions(-)
18
19 diff --git a/games-puzzle/neverball/Manifest b/games-puzzle/neverball/Manifest
20 index 9160adc..7fe978a 100644
21 --- a/games-puzzle/neverball/Manifest
22 +++ b/games-puzzle/neverball/Manifest
23 @@ -1,2 +1 @@
24 -DIST neverball-1.5.4.tar.gz 26767623 SHA256 ea31ca9f6eec70c8e66eaa20d7ce9e48295fdb077313b97637c503b16b7b0da6 SHA512 ffc0473ea3882edb84f190aa696c2e5fa1a38ea50f73bc144a3b694fd80c71a8d9936aa34f8bbd096523493849d428928a6efd2650c6da4c9962e0355d3cb9c2 WHIRLPOOL c0e6731ee28eb8ac987d5ca98ecbd93fb7d091060e2da51c6fe69043f05fe7d5f8179e62183f946e40b2f734a8041ab35ae1fdd4024e5ff6e25ab8633853e1f4
25 DIST neverball-1.6.0.tar.gz 37772911 SHA256 73fe63cca4f96e2d355480d03bc0b2904e83a0abdf65fe8c52db5cc3cca88fa0 SHA512 174d05308aee3a5e693782c54dd389439752b3597f28193771041d30f6c4236a5d055b2fcca9460b1005e9f000ddb3cbc01b86ea15c2abbf6e5a7996e836f787 WHIRLPOOL 017ac177b3557e0473d94288c0645ce7e6ddf15cdfbddb6798b22a6341d9864532d0d2263ed785bbed8c1bf5c9e4acbc6e31effdcc06b299a8fcf7c1fa60e514
26
27 diff --git a/games-puzzle/neverball/files/neverball-1.5.4-libpng.patch b/games-puzzle/neverball/files/neverball-1.5.4-libpng.patch
28 deleted file mode 100644
29 index d7b2246..0000000
30 --- a/games-puzzle/neverball/files/neverball-1.5.4-libpng.patch
31 +++ /dev/null
32 @@ -1,21 +0,0 @@
33 -Index: neverball-1.5.4/share/base_image.c
34 -===================================================================
35 ---- neverball-1.5.4.orig/share/base_image.c
36 -+++ neverball-1.5.4/share/base_image.c
37 -@@ -15,6 +15,7 @@
38 - #include <png.h>
39 - #include <jpeglib.h>
40 - #include <stdlib.h>
41 -+#include <string.h>
42 - #include <assert.h>
43 -
44 - #include "glext.h"
45 -@@ -94,7 +95,7 @@ static void *image_load_png(const char *
46 - default: longjmp(png_jmpbuf(readp), -1);
47 - }
48 -
49 -- if (!(bytep = png_malloc(readp, h * png_sizeof(png_bytep))))
50 -+ if (!(bytep = png_malloc(readp, h * sizeof(png_bytep))))
51 - longjmp(png_jmpbuf(readp), -1);
52 -
53 - /* Allocate the final pixel buffer and read pixels there. */
54
55 diff --git a/games-puzzle/neverball/files/neverball-1.5.4-lm.patch b/games-puzzle/neverball/files/neverball-1.5.4-lm.patch
56 deleted file mode 100644
57 index 4245e28..0000000
58 --- a/games-puzzle/neverball/files/neverball-1.5.4-lm.patch
59 +++ /dev/null
60 @@ -1,28 +0,0 @@
61 -Fix link faiure against -lm
62 -
63 -x86_64-pc-linux-gnu-gcc -Wall -ansi -pedantic -march=core2 -O2 -pipe -ggdb -o neverball-mapc share/vec3.o share/base_image.o share/solid.o share/binary.o share/base_config.o share/common.o share/fs.o share/fs_png.o share/fs_jpg.o share/dir.o share/array.o share/mapc.o -Wl,-O1 -Wl,--as-needed -ljpeg -lpng15 -lphysfs
64 -/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.2/../../../../x86_64-pc-linux-gnu/bin/ld: share/mapc.o: undefined reference to symbol 'acosf@@GLIBC_2.2.5'
65 -/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.2/../../../../x86_64-pc-linux-gnu/bin/ld: note: 'acosf@@GLIBC_2.2.5' is defined in DSO /lib64/libm.so.6 so try adding it to the linker command line
66 -
67 -Gentoo-bug: http://bugs.gentoo.org/464014
68 -diff --git a/Makefile b/Makefile
69 -index 62a87e9..1816707 100644
70 ---- a/Makefile
71 -+++ b/Makefile
72 -@@ -132,6 +132,7 @@ ifdef DARWIN
73 - endif
74 -
75 - BASE_LIBS := -ljpeg $(PNG_LIBS) $(FS_LIBS)
76 -+MAPC_LIBS := -lm # only acosf user
77 -
78 - ifdef DARWIN
79 - BASE_LIBS += -L/opt/local/lib
80 -@@ -318,7 +319,7 @@ $(PUTT_TARG) : $(PUTT_OBJS)
81 - $(CC) $(ALL_CFLAGS) -o $(PUTT_TARG) $(PUTT_OBJS) $(LDFLAGS) $(ALL_LIBS)
82 -
83 - $(MAPC_TARG) : $(MAPC_OBJS)
84 -- $(CC) $(ALL_CFLAGS) -o $(MAPC_TARG) $(MAPC_OBJS) $(LDFLAGS) $(BASE_LIBS)
85 -+ $(CC) $(ALL_CFLAGS) -o $(MAPC_TARG) $(MAPC_OBJS) $(LDFLAGS) $(MAPC_LIBS) $(BASE_LIBS)
86 -
87 - # Work around some extremely helpful sdl-config scripts.
88 -
89
90 diff --git a/games-puzzle/neverball/files/neverball-1.5.4-underlink.patch b/games-puzzle/neverball/files/neverball-1.5.4-underlink.patch
91 deleted file mode 100644
92 index c6f27cc..0000000
93 --- a/games-puzzle/neverball/files/neverball-1.5.4-underlink.patch
94 +++ /dev/null
95 @@ -1,11 +0,0 @@
96 ---- Makefile.old 2011-06-22 06:30:52.441788160 +0200
97 -+++ Makefile 2011-06-22 06:31:59.754087534 +0200
98 -@@ -138,7 +138,7 @@
99 - endif
100 -
101 - ALL_LIBS := $(SDL_LIBS) $(BASE_LIBS) $(TILT_LIBS) $(INTL_LIBS) -lSDL_ttf \
102 -- -lvorbisfile $(OGL_LIBS)
103 -+ -lvorbisfile $(OGL_LIBS) -lX11
104 -
105 - #------------------------------------------------------------------------------
106 -
107
108 diff --git a/games-puzzle/neverball/neverball-1.5.4.ebuild b/games-puzzle/neverball/neverball-1.5.4.ebuild
109 deleted file mode 100644
110 index 4359a87..0000000
111 --- a/games-puzzle/neverball/neverball-1.5.4.ebuild
112 +++ /dev/null
113 @@ -1,84 +0,0 @@
114 -# Copyright 1999-2014 Gentoo Foundation
115 -# Distributed under the terms of the GNU General Public License v2
116 -# $Id$
117 -
118 -EAPI=2
119 -inherit eutils games
120 -
121 -DESCRIPTION="Clone of Super Monkey Ball using SDL/OpenGL"
122 -HOMEPAGE="http://icculus.org/neverball/"
123 -SRC_URI="http://icculus.org/neverball/${P}.tar.gz"
124 -
125 -LICENSE="GPL-2"
126 -SLOT="0"
127 -KEYWORDS="amd64 ppc x86"
128 -IUSE="nls"
129 -RESTRICT="test"
130 -
131 -RDEPEND="media-libs/libsdl[sound,joystick,opengl,video]
132 - media-libs/sdl-ttf
133 - media-libs/libpng:0
134 - virtual/jpeg
135 - media-libs/libvorbis
136 - virtual/opengl
137 - dev-games/physfs
138 - media-fonts/dejavu
139 - nls? ( virtual/libintl )"
140 -DEPEND="${RDEPEND}
141 - sys-devel/gettext"
142 -
143 -src_prepare() {
144 - sed -i \
145 - -e 's:mapc:neverball-mapc:g' \
146 - -e 's:MAPC:NEVERBALL-MAPC:g' \
147 - -e '1 s/ 1 / 6 /' \
148 - dist/mapc.1 \
149 - || die "sed failed"
150 - sed -i \
151 - -e 's:-O2:$(E_CFLAGS):' \
152 - -e "/^MAPC_TARG/s/mapc/${PN}-mapc/" \
153 - Makefile \
154 - || die "sed failed"
155 - epatch \
156 - "${FILESDIR}"/${P}-underlink.patch \
157 - "${FILESDIR}"/${P}-libpng.patch \
158 - "${FILESDIR}"/${P}-lm.patch
159 -}
160 -
161 -src_compile() {
162 - emake \
163 - ENABLE_NLS=$(use nls && echo 1 || echo 0) \
164 - E_CFLAGS="${CFLAGS}" \
165 - LOCALEDIR=/usr/share/locale \
166 - DATADIR="${GAMES_DATADIR}/${PN}" \
167 - || die "emake failed"
168 -}
169 -
170 -src_install() {
171 - dogamesbin ${PN}-mapc neverball neverputt || die
172 - insinto "${GAMES_DATADIR}/${PN}"
173 - doins -r data/* || die
174 - rm -f "${D}${GAMES_DATADIR}/${PN}"/ttf/DejaVuSans-Bold.ttf
175 - dosym /usr/share/fonts/dejavu/DejaVuSans-Bold.ttf \
176 - "${GAMES_DATADIR}/${PN}"/ttf/DejaVuSans-Bold.ttf || die
177 - if [[ -d locale ]] ; then
178 - insinto /usr/share
179 - doins -r locale || die
180 - fi
181 - dodoc CHANGES README || die
182 -
183 - newicon dist/neverball_512.png neverball.png || die
184 - newicon dist/neverputt_512.png neverputt.png || die
185 - doman dist/*.6 || die
186 - newman dist/mapc.1 neverball-mapc.6 || die
187 - make_desktop_entry neverball Neverball || die
188 - make_desktop_entry neverputt Neverputt neverputt || die
189 -
190 - prepgamesdirs
191 -}
192 -
193 -pkg_postinst() {
194 - games_pkg_postinst
195 - elog "${P} will overwrite existing high-score files, so back them up if"
196 - elog "you want to preserve your old scores and progress."
197 -}