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

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

Parent Directory Parent Directory | Revision Log Revision Log


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

1 # Copyright 1999-2008 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.32.2.ebuild,v 1.2 2008/02/04 18:52:39 nyhm Exp $
4
5 inherit java-pkg-2 java-ant-2 games
6
7 DESCRIPTION="an unofficial, online version of the Classic BattleTech board game"
8 HOMEPAGE="http://megamek.sourceforge.net/"
9 SRC_URI="mirror://sourceforge/${PN}/MegaMek-v${PV}.zip"
10
11 LICENSE="GPL-2"
12 SLOT="0"
13 KEYWORDS="~amd64 ~ppc ~x86"
14 IUSE=""
15
16 DEPEND=">=virtual/jdk-1.5
17 app-arch/unzip"
18 RDEPEND=">=virtual/jre-1.5"
19
20 S=${WORKDIR}/${PN}
21
22 pkg_setup() {
23 games_pkg_setup
24 java-pkg-2_pkg_setup
25 }
26
27 src_unpack() {
28 unpack ${A}
29 cd "${S}"
30 rm -v *.jar || die
31 sed -i \
32 -e "s:/usr/share/java:${GAMES_DATADIR}/${PN}:" \
33 -e "s:/usr/share/MegaMek:${GAMES_DATADIR}/${PN}:" \
34 startup.sh || die "sed failed"
35 }
36
37 src_compile() {
38 eant || die
39 }
40
41 src_install() {
42 newgamesbin startup.sh ${PN} || die "newgamesbin failed"
43 insinto "${GAMES_DATADIR}/${PN}"
44 doins -r data docs l10n lib mmconf *.jar readme* || die "doins failed"
45 dodoc HACKING readme.txt || die
46 prepgamesdirs
47 }

  ViewVC Help
Powered by ViewVC 1.1.20