[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
08/15: gnu: arriba: Use SEARCH-INPUT-FILE and -DIRECTORY.
From: |
guix-commits |
Subject: |
08/15: gnu: arriba: Use SEARCH-INPUT-FILE and -DIRECTORY. |
Date: |
Fri, 12 May 2023 17:25:44 -0400 (EDT) |
rekado pushed a commit to branch master
in repository guix.
commit 662e2e82b1b32b98077ffbf35cf2a6985a2c75e3
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Fri May 12 22:40:18 2023 +0200
gnu: arriba: Use SEARCH-INPUT-FILE and -DIRECTORY.
* gnu/packages/bioinformatics.scm (arriba)[arguments]:
Use SEARCH-INPUT-DIRECTORY and SEARCH-INPUT-FILE; use G-expression; drop
trailing #T from build phases.
---
gnu/packages/bioinformatics.scm | 59 +++++++++++++++++++++--------------------
1 file changed, 30 insertions(+), 29 deletions(-)
diff --git a/gnu/packages/bioinformatics.scm b/gnu/packages/bioinformatics.scm
index 6d34c0abab..0bdec29807 100644
--- a/gnu/packages/bioinformatics.scm
+++ b/gnu/packages/bioinformatics.scm
@@ -16525,35 +16525,36 @@ includes a command line tool and an analysis
pipeline.")
"0jx9656ry766vb8z08m1c3im87b0c82qpnjby9wz4kcz8vn87dx2"))))
(build-system gnu-build-system)
(arguments
- `(#:tests? #f ; there are none
- #:phases
- (modify-phases %standard-phases
- (replace 'configure
- (lambda* (#:key inputs #:allow-other-keys)
- (let ((htslib (assoc-ref inputs "htslib")))
- (substitute* "Makefile"
- (("-I\\$\\(HTSLIB\\)/htslib")
- (string-append "-I" htslib "/include/htslib"))
- ((" \\$\\(HTSLIB\\)/libhts.a")
- (string-append " " htslib "/lib/libhts.so"))))
- (substitute* "run_arriba.sh"
- (("^STAR ") (string-append (which "STAR") " "))
- (("samtools --version-only")
- (string-append (which "samtools") " --version-only"))
- (("samtools index")
- (string-append (which "samtools") " index"))
- (("samtools sort")
- (string-append (which "samtools") " sort")))
- #t))
- (replace 'install
- (lambda* (#:key outputs #:allow-other-keys)
- (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
- (install-file "arriba" bin)
- (install-file "run_arriba.sh" bin)
- (install-file "draw_fusions.R" bin)
- (wrap-program (string-append bin "/draw_fusions.R")
- `("R_LIBS_SITE" ":" prefix (,(getenv "R_LIBS_SITE")))))
- #t)))))
+ (list
+ #:tests? #f ;there are none
+ #:phases
+ #~(modify-phases %standard-phases
+ (replace 'configure
+ (lambda* (#:key inputs #:allow-other-keys)
+ (substitute* "Makefile"
+ (("-I\\$\\(HTSLIB\\)/htslib")
+ (string-append "-I"
+ (search-input-directory inputs
"/include/htslib")))
+ ((" \\$\\(HTSLIB\\)/libhts.a")
+ (string-append " " (search-input-file inputs
"/lib/libhts.so"))))
+ (let ((samtools (search-input-file inputs "/bin/samtools")))
+ (substitute* "run_arriba.sh"
+ (("^STAR ")
+ (string-append (search-input-file inputs "/bin/STAR") " "))
+ (("samtools --version-only")
+ (string-append samtools " --version-only"))
+ (("samtools index")
+ (string-append samtools " index"))
+ (("samtools sort")
+ (string-append samtools " sort"))))))
+ (replace 'install
+ (lambda _
+ (let ((bin (string-append #$output "/bin")))
+ (install-file "arriba" bin)
+ (install-file "run_arriba.sh" bin)
+ (install-file "draw_fusions.R" bin)
+ (wrap-program (string-append bin "/draw_fusions.R")
+ `("R_LIBS_SITE" ":" prefix (,(getenv "R_LIBS_SITE"))))))))))
(inputs
(list htslib
r-minimal
- branch master updated (0e20ed322d -> d67a3622ef), guix-commits, 2023/05/12
- 01/15: gnu: ribotaper: Simplify with G-expression., guix-commits, 2023/05/12
- 03/15: gnu: methyldackel: Simplify arguments., guix-commits, 2023/05/12
- 02/15: gnu: phast: Simplify by using G-expression., guix-commits, 2023/05/12
- 06/15: gnu: samblaster: Update to 0.1.26., guix-commits, 2023/05/12
- 04/15: gnu: methyldackel: Update to 0.6.1., guix-commits, 2023/05/12
- 07/15: gnu: multichoose: Clean up., guix-commits, 2023/05/12
- 08/15: gnu: arriba: Use SEARCH-INPUT-FILE and -DIRECTORY.,
guix-commits <=
- 11/15: gnu: python-seaborn: Simplify by using pyproject-build-system., guix-commits, 2023/05/12
- 12/15: gnu: python-pyproject-metadata: Simplify by using pyproject-build-system., guix-commits, 2023/05/12
- 14/15: gnu: python-orjson: Reuse phases from pyproject-build-system., guix-commits, 2023/05/12
- 09/15: gnu: jamm: Use G-expression., guix-commits, 2023/05/12
- 10/15: gnu: shrinkwrap: Use pyproject-build-system., guix-commits, 2023/05/12
- 15/15: gnu: python-orjson: Fix version string of Python module., guix-commits, 2023/05/12
- 05/15: gnu: samblaster: Simplify., guix-commits, 2023/05/12
- 13/15: gnu: python-canonicaljson: Use pyproject-build-system., guix-commits, 2023/05/12