diff options
author | Mike Frysinger <vapier@gentoo.org> | 2005-05-09 04:19:00 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2005-05-09 04:19:00 +0000 |
commit | 7ba09ed8ab0e2d1421b16f2557aae9019b8fbda6 (patch) | |
tree | ba94d3888e0f73e7dbe257800d03a43ae1295fc4 /games-arcade/frozen-bubble/frozen-bubble-1.0.0-r5.ebuild | |
parent | stable on ia64 (diff) | |
download | gentoo-2-7ba09ed8ab0e2d1421b16f2557aae9019b8fbda6.tar.gz gentoo-2-7ba09ed8ab0e2d1421b16f2557aae9019b8fbda6.tar.bz2 gentoo-2-7ba09ed8ab0e2d1421b16f2557aae9019b8fbda6.zip |
Update patch to work with both sdl-perl-1.x and sdl-perl-2.x and fix up the editor. Fixes #74844 and #87502, patches by Jakub Sadowski, Jason Bucata, and Robert Paskowitz.
(Portage version: 2.0.51.21-r1)
Diffstat (limited to 'games-arcade/frozen-bubble/frozen-bubble-1.0.0-r5.ebuild')
-rw-r--r-- | games-arcade/frozen-bubble/frozen-bubble-1.0.0-r5.ebuild | 107 |
1 files changed, 107 insertions, 0 deletions
diff --git a/games-arcade/frozen-bubble/frozen-bubble-1.0.0-r5.ebuild b/games-arcade/frozen-bubble/frozen-bubble-1.0.0-r5.ebuild new file mode 100644 index 000000000000..4cf44d3b4b34 --- /dev/null +++ b/games-arcade/frozen-bubble/frozen-bubble-1.0.0-r5.ebuild @@ -0,0 +1,107 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-arcade/frozen-bubble/frozen-bubble-1.0.0-r5.ebuild,v 1.1 2005/05/09 04:19:00 vapier Exp $ + +inherit eutils perl-module games + +NET_CLIENT_P=frozen-bubble-client-0.0.3 +NET_SERVER_P=frozen-bubble-server-0.0.3 +DESCRIPTION="A Puzzle Bubble clone written in perl (now with network support)" +HOMEPAGE="http://www.frozen-bubble.org/ http://chl.tuxfamily.org/frozen-bubble/" +SRC_URI="http://guillaume.cottenceau.free.fr/fb/${P}.tar.bz2 + http://chl.tuxfamily.org/frozen-bubble/${NET_CLIENT_P}.tar.bz2 + http://chl.tuxfamily.org/frozen-bubble/${NET_SERVER_P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 hppa ppc sparc x86" +IUSE="" + +RDEPEND=">=dev-lang/perl-5.6.1 + >=media-libs/sdl-mixer-1.2.3 + dev-perl/sdl-perl" +DEPEND="${RDEPEND} + sys-devel/autoconf" + +src_unpack() { + unpack ${A} + cd "${S}" + + # main package + epatch "${FILESDIR}"/${P}-makefile.patch + epatch "${FILESDIR}"/${PV}-no-chainreaction.patch + epatch "${FILESDIR}"/${P}-sdl-perl-2.patch + sed -i \ + -e 's:INSTALLDIRS=.*:PREFIX=${D}/usr:' \ + c_stuff/Makefile \ + || die 'sed c_stuff/Makefile failed' + + # server addon + cd "${WORKDIR}"/${NET_SERVER_P} + sed -i \ + -e '/^dnl AM_CONFIG_HEADER/s:dnl ::' configure.in \ + || die "sed configure.in failed" + libtoolize -c -f || die "libtoolize failed" + env \ + WANT_AUTOMAKE=1.4 \ + WANT_AUTOCONF=2.5 \ + ./bootstrap.sh || die "bootstrap failed" + echo '#include "config.h"' >> fb_serv.h + + # client addon + cd "${WORKDIR}"/${NET_CLIENT_P} + ln -s frozen-bubble-client frozen-bubble + epatch "${FILESDIR}"/${P}-sdl-perl-2.patch + rm frozen-bubble +} + +src_compile() { + emake \ + OPTIMIZE="${CFLAGS}" \ + PREFIX=/usr \ + BINDIR="${GAMES_BINDIR}" \ + DATADIR="${GAMES_DATADIR}" \ + MANDIR=/usr/share/man \ + || die "emake game failed" + + # server addon + cd "${WORKDIR}"/${NET_SERVER_P} + egamesconf || die + emake || die "emake server failed" +} + +src_install() { + make \ + PREFIX="${D}/usr" \ + BINDIR="${D}/${GAMES_BINDIR}" \ + DATADIR="${D}/${GAMES_DATADIR}" \ + MANDIR="${D}/usr/share/man" \ + install \ + || die "make install failed" + dosed /usr/games/bin/frozen-bubble + dodoc AUTHORS CHANGES README + newicon icons/frozen-bubble-icon-48x48.png ${PN}.png + make_desktop_entry ${PN} ${PN} ${PN}.png + + # client addon + cd "${WORKDIR}/${NET_CLIENT_P}" + make \ + PREFIX="${D}/usr" \ + BINDIR="${D}/${GAMES_BINDIR}" \ + DATADIR="${D}/${GAMES_DATADIR}" \ + MANDIR="${D}/usr/share/man" \ + install \ + || die "make install client failed" + + # server addon + cd "${WORKDIR}/${NET_SERVER_P}" + make \ + DESTDIR="${D}" \ + sbindir="${GAMES_BINDIR}" \ + install \ + || die "make install server failed" + dodoc TODO + newdoc README README.server + + prepgamesdirs +} |