1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit desktop java-pkg-2 java-ant-2
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"
13 KEYWORDS="~amd64 ~x86"
15 # Rightly or wrongly, jogg and jorbis are bundled within Cortado but we
16 # don't have packages for them anyway.
19 dev-java/commons-cli:1
24 DEPEND=">=virtual/jdk-1.8
28 RDEPEND=">=virtual/jre-1.8
34 "${FILESDIR}"/commons-cli-1.3.patch
35 "${FILESDIR}"/${P}-gentoo.patch
38 JAVA_ANT_REWRITE_CLASSPATH=true
39 EANT_BUILD_TARGET=package
44 java-pkg-2_src_prepare
48 local datadir=/usr/share/${PN}
50 java-pkg_dojar FreeCol.jar
51 java-pkg_dolauncher ${PN} \
53 --main net.sf.freecol.FreeCol \
60 make_desktop_entry ${PN} FreeCol