+cocoapods (#2212)

Closes #291
This commit is contained in:
Max Howell 2023-06-19 10:05:13 -04:00 committed by GitHub
parent 2dc39b4d51
commit 84e97a0423
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 53 additions and 5 deletions

1
.gitignore vendored
View file

@ -2,6 +2,7 @@
/builds
/testbeds
.DS_Store
/prefixes
#TODO commit after v1
/deno.lock

View file

@ -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 "$@"

View file

@ -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 rubys 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

5
projects/cocoapods.org/proxy Executable file
View file

@ -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 "$@"

View file

@ -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 "$@"

View file

@ -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 "$@"

View file

@ -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") "$@"