Skip to content

Commit

Permalink
Add distle (bioconda#48689)
Browse files Browse the repository at this point in the history
* add distle

* add maintainers

* fix

* Apply suggestions from code review

* Add license_family

* The license_file is not included in the sources tarball

* add license file

---------

Co-authored-by: Martin Grigorov <martin-g@users.noreply.github.com>
  • Loading branch information
boasvdp and martin-g authored Jun 25, 2024
1 parent 2b96a79 commit e6be424
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
8 changes: 8 additions & 0 deletions recipes/distle/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash -e

# 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"

# build statically linked binary with Rust
RUST_BACKTRACE=1 C_INCLUDE_PATH=$PREFIX/include LIBRARY_PATH=$PREFIX/lib cargo install --verbose --root $PREFIX --path .
38 changes: 38 additions & 0 deletions recipes/distle/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{% set version = "0.1.1" %}
{% set sha256 = "fd637102b8d305a50e76c3b2e8a88ffaa417a861ec23704c39902e5423a2e20e" %}

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

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

source:
url: https://github.com/KHajji/distle/archive/v{{ version }}.tar.gz
sha256: {{ sha256 }}

requirements:
build:
- {{ compiler("rust") }}
- {{ compiler('c') }}

test:
commands:
- distle --help
- distle --version

about:
home: https://github.com/KHajji/distle
license: GPL-3.0-only
license_file: LICENSE
license_family: GPL3
summary: "Fast distance matrix calculations on fasta and cgmlst files"

extra:
recipe-maintainers:
- khajji
- boasvdp
- ids-bioinformatics

0 comments on commit e6be424

Please sign in to comment.