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

Add gtars crate #53201

Merged
merged 7 commits into from
Jan 13, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
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: 11 additions & 0 deletions recipes/rust-gtars/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash

set -xeuo

if [ "$(uname)" == "Darwin" ]; then
export HOME=`pwd`
fi

# build statically linked binary with Rust
RUST_BACKTRACE=1
cargo install --no-track --verbose --root "${PREFIX}" --path ./gtars
42 changes: 42 additions & 0 deletions recipes/rust-gtars/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{% set version = "0.2.0" %}
{% set name = "rust-gtars" %}

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

source:
url: https://github.com/databio/gtars/archive/v{{ version }}.tar.gz
sha256: 21e3586bd7214e2e515c0b7455e36f1f4ff59e8b4ff07182dfb535a1c509ecf7

build:
number: 0
run_exports:
- {{ pin_subpackage(name, max_pin="x.x") }}

requirements:
build:
- {{ compiler('rust') }}
- cargo-bundle-licenses
# - {{ compiler('c') }} add these C/C++ compilers if needed
# - {{ compiler('cxx') }}

test:
commands:
- gtars --version

about:
home: https://github.com/databio/gtars
doc_url: "https://docs.rs/crate/gtars/{{ version }}"
license: BSD-2-Clause # please use https://spdx.org identifiers
license_file:
- LICENSE # the license file for your package
summary: Performance-critical tools to manipulate, analyze, and process genomic interval data.

extra:
recipe-maintainers:
- donaldcampbelljr # your GitHub username
- nleroy917
- khoroshevskyi
additional-platforms:
- osx-arm64