Skip to content

Commit

Permalink
get_mnv: add aarch64/arm64 builds (#51190)
Browse files Browse the repository at this point in the history
* get_mnv: add aarch64/arm64 builds

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

* get_mnv: Use newer version of rust-htslib for ARM64 support

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

* Add host dependency for libclang, for linux-aarch64

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

* Export LIBCLANG_PATH for Linux ARM64

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

* Replace libclang with clangdev

---------

Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
  • Loading branch information
martin-g authored Oct 8, 2024
1 parent 9e3e600 commit d894556
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 4 deletions.
11 changes: 11 additions & 0 deletions recipes/get_mnv/get_mnv-aarch64.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- Cargo.toml.orig 2024-10-07 11:42:31.332000000 +0000
+++ Cargo.toml 2024-10-07 11:40:19.716000000 +0000
@@ -12,7 +12,7 @@
clap = { version = "4.0.32", features = ["derive"] }
env_logger = "0.10"
log = "0.4"
-rust-htslib = { version = "0.37.0", default-features = false, features = ["static"] }
+rust-htslib = { version = "0.47.0", default-features = false, features = ["static"] }
serde = { version = "1.0", features = ["derive"] }
csv = "1.1"
protein-translate = "0.2.0"
16 changes: 12 additions & 4 deletions recipes/get_mnv/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,13 @@ package:
source:
url: "https://github.com/PathoGenOmics-Lab/{{ name }}/archive/refs/tags/{{ version }}.tar.gz"
sha256: "{{ sha256 }}"
patches:
- get_mnv-aarch64.patch # [aarch64]

build:
number: 0
number: 1
script: |
set -xe
export LANG=C.UTF-8
export LC_ALL=C.UTF-8
export RUST_BACKTRACE=1
Expand All @@ -25,6 +28,8 @@ build:
#export CARGO_NET_OFFLINE=true
export HTS_LIB_DIR=$PREFIX/lib
export HTS_INCLUDE_DIR=$PREFIX/include
export LIBCLANG_PATH=$PREFIX/lib # [linux and aarch64]
export CPLUS_INCLUDE_PATH=$PREFIX/include # [linux and aarch64]
export HTS_STATIC=1
export HTS_SYS_BUNDLED=0
cargo install --no-track --locked --verbose --root "${PREFIX}" --path .
Expand All @@ -34,15 +39,15 @@ build:
requirements:
build:
- {{ compiler('rust') }}

- pkg-config
host:
- openssl
- curl
- pkg-config
- htslib
- bzip2
- xz
- zlib
- clangdev >=16,<17 # [linux and aarch64]

run:
- {{ pin_compatible('openssl') }}
Expand All @@ -59,7 +64,7 @@ test:

about:
home: "https://github.com/PathoGenOmics-Lab/get_mnv"
license: "GPL-3.0"
license: "GPL-3.0-or-later"
license_family: GPL3
license_file: LICENSE
summary: "Tool to identify Multi-Nucleotide Variants (MNVs) in genomic sequences."
Expand All @@ -69,6 +74,9 @@ about:
dev_url: "https://github.com/PathoGenOmics-Lab/get_mnv"

extra:
additional-platforms:
- linux-aarch64
- osx-arm64
recipe-maintainers:
- PathoGenOmics-Lab
categories:
Expand Down

0 comments on commit d894556

Please sign in to comment.