summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--games-arcade/lbreakout2/ChangeLog10
-rw-r--r--games-arcade/lbreakout2/Manifest7
-rw-r--r--games-arcade/lbreakout2/files/lbreakout2-2.6.1-gentoo.patch72
-rw-r--r--games-arcade/lbreakout2/lbreakout2-2.6.1.ebuild80
4 files changed, 166 insertions, 3 deletions
diff --git a/games-arcade/lbreakout2/ChangeLog b/games-arcade/lbreakout2/ChangeLog
index dc6067118a16..5386772f8c5e 100644
--- a/games-arcade/lbreakout2/ChangeLog
+++ b/games-arcade/lbreakout2/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for games-arcade/lbreakout2
-# Copyright 2002-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-arcade/lbreakout2/ChangeLog,v 1.21 2009/02/22 23:50:59 mr_bones_ Exp $
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-arcade/lbreakout2/ChangeLog,v 1.22 2009/12/30 20:51:20 mr_bones_ Exp $
+
+*lbreakout2-2.6.1 (30 Dec 2009)
+
+ 30 Dec 2009; Michael Sterrett <mr_bones_@gentoo.org>
+ +lbreakout2-2.6.1.ebuild, +files/lbreakout2-2.6.1-gentoo.patch:
+ version bump
22 Feb 2009; Michael Sterrett <mr_bones_@gentoo.org>
lbreakout2-2.5.2.ebuild:
diff --git a/games-arcade/lbreakout2/Manifest b/games-arcade/lbreakout2/Manifest
index 21455c0b1c9f..156312d8fe9c 100644
--- a/games-arcade/lbreakout2/Manifest
+++ b/games-arcade/lbreakout2/Manifest
@@ -1,6 +1,11 @@
+AUX lbreakout2-2.6.1-gentoo.patch 2866 RMD160 0c597800a3038f3f3a7cd503569b17dee9227aee SHA1 0ecaf86d0daeaef3fb972fb95a4f78e06ee6d2d7 SHA256 7e4f3baba7f2f1a167b19edb2472ff9f9c795c9f2093d07142fbc3c0f6f175d7
DIST lbreakout2-2.5.2.tar.gz 2849669 RMD160 bf2031134f26b88899c96890cb994603c4e67f2c SHA1 50a7627c7373178a04467c292e83a1c8e7dc58c6 SHA256 79b0c40114e6e90deab1e8c39ef0739a10a4b3e99df95a0917c3f0237d732b2f
+DIST lbreakout2-2.6.1.tar.gz 3390373 RMD160 2ee39c2913cf869efcd2cf8d4d206d5bc2d50e13 SHA1 c2c6ed38345774dfef9bc88bc24df6c8a80ed428 SHA256 0d86f9da3da5fe3eaa5bb4c9d15ba9666e0c35e739b93c220eecd16f729500cb
DIST lbreakout2-levelsets-20070121.tar.gz 226511 RMD160 175491c006df72aa8e6e105d3404508dd9422c0e SHA1 81a93dd9f5a05591489eeb9c2c4839ef833ecfec SHA256 cd8347b667a00b9d447e712650cec9d563c2ffe6bf80dcf74dd998a6966b152a
+DIST lbreakout2-levelsets-20091026.tar.gz 253605 RMD160 8952e117406dd743803d71e6c03815f295da485d SHA1 a6eabdc697cce76140d52dda446682b20fb9ff4d SHA256 76185a19eee2432f977e1dc1839598d24deea54ef056116a48432b6a71f76a20
DIST lbreakout2-themes-20070121.tar.gz 22649593 RMD160 fdb5a1df5a71fe4b368f29208717da20e7f4711e SHA1 c23e4f469b62b5312aee184df93c0dbf0668dcd2 SHA256 21145059f3dbac54c44e94d16e70f784363f0854ce815ec6fd9c231d52206c6b
+DIST lbreakout2-themes-20070514.tar.gz 24737014 RMD160 c3ed48904f3ad0dcf7907bb000f372db947231fa SHA1 53cd2d367c37672051fcf50098679c9ce04d8501 SHA256 4b9ace34012e2f96ec9847209c6cd038da93ea483e523534f71c4b647fdbb7b3
EBUILD lbreakout2-2.5.2.ebuild 2071 RMD160 f7d950556838b0cf0d9bf96d55294f828ea91add SHA1 79a527043fb49a9668f828c059642901231da4bd SHA256 c93946e00a32b2fbf668ac580d2c74a334e59bd6e6a428ca2ef2ccbcef6816fd
-MISC ChangeLog 4787 RMD160 a0c2e99220a11dd3afe56d67312648f31c895bf3 SHA1 cff78051b44b63b894550d1814a00de614a095a0 SHA256 26966bad10c96ca6368fc3b6f5ab46a3d22eee741274b32f55e328abd3138bd5
+EBUILD lbreakout2-2.6.1.ebuild 2073 RMD160 890aa4d32c76e9366957eca404457c03f5c2a5aa SHA1 813b049c4d40985661f947b8e87a3d93d30288af SHA256 225555b0082d0068d12d109c7ce31f2aca62a6ebdb92eed0b9851aca576c6e1b
+MISC ChangeLog 4957 RMD160 05dd55935025c862af6a2679009d1abc41828cf4 SHA1 d306d440492d07462046482d6e8af48f0e3914ef SHA256 aa2351ca5e9d322ebcd36dc1586d36eaea6d7db5444f352095a01636246db820
MISC metadata.xml 234 RMD160 b328394ae04f3a87eb5554b0ab56a112f007dce1 SHA1 c89d19b338f434c4a612d927ac4370d47a46d378 SHA256 914bf7161d1f04af1a6a2ed65dcdb71d682bb59a717c44d00f4cad70be75b3b4
diff --git a/games-arcade/lbreakout2/files/lbreakout2-2.6.1-gentoo.patch b/games-arcade/lbreakout2/files/lbreakout2-2.6.1-gentoo.patch
new file mode 100644
index 000000000000..05afd36dc820
--- /dev/null
+++ b/games-arcade/lbreakout2/files/lbreakout2-2.6.1-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.1.ebuild b/games-arcade/lbreakout2/lbreakout2-2.6.1.ebuild
new file mode 100644
index 000000000000..a17a6bf0068f
--- /dev/null
+++ b/games-arcade/lbreakout2/lbreakout2-2.6.1.ebuild
@@ -0,0 +1,80 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-arcade/lbreakout2/lbreakout2-2.6.1.ebuild,v 1.1 2009/12/30 20:51:20 mr_bones_ Exp $
+
+EAPI=2
+inherit autotools flag-o-matic eutils games
+
+levels_V=20091026
+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="~alpha ~amd64 ~ia64 ~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 \
+ --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
+}