summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Sterrett <mr_bones_@gentoo.org>2009-05-25 06:36:41 +0000
committerMichael Sterrett <mr_bones_@gentoo.org>2009-05-25 06:36:41 +0000
commitc9b2091496c4f4ca86c88312df13b1606378db63 (patch)
tree4c6b161ce96c7b1cd3cc90c6a46fcc0d280ef313 /games-board/megamek
parentversion bump (diff)
downloadgentoo-2-c9b2091496c4f4ca86c88312df13b1606378db63.tar.gz
gentoo-2-c9b2091496c4f4ca86c88312df13b1606378db63.tar.bz2
gentoo-2-c9b2091496c4f4ca86c88312df13b1606378db63.zip
version bump (bug #271140)
(Portage version: 2.1.6.11/cvs/Linux i686)
Diffstat (limited to 'games-board/megamek')
-rw-r--r--games-board/megamek/ChangeLog10
-rw-r--r--games-board/megamek/megamek-0.34.2.ebuild50
2 files changed, 58 insertions, 2 deletions
diff --git a/games-board/megamek/ChangeLog b/games-board/megamek/ChangeLog
index 236090bd0db1..0e746dc009d1 100644
--- a/games-board/megamek/ChangeLog
+++ b/games-board/megamek/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for games-board/megamek
-# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-board/megamek/ChangeLog,v 1.11 2007/08/26 13:02:13 tupone Exp $
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-board/megamek/ChangeLog,v 1.12 2009/05/25 06:36:41 mr_bones_ Exp $
+
+*megamek-0.34.2 (25 May 2009)
+
+ 25 May 2009; Michael Sterrett <mr_bones_@gentoo.org>
+ +megamek-0.34.2.ebuild:
+ version bump (bug #271140)
*megamek-0.32.2 (26 Aug 2007)
diff --git a/games-board/megamek/megamek-0.34.2.ebuild b/games-board/megamek/megamek-0.34.2.ebuild
new file mode 100644
index 000000000000..590c301379b0
--- /dev/null
+++ b/games-board/megamek/megamek-0.34.2.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-board/megamek/megamek-0.34.2.ebuild,v 1.1 2009/05/25 06:36:41 mr_bones_ Exp $
+
+EAPI=2
+inherit eutils java-pkg-2 java-ant-2 games
+
+DESCRIPTION="an unofficial, online version of the Classic BattleTech board game"
+HOMEPAGE="http://megamek.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/MegaMek-v${PV}.zip"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+
+DEPEND=">=virtual/jdk-1.5
+ app-arch/unzip"
+RDEPEND=">=virtual/jre-1.5"
+
+S=${WORKDIR}
+
+pkg_setup() {
+ games_pkg_setup
+ java-pkg-2_pkg_setup
+}
+
+src_prepare() {
+ rm -v *.jar || die
+ edos2unix startup.sh
+ sed -i \
+ -e "s:XmX:Xmx:" \
+ -e "s:/usr/share/java:${GAMES_DATADIR}/${PN}:" \
+ -e "s:/usr/share/MegaMek:${GAMES_DATADIR}/${PN}:" \
+ startup.sh || die "sed failed"
+}
+
+src_compile() {
+ eant || die
+}
+
+src_install() {
+ newgamesbin startup.sh ${PN} || die "newgamesbin failed"
+ insinto "${GAMES_DATADIR}/${PN}"
+ doins -r data docs l10n lib mmconf *.jar readme* || die "doins failed"
+ dodoc HACKING readme.txt || die
+ make_desktop_entry ${PN} MegaMek /usr/share/pixmaps/${PN}.gif
+ newicon data/images/misc/megamek-icon.gif ${PN}.gif
+ prepgamesdirs
+}