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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sun Sep 20 06:49:52 2009 UTC (10 years ago) by mr_bones_
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
old
(Portage version: 2.1.6.13/cvs/Linux i686)

1 # Copyright 1999-2009 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.2.ebuild,v 1.1 2009/05/25 06:36:41 mr_bones_ 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 }
37
38 src_compile() {
39 eant || die
40 }
41
42 src_install() {
43 newgamesbin startup.sh ${PN} || die "newgamesbin failed"
44 insinto "${GAMES_DATADIR}/${PN}"
45 doins -r data docs l10n lib mmconf *.jar readme* || die "doins failed"
46 dodoc HACKING readme.txt || die
47 make_desktop_entry ${PN} MegaMek /usr/share/pixmaps/${PN}.gif
48 newicon data/images/misc/megamek-icon.gif ${PN}.gif
49 prepgamesdirs
50 }

  ViewVC Help
Powered by ViewVC 1.1.20