remove javacc
more/packages/java.scm
1723 | 1723 | #t)) | |
1724 | 1724 | (add-before 'build 'copy-jars | |
1725 | 1725 | (lambda* (#:key inputs #:allow-other-keys) | |
1726 | - | (copy-file (car (find-files (assoc-ref inputs "java-javacc") "\\.jar$")) | |
1726 | + | (copy-file (car (find-files (assoc-ref inputs "javacc") "\\.jar$")) | |
1727 | 1727 | "../libraries/javacc.jar") | |
1728 | 1728 | (copy-file (car (find-files (assoc-ref inputs "ant") "ant\\.jar$")) | |
1729 | 1729 | "../libraries/ant.jar") | |
… | |||
1731 | 1731 | (replace 'install | |
1732 | 1732 | (install-jars "dist"))))) | |
1733 | 1733 | (native-inputs | |
1734 | - | `(("java-javacc" ,java-javacc))) | |
1734 | + | `(("javacc" ,javacc))) | |
1735 | 1735 | (home-page "https://github.com/blackears/svgSalamander") | |
1736 | 1736 | (synopsis "") | |
1737 | 1737 | (description "") | |
… | |||
1764 | 1764 | #t)))) | |
1765 | 1765 | (build-system ant-build-system) | |
1766 | 1766 | (native-inputs | |
1767 | - | `(("java-javacc" ,java-javacc))) | |
1767 | + | `(("javacc" ,javacc))) | |
1768 | 1768 | (inputs | |
1769 | 1769 | `(("java-commons-jcs" ,java-commons-jcs) | |
1770 | 1770 | ("java-commons-compress" ,java-commons-compress-latest) | |
… | |||
4561 | 4561 | (string-append dir "/velocity-1.7.jar"))) | |
4562 | 4562 | #t))))) | |
4563 | 4563 | (native-inputs | |
4564 | - | `(("javacc" ,java-javacc) | |
4564 | + | `(("javacc" ,javacc) | |
4565 | 4565 | ("antlr" ,antlr2))) | |
4566 | 4566 | (propagated-inputs | |
4567 | 4567 | `(("java-commons-collections" ,java-commons-collections) | |
… | |||
4976 | 4976 | (description "") | |
4977 | 4977 | (license license:asl2.0))) | |
4978 | 4978 | ||
4979 | - | (define-public java-javacc | |
4980 | - | (package | |
4981 | - | (name "java-javacc") | |
4982 | - | (version "7.0.2") | |
4983 | - | (source (origin | |
4984 | - | (method url-fetch) | |
4985 | - | (uri (string-append "https://github.com/javacc/javacc/archive/release_" | |
4986 | - | (string-map (lambda (x) (if (eq? x #\.) #\_ x)) version) | |
4987 | - | ".tar.gz")) | |
4988 | - | (sha256 | |
4989 | - | (base32 | |
4990 | - | "0yf93993nlsk5kijazddi5621x4y2bwq3vl46j8h8f7di2z9jv2h")))) | |
4991 | - | (build-system ant-build-system) | |
4992 | - | (arguments | |
4993 | - | `(#:test-target "unittest" | |
4994 | - | #:phases | |
4995 | - | (modify-phases %standard-phases | |
4996 | - | (add-after 'unpack 'remove-binaries | |
4997 | - | (lambda* _ | |
4998 | - | ;; Note: we cannot remove bootstrap/javacc.jar because no version of javacc comes with no bootstrap | |
4999 | - | (delete-file-recursively "lib"))) | |
5000 | - | (replace 'install | |
5001 | - | (lambda* (#:key outputs inputs #:allow-other-keys) | |
5002 | - | (let* ((out (assoc-ref outputs "out")) | |
5003 | - | (dir (string-append out "/share/java")) | |
5004 | - | (bin (string-append out "/bin"))) | |
5005 | - | (mkdir-p dir) | |
5006 | - | (mkdir-p bin) | |
5007 | - | (copy-file "target/javacc.jar" (string-append dir "/javacc.jar")) | |
5008 | - | (with-output-to-file (string-append bin "/javacc") | |
5009 | - | (lambda _ | |
5010 | - | (display | |
5011 | - | (string-append "#!/bin/sh\n" | |
5012 | - | (assoc-ref inputs "jdk") "/bin/java" | |
5013 | - | " -cp " dir "/javacc.jar" " `basename $0`" " $*")))) | |
5014 | - | (chmod (string-append bin "/javacc") #o755) | |
5015 | - | (symlink (string-append bin "/javacc") | |
5016 | - | (string-append bin "/jjdoc")) | |
5017 | - | (symlink (string-append bin "/javacc") | |
5018 | - | (string-append bin "/jjtree")))))))) | |
5019 | - | (native-inputs | |
5020 | - | `(("java-junit" ,java-junit))) | |
5021 | - | (home-page "https://javacc.org") | |
5022 | - | (synopsis "") | |
5023 | - | (description "") | |
5024 | - | (license license:bsd-3))) | |
5025 | - | ||
5026 | 4979 | ;; This version is required by velocity 2.0 | |
5027 | 4980 | (define-public java-javacc-5 | |
5028 | 4981 | (package | |
5029 | - | (inherit java-javacc) | |
4982 | + | (inherit javacc) | |
5030 | 4983 | (version "5.0") | |
5031 | 4984 | (source (origin | |
5032 | 4985 | (method url-fetch) | |
… | |||
5035 | 4988 | (base32 | |
5036 | 4989 | "0w3kl5zal9g0gwpcnlii6spgvb2yi3dpj1vz592ly18h6yfswv3n")))) | |
5037 | 4990 | (arguments | |
5038 | - | (substitute-keyword-arguments (package-arguments java-javacc) | |
4991 | + | (substitute-keyword-arguments (package-arguments javacc) | |
5039 | 4992 | ((#:phases phases) | |
5040 | 4993 | `(modify-phases ,phases | |
5041 | 4994 | ;; This phase renames the generated jar so it can be handled by |