summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'games-arcade/lbreakout2/lbreakout2-2.5_beta6.ebuild')
-rw-r--r--games-arcade/lbreakout2/lbreakout2-2.5_beta6.ebuild56
1 files changed, 56 insertions, 0 deletions
diff --git a/games-arcade/lbreakout2/lbreakout2-2.5_beta6.ebuild b/games-arcade/lbreakout2/lbreakout2-2.5_beta6.ebuild
new file mode 100644
index 000000000000..3238b63fbdce
--- /dev/null
+++ b/games-arcade/lbreakout2/lbreakout2-2.5_beta6.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2004 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-arcade/lbreakout2/lbreakout2-2.5_beta6.ebuild,v 1.1 2004/06/15 09:36:00 mr_bones_ Exp $
+
+inherit flag-o-matic games
+
+MY_P="${P/_beta/beta-}"
+DESCRIPTION="Breakout clone written with the SDL library"
+HOMEPAGE="http://lgames.sourceforge.net/index.php?project=LBreakout2"
+SRC_URI="mirror://sourceforge/lgames/${MY_P}.tar.gz
+ mirror://gentoo/lbreakout2-levelsets-20040319.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~ppc ~amd64"
+IUSE=""
+
+DEPEND="virtual/glibc
+ media-libs/libpng
+ sys-libs/zlib
+ >=media-libs/libsdl-1.1.5
+ media-libs/sdl-mixer"
+
+S="${WORKDIR}/${MY_P}"
+
+src_unpack() {
+ unpack ${MY_P}.tar.gz
+ mkdir "${S}/levels"
+ cd "${S}/levels"
+ unpack lbreakout2-levelsets-20040319.tar.gz
+}
+
+src_compile() {
+ filter-flags -O?
+ egamesconf \
+ --with-highscore-path="${GAMES_STATEDIR}" \
+ --with-doc-path="/usr/share/doc/${PF}" \
+ --datadir="${GAMES_DATADIR_BASE}" \
+ || die
+ emake || die "emake failed"
+}
+
+src_install() {
+ egamesinstall \
+ inst_dir="${D}/${GAMES_DATADIR}/${PN}" \
+ hi_dir="${D}/${GAMES_STATEDIR}/" \
+ doc_dir="${D}/usr/share/doc/${PF}" \
+ || die
+
+ insinto "${GAMES_DATADIR}/lbreakout2/levels"
+ doins levels/* || die "doins failed"
+
+ dodoc AUTHORS README TODO ChangeLog
+ mv "${D}/usr/share/doc/${PF}/lbreakout2" "${D}/usr/share/doc/${PF}/html"
+ prepgamesdirs
+}