From 484e3f10d4a8342aa1e8bd1a1c3ff1a24f9fdde5 Mon Sep 17 00:00:00 2001 From: danielnachun Date: Wed, 24 Jul 2024 22:04:34 -0700 Subject: [PATCH 01/17] add spr --- recipes/spr/bld.bat | 13 +++++++++++++ recipes/spr/build.sh | 14 ++++++++++++++ recipes/spr/meta.yaml | 35 +++++++++++++++++++++++++++++++++++ 3 files changed, 62 insertions(+) create mode 100644 recipes/spr/bld.bat create mode 100755 recipes/spr/build.sh create mode 100755 recipes/spr/meta.yaml diff --git a/recipes/spr/bld.bat b/recipes/spr/bld.bat new file mode 100644 index 0000000000000..dfd4a96d144e7 --- /dev/null +++ b/recipes/spr/bld.bat @@ -0,0 +1,13 @@ +:: check licenses +cargo-bundle-licenses ^ + --format yaml ^ + --output THIRDPARTY.yml || goto :error + +:: build statically linked binary with Rust +cargo install --no-target --locked --root %LIBRARY_PREFIX% --path spr || goto :error + +goto :EOF + +:error +echo Failed with error #%errorlevel%. +exit 1 diff --git a/recipes/spr/build.sh b/recipes/spr/build.sh new file mode 100755 index 0000000000000..46892c12c7fef --- /dev/null +++ b/recipes/spr/build.sh @@ -0,0 +1,14 @@ +#!/usr/bin/env bash + +set -o xtrace -o nounset -o pipefail -o errexit + +# check licenses +cargo-bundle-licenses \ + --format yaml \ + --output THIRDPARTY.yml + +# build statically linked binary with Rust +cargo install --no-target --locked --root ${PREFIX} --path spr + +# strip debug symbols +"$STRIP" "$PREFIX/bin/${PKG_NAME}" diff --git a/recipes/spr/meta.yaml b/recipes/spr/meta.yaml new file mode 100755 index 0000000000000..9332001b3a1c8 --- /dev/null +++ b/recipes/spr/meta.yaml @@ -0,0 +1,35 @@ +{% set name = "spr" %} +{% set version = "1.3.5" %} + +package: + name: {{ name|lower }} + version: {{ version }} + +source: + url: https://github.com/getcord/{{ name }}/archive/refs/tags/v{{ version }}.tar.gz + sha256: d1f53f4222fd9916c9edc0457bfe04bac66d9ff60a7c0e7a0c4519317c3f3fb8 + +build: + number: 0 + +requirements: + build: + - {{ compiler('rust') }} + - {{ compiler('c') }} + - {{ stdlib('c') }} + - cargo-bundle-licenses + +test: + commands: + - {{ name }} --help + +about: + home: https://github.com/getcord/{{ name }} + license: MIT + license_file: LICENSE + summary: Submit pull requests for individual, amendable, rebaseable commits to GitHub + dev_url: https://github.com/getcord/{{ name }} + +extra: + recipe-maintainers: + - danielnachun From 2424cbe07d4adcb72ad9ab8d82f65835c1497dec Mon Sep 17 00:00:00 2001 From: danielnachun Date: Wed, 24 Jul 2024 22:06:36 -0700 Subject: [PATCH 02/17] add flint --- recipes/flint/bld.bat | 14 ++++++++++++++ recipes/flint/build.sh | 12 ++++++++++++ recipes/flint/meta.yaml | 35 +++++++++++++++++++++++++++++++++++ 3 files changed, 61 insertions(+) create mode 100755 recipes/flint/bld.bat create mode 100755 recipes/flint/build.sh create mode 100755 recipes/flint/meta.yaml diff --git a/recipes/flint/bld.bat b/recipes/flint/bld.bat new file mode 100755 index 0000000000000..e66a96fbbd20d --- /dev/null +++ b/recipes/flint/bld.bat @@ -0,0 +1,14 @@ +set GOPROXY=https://proxy.golang.org +go mod init flint +go mod edit -replace github.com/codegangsta/cli=github.com/urfave/cli@v1 +go mod tidy +go mod vendor + +go build -buildmode=pie -trimpath -o=%LIBRARY_PREFIX%\bin\%PKG_NAME%.exe -ldflags="-s" || goto :error +go-licenses save . --save_path=license-files || goto :error + +goto :EOF + +:error +echo Failed with error #%errorlevel%. +exit 1 diff --git a/recipes/flint/build.sh b/recipes/flint/build.sh new file mode 100755 index 0000000000000..600438ee0c575 --- /dev/null +++ b/recipes/flint/build.sh @@ -0,0 +1,12 @@ +#!/usr/bin/env bash + +set -o xtrace -o nounset -o pipefail -o errexit + +export GOPROXY=https://proxy.golang.org +go mod init flint +go mod edit -replace github.com/codegangsta/cli=github.com/urfave/cli@v1 +go mod tidy +go mod vendor + +go build -buildmode=pie -trimpath -o=${PREFIX}/bin/${PKG_NAME} -ldflags="-s -w" +go-licenses save . --save_path=license-files diff --git a/recipes/flint/meta.yaml b/recipes/flint/meta.yaml new file mode 100755 index 0000000000000..a816f1c561497 --- /dev/null +++ b/recipes/flint/meta.yaml @@ -0,0 +1,35 @@ +{% set name = "flint" %} +{% set version = "0.1.0" %} + +package: + name: {{ name|lower }} + version: {{ version }} + +source: + url: https://github.com/pengwynn/{{ name }}/archive/v{{ version }}.tar.gz + sha256: ec865ec5cad191c7fc9c7c6d5007754372696a708825627383913367f3ef8b7f + +build: + number: 0 + +requirements: + build: + - {{ compiler('go-nocgo') }} + - go-licenses + +test: + commands: + - {{ name }} --help + +about: + home: https://github.com/pengwynn/{{ name }} + license: MIT + license_file: + - LICENSE.md + - license-files/ + summary: Check your project for common sources of contributor friction + dev_url: https://github.com/pengwynn/{{ name }} + +extra: + recipe-maintainers: + - danielnachun From b6d5d2e0678fd91ebc0cf11197657fc386e3e47d Mon Sep 17 00:00:00 2001 From: danielnachun Date: Wed, 24 Jul 2024 22:08:24 -0700 Subject: [PATCH 03/17] add git-hound --- recipes/git-hound/bld.bat | 8 ++++++++ recipes/git-hound/build.sh | 6 ++++++ recipes/git-hound/meta.yaml | 35 +++++++++++++++++++++++++++++++++++ 3 files changed, 49 insertions(+) create mode 100755 recipes/git-hound/bld.bat create mode 100755 recipes/git-hound/build.sh create mode 100755 recipes/git-hound/meta.yaml diff --git a/recipes/git-hound/bld.bat b/recipes/git-hound/bld.bat new file mode 100755 index 0000000000000..0a6bb16a59e3c --- /dev/null +++ b/recipes/git-hound/bld.bat @@ -0,0 +1,8 @@ +go build -buildmode=pie -trimpath -o=%LIBRARY_PREFIX%\bin\%PKG_NAME%.exe -ldflags="-s" || goto :error +go-licenses save . --save_path=license-files || goto :error + +goto :EOF + +:error +echo Failed with error #%errorlevel%. +exit 1 diff --git a/recipes/git-hound/build.sh b/recipes/git-hound/build.sh new file mode 100755 index 0000000000000..4f5499d6ddcd2 --- /dev/null +++ b/recipes/git-hound/build.sh @@ -0,0 +1,6 @@ +#!/usr/bin/env bash + +set -o xtrace -o nounset -o pipefail -o errexit + +go build -buildmode=pie -trimpath -o=${PREFIX}/bin/${PKG_NAME} -ldflags="-s -w" +go-licenses save . --save_path=license-files diff --git a/recipes/git-hound/meta.yaml b/recipes/git-hound/meta.yaml new file mode 100755 index 0000000000000..dea496c5cee9a --- /dev/null +++ b/recipes/git-hound/meta.yaml @@ -0,0 +1,35 @@ +{% set name = "git-hound" %} +{% set version = "1.7.2" %} + +package: + name: {{ name|lower }} + version: {{ version }} + +source: + url: https://github.com/tillson/{{ name }}/archive/v{{ version }}.tar.gz + sha256: db285484c1377807e5f7d38bfad32e0ae547839c61e043ba74bf20f536246a33 + +build: + number: 0 + +requirements: + build: + - {{ compiler('go-nocgo') }} + - go-licenses + +test: + commands: + - {{ name }} --help + +about: + home: https://github.com/tillson/{{ name }} + license: MIT + license_file: + - LICENSE + - license-files/ + summary: Git plugin that prevents sensitive data from being committed. + dev_url: https://github.com/tillson/{{ name }} + +extra: + recipe-maintainers: + - danielnachun From 19df0a4a02288714865708685ceba4e37511bd86 Mon Sep 17 00:00:00 2001 From: danielnachun Date: Wed, 24 Jul 2024 22:10:06 -0700 Subject: [PATCH 04/17] add lefthook --- recipes/lefthook/bld.bat | 8 ++++++++ recipes/lefthook/build.sh | 13 +++++++++++++ recipes/lefthook/meta.yaml | 35 +++++++++++++++++++++++++++++++++++ 3 files changed, 56 insertions(+) create mode 100755 recipes/lefthook/bld.bat create mode 100755 recipes/lefthook/build.sh create mode 100755 recipes/lefthook/meta.yaml diff --git a/recipes/lefthook/bld.bat b/recipes/lefthook/bld.bat new file mode 100755 index 0000000000000..11318fbfd72bd --- /dev/null +++ b/recipes/lefthook/bld.bat @@ -0,0 +1,8 @@ +go build -trimpath -buildmode=pie -o=%LIBRARY_PREFIX%\bin\%PKG_NAME%.exe -ldflags="-s" || goto :error +go-licenses save . --save_path=license-files || goto :error + +goto :EOF + +:error +echo Failed with error #%errorlevel%. +exit 1 diff --git a/recipes/lefthook/build.sh b/recipes/lefthook/build.sh new file mode 100755 index 0000000000000..19f4bd9432e0a --- /dev/null +++ b/recipes/lefthook/build.sh @@ -0,0 +1,13 @@ +#!/usr/bin/env bash + +set -o xtrace -o nounset -o pipefail -o errexit + +go build -trimpath -buildmode=pie -o=${PREFIX}/bin/${PKG_NAME} -ldflags="-s -w" +go-licenses save . --save_path=license-files + +mkdir -p ${PREFIX}/etc/bash_completion.d +mkdir -p ${PREFIX}/fish/vendor_completions.d +mkdir -p ${PREFIX}/zsh/site-functions +lefthook completion bash > ${PREFIX}/etc/bash_completion.d/lefthook +lefthook completion fish > ${PREFIX}/fish/vendor_completions.d/lefthook.fish +lefthook completion zsh > ${PREFIX}/zsh/site-functions/_lefthook diff --git a/recipes/lefthook/meta.yaml b/recipes/lefthook/meta.yaml new file mode 100755 index 0000000000000..bc04bcfd2c261 --- /dev/null +++ b/recipes/lefthook/meta.yaml @@ -0,0 +1,35 @@ +{% set name = "lefthook" %} +{% set version = "1.6.16" %} + +package: + name: {{ name|lower }} + version: {{ version }} + +source: + url: https://github.com/evilmartians/{{ name }}/archive/refs/tags/v{{ version }}.tar.gz + sha256: 4eeb270e20e0a00145e01bdfbad4f32c7e720d762cc5c51da88d6db45ae4b6be + +build: + number: 0 + +requirements: + build: + - {{ compiler('go-nocgo') }} + - go-licenses + +test: + commands: + - {{ name }} --help + +about: + home: https://github.com/evilmartians/{{ name }} + license: MIT + license_file: + - LICENSE + - license-files/ + summary: Fast and powerful Git hooks manager for any type of projects + dev_url: https://github.com/evilmartians/{{ name }} + +extra: + recipe-maintainers: + - danielnachun From 3fd4d6bdd487efb338b7cac4ead189e287baca93 Mon Sep 17 00:00:00 2001 From: danielnachun Date: Wed, 24 Jul 2024 22:11:23 -0700 Subject: [PATCH 05/17] add prr --- recipes/prr/bld.bat | 13 +++++++++++++ recipes/prr/build.sh | 14 ++++++++++++++ recipes/prr/meta.yaml | 40 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 67 insertions(+) create mode 100644 recipes/prr/bld.bat create mode 100755 recipes/prr/build.sh create mode 100755 recipes/prr/meta.yaml diff --git a/recipes/prr/bld.bat b/recipes/prr/bld.bat new file mode 100644 index 0000000000000..a1bf86f92fcfa --- /dev/null +++ b/recipes/prr/bld.bat @@ -0,0 +1,13 @@ +:: check licenses +cargo-bundle-licenses ^ + --format yaml ^ + --output THIRDPARTY.yml || goto :error + +:: build statically linked binary with Rust +cargo install --no-track --locked --root %LIBRARY_PREFIX% --path . || goto :error + +goto :EOF + +:error +echo Failed with error #%errorlevel%. +exit 1 diff --git a/recipes/prr/build.sh b/recipes/prr/build.sh new file mode 100755 index 0000000000000..9f4b91793c4cc --- /dev/null +++ b/recipes/prr/build.sh @@ -0,0 +1,14 @@ +#!/usr/bin/env bash + +set -o xtrace -o nounset -o pipefail -o errexit + +# check licenses +cargo-bundle-licenses \ + --format yaml \ + --output THIRDPARTY.yml + +# build statically linked binary with Rust +cargo install --no-track --locked --root ${PREFIX} --path . + +# strip debug symbols +"$STRIP" "$PREFIX/bin/${PKG_NAME}" diff --git a/recipes/prr/meta.yaml b/recipes/prr/meta.yaml new file mode 100755 index 0000000000000..78b1a896947c1 --- /dev/null +++ b/recipes/prr/meta.yaml @@ -0,0 +1,40 @@ +{% set name = "prr" %} +{% set version = "0.18.0" %} + +package: + name: {{ name|lower }} + version: {{ version }} + +source: + url: https://github.com/danobi/{{ name }}/archive/refs/tags/v{{ version }}.tar.gz + sha256: 3c32911854a33a1a7870382db0e759923315ec943b5d43dec42d751820473094 + +build: + number: 0 + +requirements: + build: + - {{ compiler('rust') }} + - {{ compiler('c') }} + - {{ stdlib('c') }} + - cargo-bundle-licenses + - pkg-config + host: + - openssl + run: + - openssl + +test: + commands: + - {{ name }} --help + +about: + home: https://github.com/danobi/{{ name }} + license: MIT + license_file: LICENSE + summary: Mailing list style code reviews for github + dev_url: https://github.com/danobi/{{ name }} + +extra: + recipe-maintainers: + - danielnachun From 13959ad6003a54212dc78ec0d789d26c6a4c8bed Mon Sep 17 00:00:00 2001 From: danielnachun Date: Wed, 24 Jul 2024 22:31:34 -0700 Subject: [PATCH 06/17] remove prr --- recipes/prr/bld.bat | 13 ------------- recipes/prr/build.sh | 14 -------------- recipes/prr/meta.yaml | 40 ---------------------------------------- 3 files changed, 67 deletions(-) delete mode 100644 recipes/prr/bld.bat delete mode 100755 recipes/prr/build.sh delete mode 100755 recipes/prr/meta.yaml diff --git a/recipes/prr/bld.bat b/recipes/prr/bld.bat deleted file mode 100644 index a1bf86f92fcfa..0000000000000 --- a/recipes/prr/bld.bat +++ /dev/null @@ -1,13 +0,0 @@ -:: check licenses -cargo-bundle-licenses ^ - --format yaml ^ - --output THIRDPARTY.yml || goto :error - -:: build statically linked binary with Rust -cargo install --no-track --locked --root %LIBRARY_PREFIX% --path . || goto :error - -goto :EOF - -:error -echo Failed with error #%errorlevel%. -exit 1 diff --git a/recipes/prr/build.sh b/recipes/prr/build.sh deleted file mode 100755 index 9f4b91793c4cc..0000000000000 --- a/recipes/prr/build.sh +++ /dev/null @@ -1,14 +0,0 @@ -#!/usr/bin/env bash - -set -o xtrace -o nounset -o pipefail -o errexit - -# check licenses -cargo-bundle-licenses \ - --format yaml \ - --output THIRDPARTY.yml - -# build statically linked binary with Rust -cargo install --no-track --locked --root ${PREFIX} --path . - -# strip debug symbols -"$STRIP" "$PREFIX/bin/${PKG_NAME}" diff --git a/recipes/prr/meta.yaml b/recipes/prr/meta.yaml deleted file mode 100755 index 78b1a896947c1..0000000000000 --- a/recipes/prr/meta.yaml +++ /dev/null @@ -1,40 +0,0 @@ -{% set name = "prr" %} -{% set version = "0.18.0" %} - -package: - name: {{ name|lower }} - version: {{ version }} - -source: - url: https://github.com/danobi/{{ name }}/archive/refs/tags/v{{ version }}.tar.gz - sha256: 3c32911854a33a1a7870382db0e759923315ec943b5d43dec42d751820473094 - -build: - number: 0 - -requirements: - build: - - {{ compiler('rust') }} - - {{ compiler('c') }} - - {{ stdlib('c') }} - - cargo-bundle-licenses - - pkg-config - host: - - openssl - run: - - openssl - -test: - commands: - - {{ name }} --help - -about: - home: https://github.com/danobi/{{ name }} - license: MIT - license_file: LICENSE - summary: Mailing list style code reviews for github - dev_url: https://github.com/danobi/{{ name }} - -extra: - recipe-maintainers: - - danielnachun From 53c30941a3ed5da24ef71158d1e8bf7ddedbe6f7 Mon Sep 17 00:00:00 2001 From: Daniel Nachun Date: Sat, 14 Sep 2024 10:39:32 -0700 Subject: [PATCH 07/17] add flint --- recipes/flint/meta.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/recipes/flint/meta.yaml b/recipes/flint/meta.yaml index a816f1c561497..e08cd6a847e38 100755 --- a/recipes/flint/meta.yaml +++ b/recipes/flint/meta.yaml @@ -6,7 +6,7 @@ package: version: {{ version }} source: - url: https://github.com/pengwynn/{{ name }}/archive/v{{ version }}.tar.gz + url: https://github.com/pengwynn/flint/archive/v{{ version }}.tar.gz sha256: ec865ec5cad191c7fc9c7c6d5007754372696a708825627383913367f3ef8b7f build: @@ -19,16 +19,16 @@ requirements: test: commands: - - {{ name }} --help + - flint --help about: - home: https://github.com/pengwynn/{{ name }} + home: https://github.com/pengwynn/flint license: MIT license_file: - LICENSE.md - license-files/ summary: Check your project for common sources of contributor friction - dev_url: https://github.com/pengwynn/{{ name }} + dev_url: https://github.com/pengwynn/flint extra: recipe-maintainers: From d8a8d6f566291835ff69978c4187c9a256259a84 Mon Sep 17 00:00:00 2001 From: Daniel Nachun Date: Sat, 14 Sep 2024 10:39:58 -0700 Subject: [PATCH 08/17] add git-hound --- recipes/git-hound/meta.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/recipes/git-hound/meta.yaml b/recipes/git-hound/meta.yaml index dea496c5cee9a..25b1ff8608b7c 100755 --- a/recipes/git-hound/meta.yaml +++ b/recipes/git-hound/meta.yaml @@ -6,7 +6,7 @@ package: version: {{ version }} source: - url: https://github.com/tillson/{{ name }}/archive/v{{ version }}.tar.gz + url: https://github.com/tillson/git-hound/archive/v{{ version }}.tar.gz sha256: db285484c1377807e5f7d38bfad32e0ae547839c61e043ba74bf20f536246a33 build: @@ -19,16 +19,16 @@ requirements: test: commands: - - {{ name }} --help + - git-hound --help about: - home: https://github.com/tillson/{{ name }} + home: https://github.com/tillson/git-hound license: MIT license_file: - LICENSE - license-files/ summary: Git plugin that prevents sensitive data from being committed. - dev_url: https://github.com/tillson/{{ name }} + dev_url: https://github.com/tillson/git-hound extra: recipe-maintainers: From 3a44b7c791601b67a238203b9d3ebb00451fe495 Mon Sep 17 00:00:00 2001 From: Daniel Nachun Date: Sat, 14 Sep 2024 10:40:31 -0700 Subject: [PATCH 09/17] add lefthook --- recipes/lefthook/meta.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/recipes/lefthook/meta.yaml b/recipes/lefthook/meta.yaml index bc04bcfd2c261..ae8d15c664235 100755 --- a/recipes/lefthook/meta.yaml +++ b/recipes/lefthook/meta.yaml @@ -6,7 +6,7 @@ package: version: {{ version }} source: - url: https://github.com/evilmartians/{{ name }}/archive/refs/tags/v{{ version }}.tar.gz + url: https://github.com/evilmartians/lefthook/archive/v{{ version }}.tar.gz sha256: 4eeb270e20e0a00145e01bdfbad4f32c7e720d762cc5c51da88d6db45ae4b6be build: @@ -19,16 +19,16 @@ requirements: test: commands: - - {{ name }} --help + - lefthook --help about: - home: https://github.com/evilmartians/{{ name }} + home: https://github.com/evilmartians/lefthook license: MIT license_file: - LICENSE - license-files/ summary: Fast and powerful Git hooks manager for any type of projects - dev_url: https://github.com/evilmartians/{{ name }} + dev_url: https://github.com/evilmartians/lefthook extra: recipe-maintainers: From 88581cfd02cacf331db17662642caeec5f4eed33 Mon Sep 17 00:00:00 2001 From: Daniel Nachun Date: Sat, 14 Sep 2024 10:40:50 -0700 Subject: [PATCH 10/17] add spr --- recipes/spr/meta.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/recipes/spr/meta.yaml b/recipes/spr/meta.yaml index 9332001b3a1c8..f55cbb4af093f 100755 --- a/recipes/spr/meta.yaml +++ b/recipes/spr/meta.yaml @@ -6,7 +6,7 @@ package: version: {{ version }} source: - url: https://github.com/getcord/{{ name }}/archive/refs/tags/v{{ version }}.tar.gz + url: https://github.com/getcord/spr/archive/refs/tags/v{{ version }}.tar.gz sha256: d1f53f4222fd9916c9edc0457bfe04bac66d9ff60a7c0e7a0c4519317c3f3fb8 build: @@ -21,14 +21,14 @@ requirements: test: commands: - - {{ name }} --help + - spr --help about: - home: https://github.com/getcord/{{ name }} + home: https://github.com/getcord/spr license: MIT license_file: LICENSE summary: Submit pull requests for individual, amendable, rebaseable commits to GitHub - dev_url: https://github.com/getcord/{{ name }} + dev_url: https://github.com/getcord/spr extra: recipe-maintainers: From 60abbb4e6e94c980da006f0032f2950a3b5ebc6b Mon Sep 17 00:00:00 2001 From: Daniel Nachun Date: Sat, 14 Sep 2024 10:55:42 -0700 Subject: [PATCH 11/17] add spr --- recipes/spr/meta.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/recipes/spr/meta.yaml b/recipes/spr/meta.yaml index f55cbb4af093f..9989595ff4f79 100755 --- a/recipes/spr/meta.yaml +++ b/recipes/spr/meta.yaml @@ -26,7 +26,9 @@ test: about: home: https://github.com/getcord/spr license: MIT - license_file: LICENSE + license_file: + - LICENSE + - THIRDPARTY.yml summary: Submit pull requests for individual, amendable, rebaseable commits to GitHub dev_url: https://github.com/getcord/spr From c8c76b8359dc15fe53ff1bc593b6a3d092f98f1a Mon Sep 17 00:00:00 2001 From: Daniel Nachun Date: Sat, 14 Sep 2024 11:11:01 -0700 Subject: [PATCH 12/17] add spr --- recipes/spr/bld.bat | 2 +- recipes/spr/build.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/recipes/spr/bld.bat b/recipes/spr/bld.bat index dfd4a96d144e7..939657829d5e2 100644 --- a/recipes/spr/bld.bat +++ b/recipes/spr/bld.bat @@ -4,7 +4,7 @@ cargo-bundle-licenses ^ --output THIRDPARTY.yml || goto :error :: build statically linked binary with Rust -cargo install --no-target --locked --root %LIBRARY_PREFIX% --path spr || goto :error +cargo install --no-track --locked --root %LIBRARY_PREFIX% --path spr || goto :error goto :EOF diff --git a/recipes/spr/build.sh b/recipes/spr/build.sh index 46892c12c7fef..9c72beb308120 100755 --- a/recipes/spr/build.sh +++ b/recipes/spr/build.sh @@ -8,7 +8,7 @@ cargo-bundle-licenses \ --output THIRDPARTY.yml # build statically linked binary with Rust -cargo install --no-target --locked --root ${PREFIX} --path spr +cargo install --no-track --locked --root ${PREFIX} --path spr # strip debug symbols "$STRIP" "$PREFIX/bin/${PKG_NAME}" From f15ba1661d9b970a805d65ba596594bacec21054 Mon Sep 17 00:00:00 2001 From: Daniel Nachun Date: Sat, 14 Sep 2024 11:19:50 -0700 Subject: [PATCH 13/17] add flint --- recipes/flint/build.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/recipes/flint/build.sh b/recipes/flint/build.sh index 600438ee0c575..dab40341d1b3d 100755 --- a/recipes/flint/build.sh +++ b/recipes/flint/build.sh @@ -5,8 +5,8 @@ set -o xtrace -o nounset -o pipefail -o errexit export GOPROXY=https://proxy.golang.org go mod init flint go mod edit -replace github.com/codegangsta/cli=github.com/urfave/cli@v1 -go mod tidy -go mod vendor +go mod -e tidy +go mod -e vendor go build -buildmode=pie -trimpath -o=${PREFIX}/bin/${PKG_NAME} -ldflags="-s -w" go-licenses save . --save_path=license-files From 0dbafad2b60a69db1b5abb75af9923bb97bbba32 Mon Sep 17 00:00:00 2001 From: Daniel Nachun Date: Sat, 14 Sep 2024 11:31:32 -0700 Subject: [PATCH 14/17] add flint --- recipes/flint/build.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/recipes/flint/build.sh b/recipes/flint/build.sh index dab40341d1b3d..885266ba1b55e 100755 --- a/recipes/flint/build.sh +++ b/recipes/flint/build.sh @@ -5,8 +5,8 @@ set -o xtrace -o nounset -o pipefail -o errexit export GOPROXY=https://proxy.golang.org go mod init flint go mod edit -replace github.com/codegangsta/cli=github.com/urfave/cli@v1 -go mod -e tidy -go mod -e vendor +go mod tidy -e +go mod vendor -e go build -buildmode=pie -trimpath -o=${PREFIX}/bin/${PKG_NAME} -ldflags="-s -w" go-licenses save . --save_path=license-files From 8f77e27c1d121a4f99fc09d1bae5789535e011ae Mon Sep 17 00:00:00 2001 From: Daniel Nachun Date: Sat, 14 Sep 2024 11:40:56 -0700 Subject: [PATCH 15/17] add flint --- recipes/flint/bld.bat | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/recipes/flint/bld.bat b/recipes/flint/bld.bat index e66a96fbbd20d..fb4e86d4f324f 100755 --- a/recipes/flint/bld.bat +++ b/recipes/flint/bld.bat @@ -1,8 +1,8 @@ set GOPROXY=https://proxy.golang.org go mod init flint go mod edit -replace github.com/codegangsta/cli=github.com/urfave/cli@v1 -go mod tidy -go mod vendor +go mod tidy -e +go mod vendor -e go build -buildmode=pie -trimpath -o=%LIBRARY_PREFIX%\bin\%PKG_NAME%.exe -ldflags="-s" || goto :error go-licenses save . --save_path=license-files || goto :error From a0ee8d49ecba10a254b32fa8ea425959144ce066 Mon Sep 17 00:00:00 2001 From: Daniel Nachun Date: Sat, 14 Sep 2024 11:58:48 -0700 Subject: [PATCH 16/17] remove spr --- recipes/spr/bld.bat | 13 ------------- recipes/spr/build.sh | 14 -------------- recipes/spr/meta.yaml | 37 ------------------------------------- 3 files changed, 64 deletions(-) delete mode 100644 recipes/spr/bld.bat delete mode 100755 recipes/spr/build.sh delete mode 100755 recipes/spr/meta.yaml diff --git a/recipes/spr/bld.bat b/recipes/spr/bld.bat deleted file mode 100644 index 939657829d5e2..0000000000000 --- a/recipes/spr/bld.bat +++ /dev/null @@ -1,13 +0,0 @@ -:: check licenses -cargo-bundle-licenses ^ - --format yaml ^ - --output THIRDPARTY.yml || goto :error - -:: build statically linked binary with Rust -cargo install --no-track --locked --root %LIBRARY_PREFIX% --path spr || goto :error - -goto :EOF - -:error -echo Failed with error #%errorlevel%. -exit 1 diff --git a/recipes/spr/build.sh b/recipes/spr/build.sh deleted file mode 100755 index 9c72beb308120..0000000000000 --- a/recipes/spr/build.sh +++ /dev/null @@ -1,14 +0,0 @@ -#!/usr/bin/env bash - -set -o xtrace -o nounset -o pipefail -o errexit - -# check licenses -cargo-bundle-licenses \ - --format yaml \ - --output THIRDPARTY.yml - -# build statically linked binary with Rust -cargo install --no-track --locked --root ${PREFIX} --path spr - -# strip debug symbols -"$STRIP" "$PREFIX/bin/${PKG_NAME}" diff --git a/recipes/spr/meta.yaml b/recipes/spr/meta.yaml deleted file mode 100755 index 9989595ff4f79..0000000000000 --- a/recipes/spr/meta.yaml +++ /dev/null @@ -1,37 +0,0 @@ -{% set name = "spr" %} -{% set version = "1.3.5" %} - -package: - name: {{ name|lower }} - version: {{ version }} - -source: - url: https://github.com/getcord/spr/archive/refs/tags/v{{ version }}.tar.gz - sha256: d1f53f4222fd9916c9edc0457bfe04bac66d9ff60a7c0e7a0c4519317c3f3fb8 - -build: - number: 0 - -requirements: - build: - - {{ compiler('rust') }} - - {{ compiler('c') }} - - {{ stdlib('c') }} - - cargo-bundle-licenses - -test: - commands: - - spr --help - -about: - home: https://github.com/getcord/spr - license: MIT - license_file: - - LICENSE - - THIRDPARTY.yml - summary: Submit pull requests for individual, amendable, rebaseable commits to GitHub - dev_url: https://github.com/getcord/spr - -extra: - recipe-maintainers: - - danielnachun From bb6ccd2d0bec577e71f5e4e33aa9fa145484d2cf Mon Sep 17 00:00:00 2001 From: Daniel Nachun Date: Sat, 14 Sep 2024 17:21:10 -0700 Subject: [PATCH 17/17] rename to flint-checker --- recipes/{flint => flint-checker}/bld.bat | 2 +- recipes/{flint => flint-checker}/build.sh | 2 +- recipes/{flint => flint-checker}/meta.yaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) rename recipes/{flint => flint-checker}/bld.bat (73%) rename recipes/{flint => flint-checker}/build.sh (77%) rename recipes/{flint => flint-checker}/meta.yaml (95%) diff --git a/recipes/flint/bld.bat b/recipes/flint-checker/bld.bat similarity index 73% rename from recipes/flint/bld.bat rename to recipes/flint-checker/bld.bat index fb4e86d4f324f..f248f721297cf 100755 --- a/recipes/flint/bld.bat +++ b/recipes/flint-checker/bld.bat @@ -4,7 +4,7 @@ go mod edit -replace github.com/codegangsta/cli=github.com/urfave/cli@v1 go mod tidy -e go mod vendor -e -go build -buildmode=pie -trimpath -o=%LIBRARY_PREFIX%\bin\%PKG_NAME%.exe -ldflags="-s" || goto :error +go build -buildmode=pie -trimpath -o=%LIBRARY_PREFIX%\bin\flint.exe -ldflags="-s" || goto :error go-licenses save . --save_path=license-files || goto :error goto :EOF diff --git a/recipes/flint/build.sh b/recipes/flint-checker/build.sh similarity index 77% rename from recipes/flint/build.sh rename to recipes/flint-checker/build.sh index 885266ba1b55e..4384cd28413c9 100755 --- a/recipes/flint/build.sh +++ b/recipes/flint-checker/build.sh @@ -8,5 +8,5 @@ go mod edit -replace github.com/codegangsta/cli=github.com/urfave/cli@v1 go mod tidy -e go mod vendor -e -go build -buildmode=pie -trimpath -o=${PREFIX}/bin/${PKG_NAME} -ldflags="-s -w" +go build -buildmode=pie -trimpath -o=${PREFIX}/bin/flint -ldflags="-s -w" go-licenses save . --save_path=license-files diff --git a/recipes/flint/meta.yaml b/recipes/flint-checker/meta.yaml similarity index 95% rename from recipes/flint/meta.yaml rename to recipes/flint-checker/meta.yaml index e08cd6a847e38..222c2f300b96b 100755 --- a/recipes/flint/meta.yaml +++ b/recipes/flint-checker/meta.yaml @@ -1,4 +1,4 @@ -{% set name = "flint" %} +{% set name = "flint-checker" %} {% set version = "0.1.0" %} package: