Update josm
more/packages/java.scm
| 22 | 22 | #:use-module (guix packages) | |
| 23 | 23 | #:use-module (guix download) | |
| 24 | 24 | #:use-module (guix git-download) | |
| 25 | + | #:use-module (guix svn-download) | |
| 25 | 26 | #:use-module (guix utils) | |
| 26 | 27 | #:use-module (guix build-system ant) | |
| 27 | 28 | #:use-module (guix build-system gnu) | |
… | |||
| 34 | 35 | (define-public josm | |
| 35 | 36 | (package | |
| 36 | 37 | (name "josm") | |
| 37 | - | (version "d977155fb5b1f54ab76140345633356475f7beee") | |
| 38 | + | (version "12039") | |
| 38 | 39 | (source (origin | |
| 39 | - | (method git-fetch) | |
| 40 | - | (uri (git-reference | |
| 41 | - | (url "https://github.com/openstreetmap/josm.git") | |
| 42 | - | (commit version))) | |
| 40 | + | (method svn-fetch) | |
| 41 | + | ;;(uri (git-reference | |
| 42 | + | ;; (url "https://github.com/openstreetmap/josm.git") | |
| 43 | + | ;; (commit version))) | |
| 44 | + | (uri (svn-reference | |
| 45 | + | (url "https://svn.openstreetmap.org/applications/editors/josm") | |
| 46 | + | (revision 12039))) | |
| 43 | 47 | (sha256 | |
| 44 | 48 | (base32 | |
| 45 | - | "17ih97kf6g6ly8gz6dbc3jzh22gamra4anbwcsxivhq7dw5z3a6n")) | |
| 49 | + | ;;"17ih97kf6g6ly8gz6dbc3jzh22gamra4anbwcsxivhq7dw5z3a6n")) | |
| 50 | + | "1sq35askhvg85ghj7q34adxny7dwacz7xx6sbc1l5g0khcck7vql")) | |
| 46 | 51 | (file-name (string-append name "-" version)))) | |
| 47 | 52 | (build-system ant-build-system) | |
| 48 | 53 | (arguments | |
… | |||
| 56 | 61 | (with-output-to-file "REVISION.XML" | |
| 57 | 62 | (lambda _ | |
| 58 | 63 | (display | |
| 59 | - | (string-append "<info><entry><commit revision=\"11885\">" | |
| 64 | + | (string-append "<info><entry><commit revision=\"" ,version "\">" | |
| 60 | 65 | "<date>1970-01-01 00:00:00 +0000</date>" | |
| 61 | 66 | "</commit></entry></info>")))) | |
| 62 | 67 | (substitute* "build.xml" | |
| 63 | - | (("UNKNOWN") "11885") | |
| 64 | - | (("<touch.*epsg.output.*") "<mkdir dir="${epsg.output}/.." /><touch file="${epsg.output}"/>\n") | |
| 68 | + | (("UNKNOWN") ,version) | |
| 69 | + | (("<touch.*epsg.output.*") "<mkdir dir=\"${epsg.output}/..\" /><touch file=\"${epsg.output}\"/>\n") | |
| 65 | 70 | ((".*com.google.errorprone.ErrorProneAntCompilerAdapter.*") "") | |
| 66 | 71 | (("compiler=\"[^\"]*\" ") "")))) | |
| 67 | 72 | (replace 'install | |
| 68 | - | (lambda* (#:key outputs #:allow-other-keys) | |
| 73 | + | (lambda* (#:key outputs inputs #:allow-other-keys) | |
| 69 | 74 | (let* ((out (assoc-ref outputs "out")) | |
| 70 | 75 | (bin (string-append out "/bin")) | |
| 71 | 76 | (lib (string-append out "/lib/josm"))) | |
… | |||
| 77 | 82 | (lambda _ | |
| 78 | 83 | (display | |
| 79 | 84 | (string-append "#!/bin/sh\n" | |
| 80 | - | "java -jar " lib "/josm.jar")))) | |
| 85 | + | (assoc-ref inputs "jdk") "/bin/java" | |
| 86 | + | " -jar " lib "/josm.jar")))) | |
| 81 | 87 | (chmod (string-append bin "/josm") #o755))))))) | |
| 82 | 88 | (home-page "https://josm.openstreetmap.de") | |
| 83 | 89 | (synopsis "OSM editor") | |