/[gentoo-x86]/games-arcade/xboing/xboing-2.4-r2.ebuild
Gentoo

Contents of /games-arcade/xboing/xboing-2.4-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sat Feb 2 19:19:26 2013 UTC (7 years, 5 months ago) by dilfridge
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +23 -18 lines
Adopt package, fix buffer overflow (kinda), bug 442290, and impossible game speed. Drop to ~arch as we're returning from package mask.

(Portage version: 2.2.0_alpha161/cvs/Linux x86_64, signed Manifest commit with key B6C5F7DE)

1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/games-arcade/xboing/xboing-2.4-r1.ebuild,v 1.13 2011/01/08 20:58:52 tupone Exp $
4
5 EAPI=5
6
7 inherit eutils games
8
9 DESCRIPTION="blockout type game where you bounce a proton ball trying to destroy blocks"
10 HOMEPAGE="http://www.techrescue.org/xboing/"
11 SRC_URI="http://www.techrescue.org/xboing/${PN}${PV}.tar.gz
12 mirror://gentoo/xboing-${PV}-debian.patch.bz2"
13
14 LICENSE="xboing"
15 SLOT="0"
16 KEYWORDS="~amd64 ~ppc ~sparc ~x86"
17 IUSE=""
18
19 RDEPEND="x11-libs/libXpm"
20 DEPEND="${RDEPEND}
21 app-text/rman
22 x11-misc/gccmakedep
23 x11-misc/imake"
24
25 S=${WORKDIR}/${PN}
26
27 src_prepare() {
28 epatch "${WORKDIR}"/xboing-${PV}-debian.patch
29 epatch "${FILESDIR}"/xboing-${PV}-buffer.patch
30 epatch "${FILESDIR}"/xboing-${PV}-sleep.patch
31 sed -i '/^#include/s:xpm\.h:X11/xpm.h:' *.c
32 }
33
34 src_configure() {
35 xmkmf -a || die
36 sed -i \
37 -e "s:GENTOO_VER:${PF/${PN}-/}:" \
38 Imakefile
39 }
40
41 src_compile() {
42 emake \
43 CXXOPTIONS="${CXXFLAGS}" \
44 CDEBUGFLAGS="${CFLAGS}" \
45 LOCAL_LDFLAGS="${LDFLAGS}" \
46 XBOING_DIR="${GAMES_DATADIR}/${PN}" \
47 || die
48 }
49
50 src_install() {
51 make \
52 PREFIX="${D}" \
53 LOCAL_LDFLAGS="${LDFLAGS}" \
54 XBOING_DIR="${GAMES_DATADIR}/${PN}" \
55 install \
56 || die
57 newman xboing.man xboing.6
58 dodoc README docs/*.doc
59 prepgamesdirs
60 fperms 660 "${GAMES_STATEDIR}"/xboing.score
61 }

  ViewVC Help
Powered by ViewVC 1.1.20