summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHanno Böck <hanno@gentoo.org>2012-09-19 10:20:59 +0000
committerHanno Böck <hanno@gentoo.org>2012-09-19 10:20:59 +0000
commitf038b5b50520d644d7c8cd03991f74704891d1b3 (patch)
tree8b89f6597d190a60b67beba12155b8bac1587fad
parentStable for x86, wrt bug #433483 (diff)
downloadgentoo-2-f038b5b50520d644d7c8cd03991f74704891d1b3.tar.gz
gentoo-2-f038b5b50520d644d7c8cd03991f74704891d1b3.tar.bz2
gentoo-2-f038b5b50520d644d7c8cd03991f74704891d1b3.zip
josm bump
(Portage version: 2.1.11.18/cvs/Linux x86_64)
-rw-r--r--sci-geosciences/josm/ChangeLog8
-rw-r--r--sci-geosciences/josm/josm-5485.ebuild55
2 files changed, 62 insertions, 1 deletions
diff --git a/sci-geosciences/josm/ChangeLog b/sci-geosciences/josm/ChangeLog
index 9cffd42d0191..e87dd7e97d62 100644
--- a/sci-geosciences/josm/ChangeLog
+++ b/sci-geosciences/josm/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for sci-geosciences/josm
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/josm/ChangeLog,v 1.43 2012/07/27 22:28:32 hanno Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/josm/ChangeLog,v 1.44 2012/09/19 10:20:59 hanno Exp $
+
+*josm-5485 (19 Sep 2012)
+
+ 19 Sep 2012; Hanno Boeck <hanno@gentoo.org> +josm-5485.ebuild:
+ Version bump and svn snapshots need subversion dependency to create version
+ string.
*josm-5356 (27 Jul 2012)
diff --git a/sci-geosciences/josm/josm-5485.ebuild b/sci-geosciences/josm/josm-5485.ebuild
new file mode 100644
index 000000000000..0753bd40211c
--- /dev/null
+++ b/sci-geosciences/josm/josm-5485.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/josm/josm-5485.ebuild,v 1.1 2012/09/19 10:20:59 hanno Exp $
+
+EAPI=4
+
+JAVA_ANT_ENCODING=UTF-8
+
+[[ ${PV} == "9999" ]] && SUBVERSION_ECLASS="subversion"
+ESVN_REPO_URI="http://josm.openstreetmap.de/svn/trunk"
+inherit eutils java-pkg-2 java-ant-2 ${SUBVERSION_ECLASS}
+unset SUBVERSION_ECLASS
+
+DESCRIPTION="Java-based editor for the OpenStreetMap project"
+HOMEPAGE="http://josm.openstreetmap.de/"
+[[ ${PV} == "9999" ]] || SRC_URI="http://josm.fabian-fingerle.de/${P}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+[[ ${PV} == "9999" ]] || KEYWORDS="~amd64 ~x86"
+
+DEPEND=">=virtual/jdk-1.6
+ >=dev-vcs/subversion-1.7"
+RDEPEND=">=virtual/jre-1.6"
+
+S="${WORKDIR}/${PN}"
+
+IUSE=""
+
+src_prepare() {
+ if [[ ${PV} == "9999" ]]; then
+ sed -i \
+ -e "s:josm-custom.jar:josm.jar:" \
+ -e "s:josm-custom-optimized.jar:josm-optimized.jar:" \
+ build.xml || die "Sed failed"
+
+ # create-revision needs the compile directory to be a svn directory
+ # see also http://lists.openstreetmap.org/pipermail/dev/2009-March/014182.html
+ sed -i \
+ -e "s:arg[ ]value=\".\":arg value=\"${ESVN_STORE_DIR}\/${PN}\/trunk\":" \
+ build.xml || die "Sed failed"
+ fi
+}
+
+src_compile() {
+ eant dist-optimized
+}
+
+src_install() {
+ java-pkg_newjar "dist/${PN}-optimized.jar" "${PN}.jar" || die "java-pkg_newjar failed"
+ java-pkg_dolauncher "${PN}" --jar "${PN}.jar" || die "java-pkg_dolauncher failed"
+
+ newicon images/logo.png josm.png || die "newicon failed"
+ make_desktop_entry "${PN}" "Java OpenStreetMap Editor" josm "Utility;Science;Geoscience"
+}