summaryrefslogtreecommitdiff
blob: f96eaac20c68e4e0199e46424f2ee51b4b74a10e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/josm/josm-1.526.ebuild,v 1.1 2009/04/16 07:55:28 hanno Exp $

inherit eutils java-pkg-2

MY_P=${PN}-snapshot-${PV/./}
DESCRIPTION="Java-based editor for the OpenStreetMap project"
HOMEPAGE="http://josm.openstreetmap.de/"
SRC_URI="http://josm.openstreetmap.de/download/${MY_P}.jar"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
DEPEND=">=virtual/jre-1.6"
RDEPEND="${DEPEND}"
S="${WORKDIR}"

IUSE=""

src_install() {
	java-pkg_newjar "${DISTDIR}/${MY_P}.jar"

	# Using the eclass doesn't let us support the http_proxy var,
	# so we're using our own startscript for now.
	#java-pkg_dolauncher "${PN}" --jar "${PN}.jar"
	newbin "${FILESDIR}/${PN}-r1" "${PN}" || die "dobin failed"

	doicon "${FILESDIR}/josm.png" || die "doicon failed"
	make_desktop_entry "${PN}" "Java OpenStreetMap Editor" josm "Application"
}