Browse Source

gn: Provide rtg.cfg for rtg-tools.

wip-tensorflow
Efraim Flashner 12 months ago
parent
commit
69223db92f
Signed by: efraim GPG Key ID: 41AAE7DCCA3D8351
  1. 6
      gn/packages/bioinformatics.scm
  2. 16
      gn/packages/java.scm

6
gn/packages/bioinformatics.scm

@ -2063,10 +2063,8 @@ cases include:
(lambda* (#:key inputs #:allow-other-keys)
(let ((rtg-tools (assoc-ref inputs "rtg-tools"))
(dest "external/libexec/rtg-tools-install"))
(mkdir-p dest)
(copy-recursively rtg-tools dest)
(copy-file "external/rtg.cfg"
(string-append dest "/rtg.cfg"))
(mkdir-p (dirname dest))
(symlink rtg-tools dest)
#t)))
(replace 'configure
(lambda* (#:key outputs (configure-flags '()) (out-of-source? #t)

16
gn/packages/java.scm

@ -339,6 +339,22 @@ piece of information.")
(delete-file-recursively pkg)
(delete-file (string-append pkg "-nojre.zip")))
#t)))
(add-after 'install 'create-rtg.cfg
(lambda* (#:key outputs #:allow-other-keys)
(let ((out (assoc-ref outputs "out")))
(with-output-to-file (string-append out "/rtg.cfg")
(lambda _
(format #t "RTG_JAVA=\"~a\"~@
RTG_TALKBACK=false~@
RTG_USAGE=false~%"
(which "java"))))
#t)))
(add-after 'install 'install-completions
(lambda* (#:key outputs #:allow-other-keys)
(install-file "installer/resources/common/scripts/rtg-bash-completion"
(string-append (assoc-ref outputs "out")
"/share/bash-completion/completions"))
#t))
(delete 'generate-jar-indices)))) ; manually installed
(inputs
`(("java-commons-collections" ,java-commons-collections)

Loading…
Cancel
Save