summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2020-08-27 18:08:13 +0300
committerEfraim Flashner <efraim@flashner.co.il>2020-08-27 18:08:13 +0300
commitf075bf09bda9f7b146a600c6c6ebbbbf72c3cf13 (patch)
treef4746e76fa93518be6ee177fba3fbac7df9f8125 /gnu
parent5c789971881a536e98dd466717c709f9ce77498b (diff)
gnu: fastahack: Build and install shared library and headers.
* gnu/packages/bioinformatics.scm (fastahack)[arguments]: Add phase to build PIE objects. Add custom 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.scm22
1 files changed, 20 insertions, 2 deletions
diff --git a/gnu/packages/bioinformatics.scm b/gnu/packages/bioinformatics.scm
index c1885006207..092ecf147ac 100644
--- a/gnu/packages/bioinformatics.scm
+++ b/gnu/packages/bioinformatics.scm
@@ -15582,10 +15582,28 @@ neural networks.")
15582 #:phases 15582 #:phases
15583 (modify-phases %standard-phases 15583 (modify-phases %standard-phases
15584 (delete 'configure) ; There is no configure phase. 15584 (delete 'configure) ; There is no configure phase.
15585 (add-after 'unpack 'patch-source
15586 (lambda _
15587 (substitute* "Makefile"
15588 (("-c ") "-c -fPIC "))
15589 #t))
15590 (add-after 'build 'build-dynamic
15591 (lambda _
15592 (invoke "g++"
15593 "-shared" "-o" "libfastahack.so"
15594 "Fasta.o" "FastaHack.o" "split.o" "disorder.o")))
15585 (replace 'install 15595 (replace 'install
15586 (lambda* (#:key outputs #:allow-other-keys) 15596 (lambda* (#:key outputs #:allow-other-keys)
15587 (let ((bin (string-append (assoc-ref outputs "out") "/bin"))) 15597 (let* ((out (assoc-ref outputs "out"))
15588 (install-file "fastahack" bin)) 15598 (lib (string-append out "/lib"))
15599 (bin (string-append out "/bin")))
15600 (mkdir-p (string-append out "/include/fastahack"))
15601 (for-each
15602 (lambda (file)
15603 (install-file file (string-append out "/include/fastahack")))
15604 (find-files "." "\\.h$"))
15605 (install-file "fastahack" bin)
15606 (install-file "libfastahack.so" lib))
15589 #t))))) 15607 #t)))))
15590 (home-page "https://github.com/ekg/fastahack") 15608 (home-page "https://github.com/ekg/fastahack")
15591 (synopsis "Indexing and sequence extraction from FASTA files") 15609 (synopsis "Indexing and sequence extraction from FASTA files")