summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Sterrett <mr_bones_@gentoo.org>2010-10-06 19:05:49 +0000
committerMichael Sterrett <mr_bones_@gentoo.org>2010-10-06 19:05:49 +0000
commitf43d1374b9496658dc478d5f6203a22cac4e90cc (patch)
tree79189e5c3f930e9655b08457cf324516bb093215 /games-arcade/lbreakout2/lbreakout2-2.6.2.ebuild
parenthardened-sources-2.6.32-r20 based on 2.6.32.24 + genpatches + grsec-2.2.0-2.6... (diff)
downloadhistorical-f43d1374b9496658dc478d5f6203a22cac4e90cc.tar.gz
historical-f43d1374b9496658dc478d5f6203a22cac4e90cc.tar.bz2
historical-f43d1374b9496658dc478d5f6203a22cac4e90cc.zip
version bump
Package-Manager: portage-2.1.8.3/cvs/Linux i686
Diffstat (limited to 'games-arcade/lbreakout2/lbreakout2-2.6.2.ebuild')
-rw-r--r--games-arcade/lbreakout2/lbreakout2-2.6.2.ebuild81
1 files changed, 81 insertions, 0 deletions
diff --git a/games-arcade/lbreakout2/lbreakout2-2.6.2.ebuild b/games-arcade/lbreakout2/lbreakout2-2.6.2.ebuild
new file mode 100644
index 000000000000..8cdf3d00105b
--- /dev/null
+++ b/games-arcade/lbreakout2/lbreakout2-2.6.2.ebuild
@@ -0,0 +1,81 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-arcade/lbreakout2/lbreakout2-2.6.2.ebuild,v 1.1 2010/10/06 19:05:49 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
+}