mirror of
https://github.com/ivabus/pantry
synced 2024-11-25 18:05:07 +03:00
314a5a3e6a
* Add osxkeychain for macos * touch up * bad format --------- Co-authored-by: James Reynolds <magnsuviri@me.com> Co-authored-by: Jacob Heider <jacob@tea.xyz>
105 lines
2.3 KiB
YAML
105 lines
2.3 KiB
YAML
distributable:
|
|
url: https://mirrors.edge.kernel.org/pub/software/scm/git/git-{{version}}.tar.xz
|
|
strip-components: 1
|
|
|
|
versions:
|
|
github: git/git/tags
|
|
|
|
dependencies:
|
|
zlib.net: 1
|
|
gnu.org/gettext: ^0.21
|
|
curl.se: '>=5'
|
|
curl.se/ca-certs: '*'
|
|
perl.org: '*'
|
|
libexpat.github.io: ~2
|
|
|
|
runtime:
|
|
env:
|
|
GIT_TEMPLATE_DIR: '{{prefix}}/share/git-core/templates'
|
|
# FIXME: this should work once
|
|
# https://github.com/teaxyz/cli/issues/497
|
|
# is resolved
|
|
# GIT_SSL_CAINFO: ${{deps.curl.se/ca-certs.prefix}}/ssl/cert.pem
|
|
|
|
build:
|
|
dependencies:
|
|
tea.xyz/gx/cc: c99
|
|
tea.xyz/gx/make: '*'
|
|
script: |
|
|
mv props/config.mak .
|
|
|
|
./configure $CONF
|
|
make install $BAKE
|
|
|
|
cd contrib/subtree
|
|
make
|
|
make install
|
|
|
|
if test "{{ hw.platform }}" = "darwin"; then
|
|
cd "$SRCROOT/contrib/credential/osxkeychain"
|
|
make
|
|
mv git-credential-osxkeychain "{{prefix}}"/bin
|
|
make clean
|
|
cd "$SRCROOT/contrib/subtree"
|
|
fi
|
|
|
|
mv git-subtree "{{prefix}}"/libexec
|
|
|
|
cd "{{prefix}}"
|
|
DEBUG=1 fix-shebangs.ts bin/* libexec/*
|
|
|
|
mkdir -p etc
|
|
cp "$SRCROOT"/props/git* etc
|
|
env:
|
|
V: 1
|
|
BAKE:
|
|
- --jobs {{ hw.concurrency }}
|
|
- NO_TCLTK=1
|
|
CONF:
|
|
- --prefix={{ prefix }}
|
|
- --with-perl={{ deps.perl.org.prefix }}
|
|
- --with-gitconfig=etc/gitconfig
|
|
INSTALL_STRIP: -s
|
|
|
|
test: |
|
|
git clone https://github.com/teaxyz/white-paper 2>&1 | tee clone-output.txt
|
|
|
|
# check that the templates can be found
|
|
if grep -q 'warning: templates not found in' clone-output.txt; then
|
|
false
|
|
fi
|
|
|
|
mkdir foo
|
|
cd foo
|
|
touch .DS_Store testfile
|
|
git init
|
|
git add .
|
|
test "$(git diff --name-only --cached)" = "testfile"
|
|
|
|
# necessary so `git commit` will work
|
|
git config user.email "you@example.com"
|
|
git config user.name "Your Name"
|
|
|
|
# necessary to check the libexec binaries work
|
|
git commit --message "test"
|
|
|
|
git subtree add --prefix teaxyz-subtree https://github.com/teaxyz/white-paper main --squash
|
|
|
|
provides:
|
|
linux:
|
|
- bin/git
|
|
- bin/git-cvsserver
|
|
- bin/git-receive-pack
|
|
- bin/git-shell
|
|
- bin/git-upload-archive
|
|
- bin/git-upload-pack
|
|
- bin/scalar
|
|
darwin:
|
|
- bin/git
|
|
- bin/git-cvsserver
|
|
- bin/git-receive-pack
|
|
- bin/git-shell
|
|
- bin/git-upload-archive
|
|
- bin/git-upload-pack
|
|
- bin/scalar
|
|
- bin/git-credential-osxkeychain
|