85b1d133ff598a3fb8423db258ffab020ab52f29
[otih-overlay.git] / sci-geosciences / josm / josm-3.199.ebuild
blob85b1d133ff598a3fb8423db258ffab020ab52f29
1 # Copyright 1999-2009 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: $
5 inherit eutils java-pkg-2 java-ant-2
7 MY_P=${PN}-${PV/./}
9 DESCRIPTION="Java-based editor for the OpenStreetMap project"
10 HOMEPAGE="http://josm.openstreetmap.de/"
11 SRC_URI="http://josm.fabian-fingerle.de/${MY_P}.tar.xz"
12 LICENSE="GPL-2"
13 SLOT="0"
15 KEYWORDS="~amd64 ~x86"
17 DEPEND=">=virtual/jdk-1.6
18 app-arch/xz-utils"
19 RDEPEND=">=virtual/jre-1.6"
21 S="${WORKDIR}/${PN}"
23 IUSE=""
25 src_unpack() {
26 xz -dc "${DISTDIR}/${A}" | tar -xC"${PORTAGE_BUILDDIR}/work/" || die "myfail"
27 }
30 src_compile() {
31 JAVA_ANT_ENCODING=UTF-8
32 eant dist
33 }
35 src_install() {
36 java-pkg_newjar "dist/${PN}-custom.jar" || die "java-pkg_newjar failed"
37 java-pkg_dolauncher "${PN}" --jar "${PN}.jar" || die "java-pkg_dolauncher failed"
39 newicon "images/logo.png" ${PN}.png || die "newicon failed"
40 make_desktop_entry "${PN}" "Java OpenStreetMap Editor" josm "Application"
41 }