/[gentoo-x86]/games-strategy/freecol/freecol-0.10.5.ebuild
Gentoo

Contents of /games-strategy/freecol/freecol-0.10.5.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Fri Jun 1 06:44:20 2012 UTC (2 years, 4 months ago) by jdhore
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +2 -2 lines
marked x86 per bug 418043

(Portage version: 2.2.0_alpha108/cvs/Linux i686)

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-strategy/freecol/freecol-0.10.5.ebuild,v 1.3 2012/05/29 12:13:14 ago Exp $
4
5 EAPI=2
6 inherit base eutils java-pkg-2 java-ant-2 games
7
8 DESCRIPTION="An open source clone of the game Colonization"
9 HOMEPAGE="http://www.freecol.org/"
10 SRC_URI="mirror://sourceforge/${PN}/${P}-src.zip"
11
12 LICENSE="GPL-2"
13 SLOT="0"
14 KEYWORDS="amd64 x86"
15 IUSE=""
16
17 COMMON_DEP="dev-java/jsr173
18 dev-java/wstx:3.2
19 dev-java/commons-cli:1
20 dev-java/cortado
21 dev-java/miglayout"
22
23 DEPEND=">=virtual/jdk-1.5
24 app-arch/unzip
25 ${COMMON_DEP}"
26 RDEPEND=">=virtual/jre-1.5
27 ${COMMON_DEP}"
28
29 S=${WORKDIR}/${PN}
30
31 PATCHES=( "${FILESDIR}"/${P}-gentoo.patch )
32
33 java_prepare() {
34 cd jars
35 rm jsr173_1.0_api.jar
36 rm wstx-lgpl-4.0pr1.jar
37 rm commons-cli-1.1.jar
38 rm miglayout-3.7.3.1-swing.jar
39 rm cortado-0.6.0.jar
40 rm jogg-0.0.7.jar
41 rm jorbis-0.0.15.jar
42 }
43
44 src_prepare() {
45 base_src_prepare
46 java-pkg-2_src_prepare
47 }
48
49 src_configure() {
50 java-ant-2_src_configure
51 }
52
53 src_compile() {
54 EANT_BUILD_TARGET=package
55 EANT_EXTRA_ARGS="
56 -Dstax.jar=$(java-pkg_getjars jsr173)
57 -Dwoodstox.jar=$(java-pkg_getjars wstx-3.2)
58 -Dcli.jar=$(java-pkg_getjars commons-cli-1)
59 -Dmiglayout.jar=$(java-pkg_getjars miglayout)
60 -Dcortado.jar=$(java-pkg_getjars cortado)
61 "
62 java-pkg-2_src_compile
63 }
64
65 src_install() {
66 java-pkg_jarinto "${GAMES_DATADIR}"/${PN}/jars
67 java-pkg_dojar jars/vorbisspi1.0.3.jar
68 java-pkg_dojar jars/tritonus_share.jar
69 java-pkg_jarinto "${GAMES_DATADIR}"/${PN}
70 java-pkg_dojar FreeCol.jar
71 java-pkg_dolauncher ${PN} \
72 -into "${GAMES_PREFIX}" \
73 --pwd "${GAMES_DATADIR}"/${PN} \
74 --jar FreeCol.jar \
75 --java_args -Xmx512M
76 insinto "${GAMES_DATADIR}"/${PN}
77 doins -r data schema splash.jpg || die
78 doicon ${PN}.xpm
79 make_desktop_entry ${PN} FreeCol
80 dodoc README || die
81 prepgamesdirs
82 }
83
84 pkg_setup() {
85 games_pkg_setup
86 java-pkg-2_pkg_setup
87 }
88
89 pkg_preinst() {
90 games_pkg_preinst
91 java-pkg-2_pkg_preinst
92 }

  ViewVC Help
Powered by ViewVC 1.1.20