/[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.1 - (hide annotations) (download)
Mon Jul 30 21:50:21 2012 UTC (2 years, 4 months ago) by calchan
Branch: MAIN
Version bump.

(Portage version: 2.1.11.9/cvs/Linux x86_64)

1 calchan 1.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.9.ebuild,v 1.3 2010/02/27 16:17:20 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