summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sci-geosciences/josm/josm-1.5_p490.ebuild')
-rw-r--r--sci-geosciences/josm/josm-1.5_p490.ebuild46
1 files changed, 46 insertions, 0 deletions
diff --git a/sci-geosciences/josm/josm-1.5_p490.ebuild b/sci-geosciences/josm/josm-1.5_p490.ebuild
new file mode 100644
index 000000000000..e294098306f4
--- /dev/null
+++ b/sci-geosciences/josm/josm-1.5_p490.ebuild
@@ -0,0 +1,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_p490.ebuild,v 1.1 2007/12/16 22:10:49 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"
+}