sci-geosciences/josm-3.218: Bump
[otih-overlay.git] / sci-geosciences / josm / josm-3.218.ebuild
Commit [+]AuthorDateLineData
d1deb000
FF
Fabian Fingerle2009-05-30 09:41:06 +02001# Copyright 1999-2009 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2
3# $Header: $
4
5inherit eutils java-pkg-2 java-ant-2
6
7MY_P=${PN}-${PV/./}
8
9DESCRIPTION="Java-based editor for the OpenStreetMap project"
10HOMEPAGE="http://josm.openstreetmap.de/"
e7204b66 Fabian Fingerle2010-01-19 07:43:22 +010011SRC_URI="http://josm.fabian-fingerle.de/${MY_P}.tar.xz"
d1deb000
FF
Fabian Fingerle2009-05-30 09:41:06 +020012LICENSE="GPL-2"
13SLOT="0"
14
15KEYWORDS="~amd64 ~x86"
16
a2a18374
FF
Fabian Fingerle2010-03-10 00:19:32 +010017DEPEND=">=virtual/jdk-1.6
18 app-arch/xz-utils"
d1deb000
FF
Fabian Fingerle2009-05-30 09:41:06 +020019RDEPEND=">=virtual/jre-1.6"
20
21S="${WORKDIR}/${PN}"
22
23IUSE=""
24
a2a18374
FF
Fabian Fingerle2010-03-10 00:19:32 +010025src_unpack() {
26 xz -dc "${DISTDIR}/${A}" | tar -xC"${PORTAGE_BUILDDIR}/work/" || die "myfail"
27}
28
29
d1deb000
FF
Fabian Fingerle2009-05-30 09:41:06 +020030src_compile() {
31 JAVA_ANT_ENCODING=UTF-8
32 eant dist
33}
34
35src_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"
38
91151d1b Fabian Fingerle2009-11-20 16:37:46 +010039 newicon "images/logo.png" ${PN}.png || die "newicon failed"
d1deb000
FF
Fabian Fingerle2009-05-30 09:41:06 +020040 make_desktop_entry "${PN}" "Java OpenStreetMap Editor" josm "Application"
41}