(define %java-cup-bootstrap
"releases/java-cup-bin-" version
"1k6ycm5bpg7r2z2jprdp54s8bvaxggdxk4qmvkjw3013i1bxc09z"))))
(build-system trivial-build-system)
`(#:modules ((guix build utils))
(use-modules (guix build utils))
(let* ((source (assoc-ref %build-inputs "source"))
(assoc-ref %build-inputs "tar")
(gzip (assoc-ref %build-inputs "gzip"))
(output (assoc-ref %outputs "out"))
(java-dir (string-append output
(setenv "PATH" (string-append (getenv "PATH") ":"
(invoke tar "xf" source)))))
(license license:expat)))
(define-public java-jflex
"1h7q2vhb4s42g4pqz5xxxliagprray7i9krr6hyaz1mjlx7gnycq"))
(modules '((guix build utils)))
;; The first entry is a symlink to jflex-version
;; Delete bundled jar archives.
(for-each delete-file (find-files "." ".*\\.jar"))
;; Guix wants to repack jflex as that was the first
(rename-file "jflex-1.6.1" "jflex")
(build-system ant-build-system)
(modify-phases %standard-phases
`(("%java-jflex-bootstrap" ,%java-jflex-bootstrap)
("java-junit" ,java-junit)))
(home-page "https://jflex.de")
(license license:bsd-3)))
"fe729fe8c27441f046dab19135a38b9dde4c4e5e")))
"09xigxm7b44hz79xhqpfykvjrk4q90p33j2l07w69izx9sn0y42b"))
(modules '((guix build utils)))
'(begin ;; Delete bundled jar archives.
(for-each delete-file (find-files "." ".*\\.jar"))
(for-each delete-file (find-files "." ".*\\.tar.gz"))
(build-system ant-build-system)
#:tests? #f; no test target
(modify-phases %standard-phases
(add-before 'build 'fix-jflex
(("JFlex.ant") "jflex.ant"))
(add-before 'build 'add-lib
`(("%java-jflex-bootstrap" ,%java-jflex-bootstrap)
(license license:expat)));