From eec896a6e7becd04e91ea14e70e39d162aa157f5 Mon Sep 17 00:00:00 2001 From: Jayaram Radhakrishnan Date: Wed, 30 Oct 2024 12:31:08 +0400 Subject: [PATCH 1/5] install_rotate_1.0 --- recipes/rotate/meta.yaml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 recipes/rotate/meta.yaml diff --git a/recipes/rotate/meta.yaml b/recipes/rotate/meta.yaml new file mode 100644 index 0000000000000..8f35476ccf607 --- /dev/null +++ b/recipes/rotate/meta.yaml @@ -0,0 +1,33 @@ +{% set name = "rotate" %} +{% set version = "1.0" %} + +package: + name: "{{ name|lower }}" + version: "{{ version }}" + +source: + url: "https://github.com/richarddurbin/{{ name }}/archive/refs/tags/v{{ version }}.tar.gz" + sha256: "da8a3c848cc05d59b579c375824008dd2d533c28d8a436a6e4761312d2152906" + +build: + number: 0 + run_exports: + - {{ pin_subpackage("rotate", max_pin="x") }} + +requirements: + build: + - make + - {{ compiler('cxx') }} + host: + run: + +test: + commands: + - rotate 2>&1 | grep can + +about: + home: "https://github.com/richarddurbin/rotate" + license: MIT + license_family: MIT + license_file: LICENSE + summary: "Simple program to rotate a circular sequence to start at a given position or string." From 24a4f573828e517313a5c236f783dbe67b2e4c76 Mon Sep 17 00:00:00 2001 From: Jayaram Radhakrishnan Date: Wed, 30 Oct 2024 14:35:32 +0400 Subject: [PATCH 2/5] install_rotate_1.0 --- recipes/rotate/build.sh | 7 +++++++ recipes/rotate/meta.yaml | 6 +++++- 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 recipes/rotate/build.sh diff --git a/recipes/rotate/build.sh b/recipes/rotate/build.sh new file mode 100644 index 0000000000000..5c030d5e0f3a9 --- /dev/null +++ b/recipes/rotate/build.sh @@ -0,0 +1,7 @@ +#!/bin/bash +set -xe +make CC=$CC INCLUDES="-I$PREFIX/include" CFLAGS+="-g -Wall -O2 -L$PREFIX/lib" +chmod +x rotate +chmod +x composition +mkdir -p ${PREFIX}/bin +cp -f rotate composition ${PREFIX}/bin diff --git a/recipes/rotate/meta.yaml b/recipes/rotate/meta.yaml index 8f35476ccf607..afb586639b099 100644 --- a/recipes/rotate/meta.yaml +++ b/recipes/rotate/meta.yaml @@ -17,9 +17,13 @@ build: requirements: build: - make - - {{ compiler('cxx') }} + - {{ compiler('c') }} host: + - zlib run: + - zlib + - make + test: commands: From 303f04514ba81e6a566e277530bef6cce68685b8 Mon Sep 17 00:00:00 2001 From: Jayaram Radhakrishnan <97015642+jayramr@users.noreply.github.com> Date: Thu, 31 Oct 2024 09:04:18 +0400 Subject: [PATCH 3/5] Update meta.yaml remove make from the run field. --- recipes/rotate/meta.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/recipes/rotate/meta.yaml b/recipes/rotate/meta.yaml index afb586639b099..78dcc2fb8733b 100644 --- a/recipes/rotate/meta.yaml +++ b/recipes/rotate/meta.yaml @@ -22,7 +22,6 @@ requirements: - zlib run: - zlib - - make test: From 9d15a1087437e5b19cac7678ea74c642c25820b7 Mon Sep 17 00:00:00 2001 From: Jayaram Radhakrishnan <97015642+jayramr@users.noreply.github.com> Date: Mon, 4 Nov 2024 09:20:35 +0400 Subject: [PATCH 4/5] Update recipes/rotate/meta.yaml MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Yes for running zlib not required. Hence proceeding with this commit Co-authored-by: Björn Grüning --- recipes/rotate/meta.yaml | 2 -- 1 file changed, 2 deletions(-) diff --git a/recipes/rotate/meta.yaml b/recipes/rotate/meta.yaml index 78dcc2fb8733b..7adc478bc8912 100644 --- a/recipes/rotate/meta.yaml +++ b/recipes/rotate/meta.yaml @@ -20,8 +20,6 @@ requirements: - {{ compiler('c') }} host: - zlib - run: - - zlib test: From 4fb9e764ed6064cd7a8dda03fda8249290504335 Mon Sep 17 00:00:00 2001 From: Jayaram Radhakrishnan <97015642+jayramr@users.noreply.github.com> Date: Mon, 4 Nov 2024 11:58:57 +0400 Subject: [PATCH 5/5] Update meta.yaml --- recipes/rotate/meta.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes/rotate/meta.yaml b/recipes/rotate/meta.yaml index 7adc478bc8912..1b9ef48f14fe2 100644 --- a/recipes/rotate/meta.yaml +++ b/recipes/rotate/meta.yaml @@ -24,7 +24,7 @@ requirements: test: commands: - - rotate 2>&1 | grep can + - rotate about: home: "https://github.com/richarddurbin/rotate"