diff options
author | Julien Lepiller <julien@lepiller.eu> | 2020-05-17 18:01:32 +0200 |
---|---|---|
committer | Julien Lepiller <julien@lepiller.eu> | 2020-07-17 04:13:41 +0200 |
commit | aabaac7d85971a4e6b8826f6412b7cd40d42bbcc (patch) | |
tree | ec1510b6afa931833f7e195f9dd2f1bed3fdf52e /gnu/packages/java.scm | |
parent | 02ed96dccf4764dc707bcfcb523b24cf31ed2a79 (diff) | |
download | guix-aabaac7d85971a4e6b8826f6412b7cd40d42bbcc.tar guix-aabaac7d85971a4e6b8826f6412b7cd40d42bbcc.tar.gz |
gnu: Add javacc-3.
* gnu/packages/java.scm (javacc-3): New variable.
Diffstat (limited to 'gnu/packages/java.scm')
-rw-r--r-- | gnu/packages/java.scm | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm index e5e7586f92..f3c8abe99b 100644 --- a/gnu/packages/java.scm +++ b/gnu/packages/java.scm @@ -2696,6 +2696,35 @@ as tree building (via a tool called JJTree included with JavaCC), actions, debugging, etc.") (license license:bsd-3))) +;; javacc-3, as javacc-4 is not properly bootstrapped: is contains a javacc.jar +;; in the bootstrap/ directory. +(define-public javacc-3 + (package + (inherit javacc-4) + (version "3.2") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/javacc/javacc.git") + (commit "release_32"))) + (file-name (string-append "javacc-" version "-checkout")) + (sha256 + (base32 + "1pyf1xyh8gk83nxqn2v2mdws32l68ydznha41cxa4l2kkbq1v1g3")))) + (arguments + `(#:tests? #f + #:phases + (modify-phases %standard-phases + (add-before 'build 'set-java-version + (lambda _ + (for-each + (lambda (file) + (substitute* file + (("debug=") "source=\"1.4\" debug="))) + (find-files "." "build.xml")) + #t)) + (replace 'install (install-jars "bin/lib"))))))) + (define-public javacc (package (inherit javacc-4) |