From 449ea3525c2fe96856e4f29f5482cac8107d00f2 Mon Sep 17 00:00:00 2001 From: Donald Campbell <125581724+donaldcampbelljr@users.noreply.github.com> Date: Mon, 13 Jan 2025 13:29:55 -0500 Subject: [PATCH 1/7] initial addition of gtars crate --- recipes/gtars/build.sh | 10 +++++++++ recipes/gtars/meta.yaml | 46 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 recipes/gtars/build.sh create mode 100644 recipes/gtars/meta.yaml diff --git a/recipes/gtars/build.sh b/recipes/gtars/build.sh new file mode 100644 index 0000000000000..d969e12504713 --- /dev/null +++ b/recipes/gtars/build.sh @@ -0,0 +1,10 @@ +#!/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 \ No newline at end of file diff --git a/recipes/gtars/meta.yaml b/recipes/gtars/meta.yaml new file mode 100644 index 0000000000000..6cae8e2d9f0b1 --- /dev/null +++ b/recipes/gtars/meta.yaml @@ -0,0 +1,46 @@ +{% set version = "0.1.1" %} +{% set name = "rust-gtars" %} + +package: + name: {{ name }} + version: {{ version }} + +source: + url: https://github.com/databio/gtars/archive/v{{ version }}.tar.gz + sha256: 6566794fa50286524f616fe0913ada9ad52a32955eaffb8f702b404dd867a48f + +build: + number: 0 + run_exports: + - {{ pin_subpackage(name, max_pin="x.x") }} + script: + - cargo-bundle-licenses --format yaml --output THIRDPARTY.yml + - cargo install -v --locked --no-track --root $PREFIX --path . + +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 + - THIRDPARTY.yml # this file is generated by cargo-bundle-licenses + 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 \ No newline at end of file From 869538feff8212aae7c76ce00b37ef9b6bbcdff2 Mon Sep 17 00:00:00 2001 From: Donald Campbell <125581724+donaldcampbelljr@users.noreply.github.com> Date: Mon, 13 Jan 2025 13:55:29 -0500 Subject: [PATCH 2/7] update version, fix usernames --- recipes/gtars/meta.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/recipes/gtars/meta.yaml b/recipes/gtars/meta.yaml index 6cae8e2d9f0b1..2f22c69ba567c 100644 --- a/recipes/gtars/meta.yaml +++ b/recipes/gtars/meta.yaml @@ -1,4 +1,4 @@ -{% set version = "0.1.1" %} +{% set version = "0.2.0" %} {% set name = "rust-gtars" %} package: @@ -7,7 +7,7 @@ package: source: url: https://github.com/databio/gtars/archive/v{{ version }}.tar.gz - sha256: 6566794fa50286524f616fe0913ada9ad52a32955eaffb8f702b404dd867a48f + sha256: 21e3586bd7214e2e515c0b7455e36f1f4ff59e8b4ff07182dfb535a1c509ecf7 build: number: 0 @@ -39,8 +39,8 @@ about: extra: recipe-maintainers: - - @donaldcampbelljr # your GitHub username - - @nleroy917 - - @khoroshevskyi + - donaldcampbelljr # your GitHub username + - nleroy917 + - khoroshevskyi additional-platforms: - osx-arm64 \ No newline at end of file From af5a0148713c82d9a807bba3b208d2d6b1d42226 Mon Sep 17 00:00:00 2001 From: Donald Campbell <125581724+donaldcampbelljr@users.noreply.github.com> Date: Mon, 13 Jan 2025 14:00:33 -0500 Subject: [PATCH 3/7] change folder name to match package name --- recipes/{gtars => rust-gtars}/build.sh | 0 recipes/{gtars => rust-gtars}/meta.yaml | 0 2 files changed, 0 insertions(+), 0 deletions(-) rename recipes/{gtars => rust-gtars}/build.sh (100%) rename recipes/{gtars => rust-gtars}/meta.yaml (100%) diff --git a/recipes/gtars/build.sh b/recipes/rust-gtars/build.sh similarity index 100% rename from recipes/gtars/build.sh rename to recipes/rust-gtars/build.sh diff --git a/recipes/gtars/meta.yaml b/recipes/rust-gtars/meta.yaml similarity index 100% rename from recipes/gtars/meta.yaml rename to recipes/rust-gtars/meta.yaml From 45d1b8d1ae07445e3b1dfca59825df3f48eabc00 Mon Sep 17 00:00:00 2001 From: Donald Campbell <125581724+donaldcampbelljr@users.noreply.github.com> Date: Mon, 13 Jan 2025 14:41:59 -0500 Subject: [PATCH 4/7] remove script and thirdparty --- recipes/rust-gtars/meta.yaml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/recipes/rust-gtars/meta.yaml b/recipes/rust-gtars/meta.yaml index 2f22c69ba567c..88a89481d6288 100644 --- a/recipes/rust-gtars/meta.yaml +++ b/recipes/rust-gtars/meta.yaml @@ -13,9 +13,6 @@ build: number: 0 run_exports: - {{ pin_subpackage(name, max_pin="x.x") }} - script: - - cargo-bundle-licenses --format yaml --output THIRDPARTY.yml - - cargo install -v --locked --no-track --root $PREFIX --path . requirements: build: @@ -34,7 +31,6 @@ about: license: BSD-2-Clause # please use https://spdx.org identifiers license_file: - LICENSE # the license file for your package - - THIRDPARTY.yml # this file is generated by cargo-bundle-licenses summary: Performance-critical tools to manipulate, analyze, and process genomic interval data. extra: From 580b7b61a5bf7f8638ee6a7e06f45b9083ae6a67 Mon Sep 17 00:00:00 2001 From: Donald Campbell <125581724+donaldcampbelljr@users.noreply.github.com> Date: Mon, 13 Jan 2025 14:42:29 -0500 Subject: [PATCH 5/7] separate lines in build.sh --- recipes/rust-gtars/build.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/recipes/rust-gtars/build.sh b/recipes/rust-gtars/build.sh index d969e12504713..544a2a5e9370d 100644 --- a/recipes/rust-gtars/build.sh +++ b/recipes/rust-gtars/build.sh @@ -7,4 +7,5 @@ if [ "$(uname)" == "Darwin" ]; then fi # build statically linked binary with Rust -RUST_BACKTRACE=1 cargo install --no-track --verbose --root "${PREFIX}" --path \ No newline at end of file +RUST_BACKTRACE=1 +cargo install --no-track --verbose --root "${PREFIX}" --path \ No newline at end of file From 81ad89c614bb6837b584bf5f78e276bd72361d04 Mon Sep 17 00:00:00 2001 From: Donald Campbell <125581724+donaldcampbelljr@users.noreply.github.com> Date: Mon, 13 Jan 2025 14:49:44 -0500 Subject: [PATCH 6/7] fix path in build.sh --- recipes/rust-gtars/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes/rust-gtars/build.sh b/recipes/rust-gtars/build.sh index 544a2a5e9370d..5098d081eab2d 100644 --- a/recipes/rust-gtars/build.sh +++ b/recipes/rust-gtars/build.sh @@ -8,4 +8,4 @@ fi # build statically linked binary with Rust RUST_BACKTRACE=1 -cargo install --no-track --verbose --root "${PREFIX}" --path \ No newline at end of file +cargo install --no-track --verbose --root "${PREFIX}" --path . \ No newline at end of file From 505f71deba0bf87b48ff930f9b04bc2c4125f1f5 Mon Sep 17 00:00:00 2001 From: Donald Campbell <125581724+donaldcampbelljr@users.noreply.github.com> Date: Mon, 13 Jan 2025 15:44:12 -0500 Subject: [PATCH 7/7] change path --- recipes/rust-gtars/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes/rust-gtars/build.sh b/recipes/rust-gtars/build.sh index 5098d081eab2d..ca9b4236e6326 100644 --- a/recipes/rust-gtars/build.sh +++ b/recipes/rust-gtars/build.sh @@ -8,4 +8,4 @@ fi # build statically linked binary with Rust RUST_BACKTRACE=1 -cargo install --no-track --verbose --root "${PREFIX}" --path . \ No newline at end of file +cargo install --no-track --verbose --root "${PREFIX}" --path ./gtars \ No newline at end of file