File: use_blastdb_format_4.patch

package info (click to toggle)
metastudent-data 2.0.1-9
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 689,312 kB
  • sloc: sh: 494; makefile: 26
file content (19 lines) | stat: -rw-r--r-- 826 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Description: Enforce BLASTDB version 4 format
  see https://lists.debian.org/debian-med/2021/02/msg00052.html
      (second of the suggested options)
  and https://lists.debian.org/debian-med/2021/02/msg00097.html
Bug-Debian: https://bugs.debian.org/981293
Author: Andreas Tille <tille@debian.org>
Last-Update: Tue, 16 Feb 2021 09:07:36 +0100

--- a/Makefile.am
+++ b/Makefile.am
@@ -21,7 +21,7 @@ install-data-local:
 # BLAST databases are architecture dependent and have to be installed in pkgdatadir
 $(BLASTDB) : %.fasta.psq : $(srcdir)/%.fasta
 	mkdir -p $(dir $@) && \
-		formatdb -p T -i "$<" -n "$(@:.psq=)" && rm -f formatdb.log
+		makeblastdb -dbtype prot -in "$<" -out "$(@:.psq=)" -blastdb_version 4
 
 dist-hook:
 	find "$(distdir)" -name .svn -o -name '*.phr' -o -name '*.pin' -o -name '*.psq' | xargs rm -rf --