summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAustin English <wizardedit@gentoo.org>2016-08-04 19:04:34 -0500
committerAustin English <wizardedit@gentoo.org>2016-08-04 19:22:38 -0500
commit3539d74fde6ffcdf337adfc97ac7d0a0f234fa39 (patch)
tree8e36c4ba6d5429f3980f580211b9516373f2460d /games-board
parentgames-board/maitretarot: remove deprecated games eclass (diff)
downloadgentoo-3539d74fde6ffcdf337adfc97ac7d0a0f234fa39.tar.gz
gentoo-3539d74fde6ffcdf337adfc97ac7d0a0f234fa39.tar.bz2
gentoo-3539d74fde6ffcdf337adfc97ac7d0a0f234fa39.zip
games-board/megamek: remove deprecated games eclass
Also update to EAPI 6 Gentoo-Bug: https://bugs.gentoo.org/574082 Package-Manager: portage-2.3.0
Diffstat (limited to 'games-board')
-rw-r--r--games-board/megamek/megamek-0.34.10-r1.ebuild51
1 files changed, 51 insertions, 0 deletions
diff --git a/games-board/megamek/megamek-0.34.10-r1.ebuild b/games-board/megamek/megamek-0.34.10-r1.ebuild
new file mode 100644
index 000000000000..39ff1e8b4142
--- /dev/null
+++ b/games-board/megamek/megamek-0.34.10-r1.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+inherit eutils java-pkg-2 java-ant-2
+
+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 ~x86"
+IUSE=""
+
+DEPEND=">=virtual/jdk-1.5
+ app-arch/unzip"
+RDEPEND=">=virtual/jre-1.5"
+
+S=${WORKDIR}
+
+pkg_setup() {
+ java-pkg-2_pkg_setup
+}
+
+src_prepare() {
+ default
+
+ rm -v *.jar || die
+ edos2unix startup.sh
+ sed -i \
+ -e "s:XmX:Xmx:" \
+ -e "s:/usr/share/java:/usr/share/${PN}:" \
+ -e "s:/usr/share/MegaMek:/usr/share/${PN}:" \
+ startup.sh || die "sed failed"
+ java-pkg-2_src_prepare
+}
+
+src_compile() {
+ eant
+}
+
+src_install() {
+ newbin startup.sh ${PN}
+ insinto /usr/share/${PN}
+ doins -r data docs l10n lib mmconf *.jar readme*
+ dodoc HACKING readme.txt
+ make_desktop_entry ${PN} MegaMek /usr/share/pixmaps/${PN}.gif
+ newicon data/images/misc/megamek-icon.gif ${PN}.gif
+}