From cfdb6770ef57a745c101388fa708aa327b8cde2b Mon Sep 17 00:00:00 2001 From: Julien Lepiller Date: Sun, 5 Jul 2020 01:06:32 +0200 Subject: gnu: josm: Update to 16731. * gnu/packages/geo.scm (josm): Update to 16731. --- gnu/packages/geo.scm | 28 +++++++++++++--------------- 1 file changed, 13 insertions(+), 15 deletions(-) (limited to 'gnu/packages') diff --git a/gnu/packages/geo.scm b/gnu/packages/geo.scm index cae7f2ddf3..0834add7d1 100644 --- a/gnu/packages/geo.scm +++ b/gnu/packages/geo.scm @@ -1208,7 +1208,7 @@ to the OSM opening hours specification.") (define-public josm (package (name "josm") - (version "15937") + (version "16731") (source (origin (method svn-fetch) (uri (svn-reference @@ -1217,7 +1217,7 @@ to the OSM opening hours specification.") (recursive? #f))) (sha256 (base32 - "00b8sw0wgkcf7xknmdpn5s521ax8x2660figidcrry37sgq3x946")) + "036kdb1ckhym5f7lj5ydzblli7f1i1pl8z00hxvagf2rczdf5fi3")) (file-name (string-append name "-" version "-checkout")) (modules '((guix build utils))) (snippet @@ -1234,6 +1234,7 @@ to the OSM opening hours specification.") ("java-jsonp-api" ,java-jsonp-api) ("java-jsonp-impl" ,java-jsonp-impl); runtime dependency ("java-metadata-extractor" ,java-metadata-extractor) + ("java-opening-hours-parser" ,java-opening-hours-parser) ("java-openjfx-media" ,java-openjfx-media) ("java-signpost-core" ,java-signpost-core) ("java-svg-salamander" ,java-svg-salamander))) @@ -1255,6 +1256,14 @@ to the OSM opening hours specification.") "1970-01-01 00:00:00 +0000" "")))) #t)) + (add-before 'build 'fix-jcs + (lambda _ + ;; This version of JOSM uses an unreleased version of commons-jcs, + ;; which has renamed its classes to another namespace. Rename them + ;; back so they can be used with our version of jcs. + (substitute* (find-files "." ".*.java$") + (("jcs3") "jcs")) + #t)) (add-before 'build 'fix-classpath (lambda* (#:key inputs #:allow-other-keys) (setenv "CLASSPATH" @@ -1288,10 +1297,9 @@ to the OSM opening hours specification.") (invoke "java" "-cp" "build/classes:scripts:." "BuildProjectionDefinitions" ".") #t)) - (add-after 'generate-epsg 'copy-data + (add-after 'generate-epsg 'copy-resources (lambda _ - (mkdir-p "build/classes") - (rename-file "data" "build/classes/data") + (copy-recursively "resources" "build/classes") #t)) (add-before 'install 'regenerate-jar (lambda _ @@ -1300,16 +1308,6 @@ to the OSM opening hours specification.") (invoke "jar" "-cf" "build/jar/josm.jar" "-C" "build/classes" ".") #t)) - (add-before 'build 'copy-styles - (lambda _ - (mkdir-p "build/classes") - (rename-file "styles" "build/classes/styles") - #t)) - (add-before 'build 'copy-images - (lambda _ - (mkdir-p "build/classes") - (rename-file "images" "build/classes/images") - #t)) (add-before 'build 'copy-revision (lambda _ (mkdir-p "build/classes") -- cgit 1.4.1