diff options
| author | Efraim Flashner <efraim@flashner.co.il> | 2020-08-27 18:05:20 +0300 |
|---|---|---|
| committer | Efraim Flashner <efraim@flashner.co.il> | 2020-08-27 18:05:20 +0300 |
| commit | afa352223f103388ddbc2d7aae82949a561ec4e1 (patch) | |
| tree | 50bf673a19851fb0ad6faa2809e3d89d4c171ccc /gnu | |
| parent | 261bc778b6b7970937bda6996972f27f996be4bd (diff) | |
gnu: smithwaterman: Build and install shared library and headers.
* gnu/packages/bioinformatics.scm (smithwaterman)[arguments]: Add custom
phase to build PIE objects. Add custom 'build-dynamic phase to build
dynamic library. Adjust custom 'install phase to install shared library
and headers.
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/bioinformatics.scm | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/gnu/packages/bioinformatics.scm b/gnu/packages/bioinformatics.scm index 53778675b92..49122aa7142 100644 --- a/gnu/packages/bioinformatics.scm +++ b/gnu/packages/bioinformatics.scm | |||
| @@ -15454,12 +15454,29 @@ some of the details of opening and jumping in tabix-indexed files.") | |||
| 15454 | #:phases | 15454 | #:phases |
| 15455 | (modify-phases %standard-phases | 15455 | (modify-phases %standard-phases |
| 15456 | (delete 'configure) ; There is no configure phase. | 15456 | (delete 'configure) ; There is no configure phase. |
| 15457 | (add-after 'unpack 'patch-source | ||
| 15458 | (lambda _ | ||
| 15459 | (substitute* "Makefile" | ||
| 15460 | (("-c ") "-c -fPIC ")) | ||
| 15461 | #t)) | ||
| 15462 | (add-after 'build 'build-dynamic | ||
| 15463 | (lambda _ | ||
| 15464 | (invoke "g++" | ||
| 15465 | "-shared" "-o" "libsmithwaterman.so" | ||
| 15466 | "smithwaterman.o" "SmithWatermanGotoh.o" | ||
| 15467 | "disorder.o" "BandedSmithWaterman.o" | ||
| 15468 | "LeftAlign.o" "Repeats.o" "IndelAllele.o"))) | ||
| 15457 | (replace 'install | 15469 | (replace 'install |
| 15458 | (lambda* (#:key outputs #:allow-other-keys) | 15470 | (lambda* (#:key outputs #:allow-other-keys) |
| 15459 | (let* ((out (assoc-ref outputs "out")) | 15471 | (let* ((out (assoc-ref outputs "out")) |
| 15460 | (bin (string-append out "/bin")) | 15472 | (bin (string-append out "/bin")) |
| 15461 | (lib (string-append out "/lib"))) | 15473 | (lib (string-append out "/lib"))) |
| 15462 | (install-file "smithwaterman" bin) | 15474 | (install-file "smithwaterman" bin) |
| 15475 | (for-each | ||
| 15476 | (lambda (file) | ||
| 15477 | (install-file file (string-append out "/include/smithwaterman"))) | ||
| 15478 | (find-files "." "\\.h$")) | ||
| 15479 | (install-file "libsmithwaterman.so" lib) | ||
| 15463 | (install-file "libsw.a" lib)) | 15480 | (install-file "libsw.a" lib)) |
| 15464 | #t))))) | 15481 | #t))))) |
| 15465 | (home-page "https://github.com/ekg/smithwaterman") | 15482 | (home-page "https://github.com/ekg/smithwaterman") |
