/[gentoo-x86]/games-board/megamek/megamek-0.34.10.ebuild
Gentoo

Contents of /games-board/megamek/megamek-0.34.10.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Fri Dec 7 21:40:34 2012 UTC (20 months, 1 week ago) by ago
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +2 -2 lines
Stable for ppc, wrt bug #436822

(Portage version: 2.1.11.31/cvs/Linux ppc64, unsigned Manifest commit)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/games-board/megamek/megamek-0.34.10.ebuild,v 1.2 2012/10/17 03:10:06 phajdan.jr Exp $
4
5 EAPI=2
6 inherit eutils java-pkg-2 java-ant-2 games
7
8 DESCRIPTION="an unofficial, online version of the Classic BattleTech board game"
9 HOMEPAGE="http://megamek.sourceforge.net/"
10 SRC_URI="mirror://sourceforge/${PN}/MegaMek-v${PV}.zip"
11
12 LICENSE="GPL-2"
13 SLOT="0"
14 KEYWORDS="~amd64 ppc x86"
15 IUSE=""
16
17 DEPEND=">=virtual/jdk-1.5
18 app-arch/unzip"
19 RDEPEND=">=virtual/jre-1.5"
20
21 S=${WORKDIR}
22
23 pkg_setup() {
24 games_pkg_setup
25 java-pkg-2_pkg_setup
26 }
27
28 src_prepare() {
29 rm -v *.jar || die
30 edos2unix startup.sh
31 sed -i \
32 -e "s:XmX:Xmx:" \
33 -e "s:/usr/share/java:${GAMES_DATADIR}/${PN}:" \
34 -e "s:/usr/share/MegaMek:${GAMES_DATADIR}/${PN}:" \
35 startup.sh || die "sed failed"
36 java-pkg-2_src_prepare
37 }
38
39 src_compile() {
40 eant || die
41 }
42
43 src_install() {
44 newgamesbin startup.sh ${PN} || die "newgamesbin failed"
45 insinto "${GAMES_DATADIR}/${PN}"
46 doins -r data docs l10n lib mmconf *.jar readme* || die "doins failed"
47 dodoc HACKING readme.txt || die
48 make_desktop_entry ${PN} MegaMek /usr/share/pixmaps/${PN}.gif
49 newicon data/images/misc/megamek-icon.gif ${PN}.gif
50 prepgamesdirs
51 }

  ViewVC Help
Powered by ViewVC 1.1.20