blob: 737ff0d62acf189dc4dec651680287c371a511fd (
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/josm/josm-1.5_p493.ebuild,v 1.1 2007/12/17 15:20:25 hanno Exp $
inherit eutils
MY_P=${PN}-snapshot-${PV/1.5_p/}
DESCRIPTION="Java-based editor for the OpenStreetMap project"
HOMEPAGE="http://josm.openstreetmap.de/"
SRC_URI="http://josm.openstreetmap.de/download/${MY_P}.jar
linguas_de? ( mirror://gentoo/lang-de-20071207.jar )
linguas_en_GB? ( mirror://gentoo/lang-en_GB-20061020.jar )
linguas_fr? ( mirror://gentoo/lang-fr-20061020.jar )
linguas_ro? ( mirror://gentoo/lang-ro-20061020.jar )"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
DEPEND="virtual/jdk"
S="${WORKDIR}"
LINGUAS="en de"
IUSE="linguas_de linguas_en_GB linguas_fr linguas_ro"
src_unpack() {
einfo Nothing to unpack
}
src_compile() {
einfo Nothing to compile
}
src_install() {
dobin "${FILESDIR}/josm" || die
insinto /usr/lib/josm/
newins "${DISTDIR}/${MY_P}.jar" josm.jar || die
insinto /usr/lib/josm/plugins
use linguas_de && newins ${DISTDIR}/lang-de-20071207.jar lang-de.jar
use linguas_en_GB && newins ${DISTDIR}/lang-en_GB-20061020.jar lang-en_GB.jar
use linguas_fr && newins ${DISTDIR}/lang-fr-20061020.jar lang-fr.jar
use linguas_ro && newins ${DISTDIR}/lang-ro-20061020.jar lang-ro.jar
doicon "${FILESDIR}/josm.png" || die
make_desktop_entry "${PN}" "Java OpenStreetMap Editor" josm.png "Application"
}
|