Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

phasius: Update to 0.2.0 and add linux-aarch64 build #52960

Merged
merged 5 commits into from
Dec 23, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
23 changes: 16 additions & 7 deletions recipes/phasius/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,26 +1,29 @@
{% set version = "0.1.0" %}
{% set name = "phasius" %}
{% set version = "0.2.0" %}

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

build:
number: 2
number: 3
skip: true # [osx]
martin-g marked this conversation as resolved.
Show resolved Hide resolved
# 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
sha256: a5b320303383b473661fccf7ec93f3b555b21d86d78d9cdaf5317cc9bcf3cb0e

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

Expand All @@ -31,6 +34,12 @@ test:

about:
home: https://github.com/wdecoster/phasius
license: MIT
license:
- MIT
- THIRDPARTY.yml
license_file: LICENSE
summary: A rust tool to create phase-block maps from phased cram/bam files

extra:
additional-platforms:
- linux-aarch64
Loading