diff --git a/.gitignore b/.gitignore index 19dbfdd5..33375c5d 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,7 @@ /builds /testbeds .DS_Store +/prefixes #TODO commit after v1 /deno.lock diff --git a/projects/asciidoctor.org/asciidoctor b/projects/asciidoctor.org/asciidoctor index 8ef4ca1f..debb89f4 100755 --- a/projects/asciidoctor.org/asciidoctor +++ b/projects/asciidoctor.org/asciidoctor @@ -1,5 +1,5 @@ #!/bin/sh -export GEM_HOME="$(cd $(dirname $0)/.. && pwd)" +export GEM_HOME="$(cd "$(dirname "$0")"/.. && pwd)" export GEM_PATH="$GEM_HOME" export PATH="$GEM_HOME/gems/bin:$PATH" exec "$GEM_HOME"/gems/bin/asciidoctor "$@" diff --git a/projects/cocoapods.org/package.yml b/projects/cocoapods.org/package.yml new file mode 100644 index 00000000..ae412e93 --- /dev/null +++ b/projects/cocoapods.org/package.yml @@ -0,0 +1,42 @@ +distributable: + url: https://github.com/CocoaPods/CocoaPods/archive/{{version}}.tar.gz + strip-components: 1 + +versions: + github: CocoaPods/CocoaPods + +dependencies: + ruby-lang.org: ^3 + sourceware.org/libffi: ^3 + rubygems.org: ^3 + git-scm.org: ^2 + +build: + dependencies: + tea.xyz/gx/cc: c99 + tea.xyz/gx/make: '*' + env: + GEM_HOME: ${{prefix}} + GEM_PATH: ${{prefix}} + + # FIXME ruby’s mkmf needs patching to check CPATH + CFLAGS: -I{{deps.sourceware.org/libffi.prefix}}/include + script: + - gem build cocoapods.gemspec + - gem install cocoapods-{{version}}.gem + + - run: | + mv {{prefix}}/bin/* . + cp $SRCROOT/props/proxy {{prefix}}/bin/pod + working-directory: + ${{prefix}}/gems/bin + +provides: + - bin/pod + +test: + env: + # some of our test containers are raw and thus run as root + COCOAPODS_ALLOW_ROOT: 1 + script: + pod --version diff --git a/projects/cocoapods.org/proxy b/projects/cocoapods.org/proxy new file mode 100755 index 00000000..a9f98f5b --- /dev/null +++ b/projects/cocoapods.org/proxy @@ -0,0 +1,5 @@ +#!/bin/sh +export GEM_HOME="$(cd "$(dirname "$0")"/.. && pwd)" +export GEM_PATH="$GEM_HOME" +export PATH="$GEM_HOME/gems/bin:$PATH" +exec "$GEM_HOME"/gems/bin/pod "$@" diff --git a/projects/fastlane.tools/fastlane b/projects/fastlane.tools/fastlane index 8b9b55bc..955a9864 100755 --- a/projects/fastlane.tools/fastlane +++ b/projects/fastlane.tools/fastlane @@ -1,5 +1,5 @@ #!/bin/sh -export GEM_HOME="$(cd $(dirname $0)/.. && pwd)" +export GEM_HOME="$(cd "$(dirname "$0")"/.. && pwd)" export GEM_PATH="$GEM_HOME" export PATH="$GEM_HOME/gems/bin:$PATH" exec "$GEM_HOME"/gems/bin/fastlane "$@" diff --git a/projects/rtomayko.github.io/ronn/ronn b/projects/rtomayko.github.io/ronn/ronn index e7231856..dfe3ef79 100755 --- a/projects/rtomayko.github.io/ronn/ronn +++ b/projects/rtomayko.github.io/ronn/ronn @@ -1,5 +1,5 @@ #!/bin/sh -export GEM_HOME="$(cd $(dirname $0)/.. && pwd)" +export GEM_HOME="$(cd "$(dirname "$0")"/.. && pwd)" export GEM_PATH="$GEM_HOME" export PATH="$GEM_HOME/gems/bin:$PATH" exec "$GEM_HOME"/gems/bin/ronn "$@" diff --git a/projects/rubygems.org/proxy b/projects/rubygems.org/proxy index 52b4e618..bbf36f9d 100755 --- a/projects/rubygems.org/proxy +++ b/projects/rubygems.org/proxy @@ -1,4 +1,4 @@ #!/bin/sh -d="$(cd "$(dirname $0)"/.. && pwd)" +d="$(cd "$(dirname "$0")"/.. && pwd)" export RUBYLIB="$d/lib" -$d/shim/$(basename $0) "$@" +$d/shim/$(basename "$0") "$@"