Skip to content

Commit

Permalink
Building pblat for more platforms (#51890)
Browse files Browse the repository at this point in the history
* Building pblat for more platforms

* Add run_exports

* Fix typo in run_export

* pblat: Add a patch to support linux-aarch64

Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>

---------

Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
Co-authored-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
  • Loading branch information
druvus and martin-g authored Nov 21, 2024
1 parent 6e64a59 commit f5d4c05
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
9 changes: 8 additions & 1 deletion recipes/pblat/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,13 @@ package:
source:
url: https://github.com/icebert/pblat/archive/{{ version }}.tar.gz
sha256: e85a4d752b8e159502d529f0f9e47579851a6b466b6c2f1f4d49f598642bc615
patches:
- pblat-aarch64.patch # [aarch64]

build:
number: 2
number: 3
run_exports:
- {{ pin_subpackage("pblat", max_pin="x.x") }}

requirements:
build:
Expand All @@ -34,6 +38,9 @@ about:
dev_url: https://github.com/icebert/pblat

extra:
additional-platforms:
- linux-aarch64
- osx-arm64
notes: "pblat is modified from blat, the licence is the same as blat. The source code and executables are freely available for academic, nonprofit and personal use. Commercial licensing information is available on the Kent Informatics website. To cite: Wang M & Kong L. pblat: a multithread blat algorithm speeding up aligning sequences to genomes. BMC Bioinformatics 2019, 20(1)."
identifiers:
- biotools:pblat
Expand Down
13 changes: 13 additions & 0 deletions recipes/pblat/pblat-aarch64.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git i/lib/htmshell.c w/lib/htmshell.c
index 46d1f19..5ea164e 100644
--- i/lib/htmshell.c
+++ w/lib/htmshell.c
@@ -711,7 +711,7 @@ void htmlVaBadRequestAbort(char *format, va_list args)
puts("Status: 400\r");
puts("Content-Type: text/plain; charset=UTF-8\r");
puts("\r");
-if (format != NULL && args != NULL)
+if (format != NULL)
{
vfprintf(stdout, format, args);
fprintf(stdout, "\n");

0 comments on commit f5d4c05

Please sign in to comment.