blob: 617afa771d15f897ac3b636ae2ec55648e470179 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
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 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"
java-pkg-2_src_prepare
}
src_compile() {
eant
}
src_install() {
newgamesbin startup.sh ${PN}
insinto "${GAMES_DATADIR}/${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
prepgamesdirs
}
|