Skip to content

Commit

Permalink
phasius: Update to 0.2.0 and add linux-aarch64 build (#52960)
Browse files Browse the repository at this point in the history
* phasius: Update to 0.2.0 and add linux-aarch64 build

Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>

* Reset the build number

* Fix the license files

* Update the download link

* Add clangdev as a build dependency

---------

Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>
  • Loading branch information
martin-g authored Dec 23, 2024
1 parent 89aad2d commit c79bc31
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 13 deletions.
11 changes: 6 additions & 5 deletions recipes/phasius/build.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
#!/bin/bash -euo
#!/bin/bash

set -xeuo

export CFLAGS="${CFLAGS} -fcommon"
export CXXFLAGS="${CFLAGS} -fcommon"

# Add workaround for SSH-based Git connections from Rust/cargo. See https://github.com/rust-lang/cargo/issues/2078 for details.
# We set CARGO_HOME because we don't pass on HOME to conda-build, thus rendering the default "${HOME}/.cargo" defunct.
export CARGO_NET_GIT_FETCH_WITH_CLI=true CARGO_HOME="$(pwd)/.cargo"
cargo-bundle-licenses --format yaml --output THIRDPARTY.yml

# build statically linked binary with Rust
export LD=$CC
C_INCLUDE_PATH=$PREFIX/include LIBRARY_PATH=$PREFIX/lib RUST_BACKTRACE=1 cargo install --verbose --root $PREFIX --path .
C_INCLUDE_PATH=$PREFIX/include LIBRARY_PATH=$PREFIX/lib RUST_BACKTRACE=1 cargo install --verbose --root $PREFIX --path . --no-track
26 changes: 18 additions & 8 deletions recipes/phasius/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,26 +1,30 @@
{% set version = "0.1.0" %}
{% set name = "phasius" %}
{% set version = "0.2.0" %}

package:
name: phasius
name: {{ name }}
version: {{ version }}

build:
number: 2
number: 0
skip: true # [osx]
# script: cargo install --path . --root ${PREFIX}
run_exports:
- {{ pin_subpackage(name, max_pin='x.x') }}

source:
url: https://github.com/wdecoster/phasius/archive/v{{ version }}d.tar.gz
sha256: fc210f31c06f5437264cabff9be785e708a293f945b9e865c2bd964fdb61f9c7
url: https://github.com/wdecoster/phasius/archive/refs/tags/v{{ version }}.tar.gz
sha256: a5b320303383b473661fccf7ec93f3b555b21d86d78d9cdaf5317cc9bcf3cb0e

requirements:
build:
- rust >=1.60
- autoconf
- make
- {{ compiler('rust') }}
- {{ compiler('cxx') }}
- pkg-config
- cmake
- cargo-bundle-licenses
- clangdev
host:
run:

Expand All @@ -32,5 +36,11 @@ test:
about:
home: https://github.com/wdecoster/phasius
license: MIT
license_file: LICENSE
license_file:
- LICENSE
- THIRDPARTY.yml
summary: A rust tool to create phase-block maps from phased cram/bam files

extra:
additional-platforms:
- linux-aarch64

0 comments on commit c79bc31

Please sign in to comment.