summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Sterrett <mr_bones_@gentoo.org>2011-03-09 16:37:19 +0000
committerMichael Sterrett <mr_bones_@gentoo.org>2011-03-09 16:37:19 +0000
commit38327e0e26c7d66d724a179d9be972c1250a484f (patch)
tree93dddaf1bc81bbe7803257e0ca97a39a077e9758 /games-arcade
parentAdd a new version that (optionally) installs an updater script rather than in... (diff)
downloadgentoo-2-38327e0e26c7d66d724a179d9be972c1250a484f.tar.gz
gentoo-2-38327e0e26c7d66d724a179d9be972c1250a484f.tar.bz2
gentoo-2-38327e0e26c7d66d724a179d9be972c1250a484f.zip
version bump
(Portage version: 2.1.9.25/cvs/Linux i686)
Diffstat (limited to 'games-arcade')
-rw-r--r--games-arcade/lbreakout2/ChangeLog8
-rw-r--r--games-arcade/lbreakout2/files/lbreakout2-2.6.3-gentoo.patch72
-rw-r--r--games-arcade/lbreakout2/lbreakout2-2.6.3.ebuild81
3 files changed, 160 insertions, 1 deletions
diff --git a/games-arcade/lbreakout2/ChangeLog b/games-arcade/lbreakout2/ChangeLog
index 0bd6d6879af3..cbc4dbf2d23b 100644
--- a/games-arcade/lbreakout2/ChangeLog
+++ b/games-arcade/lbreakout2/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for games-arcade/lbreakout2
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-arcade/lbreakout2/ChangeLog,v 1.30 2011/03/04 01:31:12 ranger Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-arcade/lbreakout2/ChangeLog,v 1.31 2011/03/09 16:37:19 mr_bones_ Exp $
+
+*lbreakout2-2.6.3 (09 Mar 2011)
+
+ 09 Mar 2011; Michael Sterrett <mr_bones_@gentoo.org>
+ +lbreakout2-2.6.3.ebuild, +files/lbreakout2-2.6.3-gentoo.patch:
+ version bump
04 Mar 2011; Brent Baude <ranger@gentoo.org> lbreakout2-2.6.2.ebuild:
stable ppc, bug 344349
diff --git a/games-arcade/lbreakout2/files/lbreakout2-2.6.3-gentoo.patch b/games-arcade/lbreakout2/files/lbreakout2-2.6.3-gentoo.patch
new file mode 100644
index 000000000000..05afd36dc820
--- /dev/null
+++ b/games-arcade/lbreakout2/files/lbreakout2-2.6.3-gentoo.patch
@@ -0,0 +1,72 @@
+diff -ru lbreakout2-2.6.1.orig/Makefile.am lbreakout2-2.6.1/Makefile.am
+--- lbreakout2-2.6.1.orig/Makefile.am 2009-10-26 12:43:18.000000000 -0400
++++ lbreakout2-2.6.1/Makefile.am 2009-12-30 15:44:09.095784859 -0500
+@@ -1,13 +1,8 @@
+ SUBDIRS = intl m4 po common gui game server client docs
+
+ EXTRA_DIST = config.rpath AUTHORS COPYING ChangeLog INSTALL README \
+-README-SDL.txt TODO lbreakout2.spec touchall lbreakout32.gif \
+-lbreakout48.gif lbreakout2.desktop.in win32_mancomp win32_preparchive
+-
+-desktopdir = $(datadir)/applications
+-desktop_DATA = lbreakout2.desktop
+-icondir = $(datadir)/icons
+-icon_DATA = lbreakout48.gif
++README-SDL.txt TODO lbreakout2.spec touchall \
++win32_mancomp win32_preparchive
+
+ WIN32_TEXT = AUTHORS COPYING ChangeLog INSTALL README README-SDL.txt \
+ TODO lbreakout2.spec ABOUT-NLS
+diff -ru lbreakout2-2.6.1.orig/common/gettext.h lbreakout2-2.6.1/common/gettext.h
+--- lbreakout2-2.6.1.orig/common/gettext.h 2005-10-19 16:07:57.000000000 -0400
++++ lbreakout2-2.6.1/common/gettext.h 2009-12-30 15:43:41.924907300 -0500
+@@ -24,6 +24,7 @@
+
+ /* Get declarations of GNU message catalog functions. */
+ # include <libintl.h>
++# include <locale.h>
+
+ #else
+
+diff -ru lbreakout2-2.6.1.orig/configure.in lbreakout2-2.6.1/configure.in
+--- lbreakout2-2.6.1.orig/configure.in 2009-12-24 05:49:37.000000000 -0500
++++ lbreakout2-2.6.1/configure.in 2009-12-30 15:43:54.432781208 -0500
+@@ -80,8 +80,6 @@
+ [ --enable-netdebug Enable net packet debugging.], netdebug_flag="-DNET_DEBUG_MSG" )
+ AC_SUBST(netdebug_flag)
+
+-dnl set localedir
+-localedir=$datadir/locale
+ locdir_flag="-DLOCALEDIR=\\\"$localedir\\\""
+
+ dnl installation&highscore path
+diff -ru lbreakout2-2.6.1.orig/docs/Makefile.am lbreakout2-2.6.1/docs/Makefile.am
+--- lbreakout2-2.6.1.orig/docs/Makefile.am 2005-02-16 16:07:25.000000000 -0500
++++ lbreakout2-2.6.1/docs/Makefile.am 2009-12-30 15:44:55.780855338 -0500
+@@ -7,11 +7,11 @@
+ warp.jpg screen.jpg
+
+ install-data-local:
+- $(mkinstalldirs) $(DESTDIR)$(doc_dir)/lbreakout2
++ $(mkinstalldirs) $(DESTDIR)$(doc_dir)
+ @for file in *.jpg; do\
+- $(INSTALL_DATA) $$file $(DESTDIR)$(doc_dir)/lbreakout2/$$file;\
++ $(INSTALL_DATA) $$file $(DESTDIR)$(doc_dir)/$$file;\
+ done
+- $(INSTALL_DATA) index.html $(DESTDIR)$(doc_dir)/lbreakout2/index.html
++ $(INSTALL_DATA) index.html $(DESTDIR)$(doc_dir)/index.html
+
+ win32-install-script:
+ @for file in $(EXTRA_DIST); do \
+diff -ru lbreakout2-2.6.1.orig/po/Makefile.in.in lbreakout2-2.6.1/po/Makefile.in.in
+--- lbreakout2-2.6.1.orig/po/Makefile.in.in 2009-10-26 11:36:51.000000000 -0400
++++ lbreakout2-2.6.1/po/Makefile.in.in 2009-12-30 15:44:36.248781296 -0500
+@@ -24,7 +24,7 @@
+ exec_prefix = @exec_prefix@
+ datadir = @datadir@
+ datarootdir = @datarootdir@
+-localedir = $(datadir)/locale
++localedir = @localedir@
+ gettextsrcdir = $(datadir)/gettext/po
+
+ INSTALL = @INSTALL@
diff --git a/games-arcade/lbreakout2/lbreakout2-2.6.3.ebuild b/games-arcade/lbreakout2/lbreakout2-2.6.3.ebuild
new file mode 100644
index 000000000000..960f201249eb
--- /dev/null
+++ b/games-arcade/lbreakout2/lbreakout2-2.6.3.ebuild
@@ -0,0 +1,81 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-arcade/lbreakout2/lbreakout2-2.6.3.ebuild,v 1.1 2011/03/09 16:37:19 mr_bones_ Exp $
+
+EAPI=2
+inherit autotools flag-o-matic eutils games
+
+levels_V=20100920
+themes_V=20070514
+
+DESCRIPTION="Breakout clone written with the SDL library"
+HOMEPAGE="http://lgames.sourceforge.net/index.php?project=LBreakout2"
+SRC_URI=" mirror://sourceforge/lgames/${P}.tar.gz
+ mirror://sourceforge/lgames/${PN}-levelsets-${levels_V}.tar.gz
+ themes? ( mirror://sourceforge/lgames/${PN}-themes-${themes_V}.tar.gz )"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86 ~x86-fbsd"
+IUSE="nls themes"
+
+RDEPEND="media-libs/libpng
+ sys-libs/zlib
+ media-libs/libsdl[audio,joystick,video]
+ media-libs/sdl-net
+ media-libs/sdl-mixer
+ nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+ nls? ( sys-devel/gettext )"
+
+src_unpack() {
+ unpack ${P}.tar.gz
+
+ cd "${S}/client/levels"
+ unpack ${PN}-levelsets-${levels_V}.tar.gz
+
+ if use themes ; then
+ mkdir "${WORKDIR}/themes"
+ cd "${WORKDIR}/themes"
+ unpack ${PN}-themes-${themes_V}.tar.gz
+
+ # Delete a few duplicate themes (already shipped with lbreakout2
+ # tarball). Some of them have different case than built-in themes, so it
+ # is harder to just compare if the filename is the same.
+ rm -f absoluteB.zip oz.zip moiree.zip
+ for f in *.zip; do
+ unzip -q "$f" && rm -f "$f" || die "unpacking ${f}"
+ done
+ fi
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-gentoo.patch
+ eautoreconf
+}
+
+src_configure() {
+ filter-flags -O?
+ egamesconf \
+ --disable-dependency-tracking \
+ --enable-sdl-net \
+ --localedir=/usr/share/locale \
+ --with-docdir="/usr/share/doc/${PF}/html" \
+ $(use_enable nls)
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+
+ dodoc AUTHORS README TODO ChangeLog
+
+ if use themes ; then
+ insinto "${GAMES_DATADIR}/lbreakout2/gfx"
+ doins -r "${WORKDIR}/themes/"* || die
+ fi
+
+ newicon client/gfx/win_icon.png lbreakout2.png
+ make_desktop_entry lbreakout2 LBreakout2
+
+ prepgamesdirs
+}