summary refs log tree commit diff
path: root/gnu/packages/bioinformatics.scm
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2023-04-27 09:25:26 +0200
committerRicardo Wurmus <rekado@elephly.net>2023-04-27 09:25:26 +0200
commit9d82c475a3abfc16f2e03491a34672c35d9852fb (patch)
treecba65936cbeb7f70a26092d5bcc9e510ad6153d9 /gnu/packages/bioinformatics.scm
parentf196b3b7a53b94fb855cb2e5365468feedda750c (diff)
downloadguix-9d82c475a3abfc16f2e03491a34672c35d9852fb.tar.gz
gnu: express: Adjust bamtools location.
* gnu/packages/bioinformatics.scm (express)[arguments]: Modify location of
libbamtools.so in 'use-shared-boost-libs-and-set-bamtools-paths; drop trailing
 #T.
Diffstat (limited to 'gnu/packages/bioinformatics.scm')
-rw-r--r--gnu/packages/bioinformatics.scm42
1 files changed, 21 insertions, 21 deletions
diff --git a/gnu/packages/bioinformatics.scm b/gnu/packages/bioinformatics.scm
index ef84e65ed7..4b69342a3b 100644
--- a/gnu/packages/bioinformatics.scm
+++ b/gnu/packages/bioinformatics.scm
@@ -4584,27 +4584,27 @@ dynamic programming or a variety of heuristics.")
                 "18nb22n7x820fzjngf4qgyb3mspqkw7xyk7v7s5ps6wfrd8qwscb"))))
     (build-system cmake-build-system)
     (arguments
-     `(#:tests? #f ;no "check" target
-       #:phases
-       (modify-phases %standard-phases
-         (add-after 'unpack 'use-shared-boost-libs-and-set-bamtools-paths
-           (lambda* (#:key inputs #:allow-other-keys)
-             (substitute* "CMakeLists.txt"
-               (("set\\(Boost_USE_STATIC_LIBS ON\\)")
-                "set(Boost_USE_STATIC_LIBS OFF)")
-               (("\\$\\{CMAKE_CURRENT_SOURCE_DIR\\}/bamtools/include")
-                (string-append (assoc-ref inputs "bamtools") "/include/bamtools")))
-             (substitute* "src/CMakeLists.txt"
-               (("\\$\\{CMAKE_CURRENT_SOURCE_DIR\\}/\\.\\./bamtools/lib")
-                (string-append (assoc-ref inputs "bamtools") "/lib"))
-               (("libprotobuf.a") "libprotobuf.so"))
-             #t))
-         (add-after 'unpack 'remove-update-check
-           (lambda _
-             (substitute* "src/main.cpp"
-               (("#include \"update_check.h\"") "")
-               (("check_version\\(PACKAGE_VERSION\\);") ""))
-             #t)))))
+     (list
+      #:tests? #f                     ;no "check" target
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-after 'unpack 'use-shared-boost-libs-and-set-bamtools-paths
+            (lambda* (#:key inputs #:allow-other-keys)
+              (substitute* "CMakeLists.txt"
+                (("set\\(Boost_USE_STATIC_LIBS ON\\)")
+                 "set(Boost_USE_STATIC_LIBS OFF)")
+                (("\\$\\{CMAKE_CURRENT_SOURCE_DIR\\}/bamtools/include")
+                 (search-input-directory inputs "/include/bamtools"))
+                (("\\$\\{PROJECT_SOURCE_DIR\\}/bamtools/lib/libbamtools.a")
+                 (search-input-file inputs "/lib/libbamtools.so"))
+                (("libbamtools.a") "libbamtools.so"))
+              (substitute* "src/CMakeLists.txt"
+                (("libprotobuf.a") "libprotobuf.so"))))
+          (add-after 'unpack 'remove-update-check
+            (lambda _
+              (substitute* "src/main.cpp"
+                (("#include \"update_check.h\"") "")
+                (("check_version\\(PACKAGE_VERSION\\);") "")))))))
     (inputs
      (list boost bamtools protobuf zlib))
     (home-page "http://bio.math.berkeley.edu/eXpress")