From e6be42411b53bd4cb30587278fcb18429baf859b Mon Sep 17 00:00:00 2001 From: Boas van der Putten <32385917+boasvdp@users.noreply.github.com> Date: Tue, 25 Jun 2024 12:36:38 +0200 Subject: [PATCH] Add distle (#48689) * 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 --- recipes/distle/build.sh | 8 ++++++++ recipes/distle/meta.yaml | 38 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 recipes/distle/build.sh create mode 100644 recipes/distle/meta.yaml diff --git a/recipes/distle/build.sh b/recipes/distle/build.sh new file mode 100644 index 0000000000000..a8d1055b51f38 --- /dev/null +++ b/recipes/distle/build.sh @@ -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 . \ No newline at end of file diff --git a/recipes/distle/meta.yaml b/recipes/distle/meta.yaml new file mode 100644 index 0000000000000..1cfe3807ac8aa --- /dev/null +++ b/recipes/distle/meta.yaml @@ -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 \ No newline at end of file