mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-19 09:22:05 -05:00
gnu: java-bsh: Unbundle third-party libraries.
* gnu/packages/java.scm (java-bsh)[source]: Remove bundled jar files.
This commit is contained in:
parent
aabaac7d85
commit
b8d977b154
1 changed files with 20 additions and 1 deletions
|
@ -9422,19 +9422,38 @@ (define-public java-bsh
|
|||
(file-name (git-file-name name version))
|
||||
(sha256
|
||||
(base32
|
||||
"0kz3f0xjack6c9syssi4qjw1rbd3q5963sk5pmr143hiibxa9csw"))))
|
||||
"0kz3f0xjack6c9syssi4qjw1rbd3q5963sk5pmr143hiibxa9csw"))
|
||||
(modules '((guix build utils)))
|
||||
(snippet
|
||||
'(begin
|
||||
;; Delete bundled third-party jar archives.
|
||||
(for-each delete-file (find-files "." ".*.jar$"))
|
||||
(for-each (lambda (file) (chmod file #o644))
|
||||
(find-files "." "."))
|
||||
#t))))
|
||||
(build-system ant-build-system)
|
||||
(arguments
|
||||
`(#:build-target "jarall"
|
||||
#:test-target "junit-tests-all"
|
||||
#:phases
|
||||
(modify-phases %standard-phases
|
||||
(add-before 'install 'fix-pom
|
||||
(lambda _
|
||||
(substitute* "pom.xml"
|
||||
(("org.apache-extras.beanshell") "org.beanshell"))
|
||||
#t))
|
||||
(replace 'install
|
||||
(lambda* (#:key outputs #:allow-other-keys)
|
||||
(let ((share (string-append (assoc-ref outputs "out") "/share/java")))
|
||||
(mkdir-p share)
|
||||
(copy-file "dist/bsh-2.0b6.jar" (string-append share "/bsh-2.0b6.jar"))
|
||||
#t))))))
|
||||
(inputs
|
||||
`(("java-classpathx-servletapi" ,java-classpathx-servletapi)
|
||||
("java-commons-bsf" ,java-commons-bsf)))
|
||||
(native-inputs
|
||||
`(("java-junit" ,java-junit)
|
||||
("javacc" ,javacc-3)))
|
||||
(home-page "http://beanshell.org/")
|
||||
(synopsis "Lightweight Scripting for Java")
|
||||
(description "BeanShell is a small, free, embeddable Java source
|
||||
|
|
Loading…
Reference in a new issue