From: | "Alfredo Tupone (tupone)" <tupone@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in games-strategy/freecol: ChangeLog freecol-0.10.5.ebuild |
Date: | Sat, 03 Mar 2012 20:42:18 |
Message-Id: | 20120303204208.611FC2004C@flycatcher.gentoo.org |
1 | tupone 12/03/03 20:42:08 |
2 | |
3 | Modified: ChangeLog |
4 | Added: freecol-0.10.5.ebuild |
5 | Log: |
6 | Version bump. Bug #300585 |
7 | |
8 | (Portage version: 2.1.10.49/cvs/Linux i686) |
9 | |
10 | Revision Changes Path |
11 | 1.38 games-strategy/freecol/ChangeLog |
12 | |
13 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-strategy/freecol/ChangeLog?rev=1.38&view=markup |
14 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-strategy/freecol/ChangeLog?rev=1.38&content-type=text/plain |
15 | diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-strategy/freecol/ChangeLog?r1=1.37&r2=1.38 |
16 | |
17 | Index: ChangeLog |
18 | =================================================================== |
19 | RCS file: /var/cvsroot/gentoo-x86/games-strategy/freecol/ChangeLog,v |
20 | retrieving revision 1.37 |
21 | retrieving revision 1.38 |
22 | diff -u -r1.37 -r1.38 |
23 | --- ChangeLog 25 Oct 2009 12:20:32 -0000 1.37 |
24 | +++ ChangeLog 3 Mar 2012 20:42:07 -0000 1.38 |
25 | @@ -1,6 +1,12 @@ |
26 | # ChangeLog for games-strategy/freecol |
27 | -# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
28 | -# $Header: /var/cvsroot/gentoo-x86/games-strategy/freecol/ChangeLog,v 1.37 2009/10/25 12:20:32 maekke Exp $ |
29 | +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
30 | +# $Header: /var/cvsroot/gentoo-x86/games-strategy/freecol/ChangeLog,v 1.38 2012/03/03 20:42:07 tupone Exp $ |
31 | + |
32 | +*freecol-0.10.5 (03 Mar 2012) |
33 | + |
34 | + 03 Mar 2012; Tupone Alfredo <tupone@g.o> +freecol-0.10.5.ebuild, |
35 | + +files/freecol-0.10.5-gentoo.patch: |
36 | + Version bump. Bug #300585 by Thomas Kahle |
37 | |
38 | 25 Oct 2009; Markus Meier <maekke@g.o> freecol-0.8.4.ebuild: |
39 | amd64/x86 stable, bug #288643 |
40 | |
41 | |
42 | |
43 | 1.1 games-strategy/freecol/freecol-0.10.5.ebuild |
44 | |
45 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-strategy/freecol/freecol-0.10.5.ebuild?rev=1.1&view=markup |
46 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-strategy/freecol/freecol-0.10.5.ebuild?rev=1.1&content-type=text/plain |
47 | |
48 | Index: freecol-0.10.5.ebuild |
49 | =================================================================== |
50 | # Copyright 1999-2012 Gentoo Foundation |
51 | # Distributed under the terms of the GNU General Public License v2 |
52 | # $Header: /var/cvsroot/gentoo-x86/games-strategy/freecol/freecol-0.10.5.ebuild,v 1.1 2012/03/03 20:42:07 tupone Exp $ |
53 | |
54 | EAPI=2 |
55 | |
56 | inherit base eutils java-pkg-2 java-ant-2 games |
57 | |
58 | DESCRIPTION="An open source clone of the game Colonization" |
59 | HOMEPAGE="http://www.freecol.org/" |
60 | SRC_URI="mirror://sourceforge/${PN}/${P}-src.zip" |
61 | |
62 | LICENSE="GPL-2" |
63 | SLOT="0" |
64 | KEYWORDS="~amd64 ~x86" |
65 | IUSE="" |
66 | |
67 | COMMON_DEP="dev-java/jsr173 |
68 | dev-java/wstx:3.2 |
69 | dev-java/commons-cli:1 |
70 | dev-java/cortado |
71 | dev-java/miglayout" |
72 | |
73 | DEPEND=">=virtual/jdk-1.5 |
74 | app-arch/unzip |
75 | ${COMMON_DEP}" |
76 | RDEPEND=">=virtual/jre-1.5 |
77 | ${COMMON_DEP}" |
78 | |
79 | S="${WORKDIR}"/${PN} |
80 | |
81 | PATCHES=( "${FILESDIR}"/${P}-gentoo.patch ) |
82 | |
83 | java_prepare() { |
84 | cd jars |
85 | rm jsr173_1.0_api.jar |
86 | rm wstx-lgpl-4.0pr1.jar |
87 | rm commons-cli-1.1.jar |
88 | rm miglayout-3.7.3.1-swing.jar |
89 | rm cortado-0.6.0.jar |
90 | rm jogg-0.0.7.jar |
91 | rm jorbis-0.0.15.jar |
92 | } |
93 | |
94 | src_prepare() { |
95 | base_src_prepare |
96 | java-pkg-2_src_prepare |
97 | } |
98 | |
99 | src_configure() { |
100 | java-ant-2_src_configure |
101 | } |
102 | |
103 | src_compile() { |
104 | EANT_BUILD_TARGET=package |
105 | EANT_EXTRA_ARGS=" |
106 | -Dstax.jar=$(java-pkg_getjars jsr173) |
107 | -Dwoodstox.jar=$(java-pkg_getjars wstx-3.2) |
108 | -Dcli.jar=$(java-pkg_getjars commons-cli-1) |
109 | -Dmiglayout.jar=$(java-pkg_getjars miglayout) |
110 | -Dcortado.jar=$(java-pkg_getjars cortado) |
111 | " |
112 | java-pkg-2_src_compile |
113 | } |
114 | |
115 | src_install() { |
116 | java-pkg_jarinto "${GAMES_DATADIR}"/${PN}/jars |
117 | java-pkg_dojar jars/vorbisspi1.0.3.jar |
118 | java-pkg_dojar jars/tritonus_share.jar |
119 | java-pkg_jarinto "${GAMES_DATADIR}"/${PN} |
120 | java-pkg_dojar FreeCol.jar |
121 | java-pkg_dolauncher ${PN} \ |
122 | -into "${GAMES_PREFIX}" \ |
123 | --pwd "${GAMES_DATADIR}"/${PN} \ |
124 | --jar FreeCol.jar \ |
125 | --java_args -Xmx512M |
126 | insinto "${GAMES_DATADIR}"/${PN} |
127 | doins -r data schema splash.jpg || die "doins failed" |
128 | doicon ${PN}.xpm |
129 | make_desktop_entry ${PN} FreeCol |
130 | dodoc README || die "dodoc failed" |
131 | prepgamesdirs |
132 | } |
133 | |
134 | pkg_setup() { |
135 | games_pkg_setup |
136 | java-pkg-2_pkg_setup |
137 | } |
138 | |
139 | pkg_preinst() { |
140 | games_pkg_preinst |
141 | java-pkg-2_pkg_preinst |
142 | } |