2022-08-02 14:43:12 +03:00
|
|
|
|
distributable:
|
2022-10-31 15:07:18 +03:00
|
|
|
|
url: https://mirrors.edge.kernel.org/pub/software/scm/git/git-{{version}}.tar.xz
|
2022-08-02 14:43:12 +03:00
|
|
|
|
strip-components: 1
|
|
|
|
|
|
|
|
|
|
versions:
|
|
|
|
|
github: git/git/tags
|
|
|
|
|
|
|
|
|
|
dependencies:
|
|
|
|
|
zlib.net: 1
|
|
|
|
|
gnu.org/gettext: ^0.21
|
|
|
|
|
curl.se: '>=5'
|
2023-03-31 18:57:50 +03:00
|
|
|
|
curl.se/ca-certs: '*'
|
2022-09-13 16:18:47 +03:00
|
|
|
|
perl.org: '*'
|
2023-01-19 02:29:34 +03:00
|
|
|
|
libexpat.github.io: ~2
|
2023-10-05 20:52:36 +03:00
|
|
|
|
pkgx.sh: ^1
|
2022-08-02 14:43:12 +03:00
|
|
|
|
|
2023-01-17 23:06:19 +03:00
|
|
|
|
runtime:
|
|
|
|
|
env:
|
|
|
|
|
GIT_TEMPLATE_DIR: '{{prefix}}/share/git-core/templates'
|
2023-09-05 19:40:30 +03:00
|
|
|
|
GIT_SSL_CAINFO: ${{deps.curl.se/ca-certs.prefix}}/ssl/cert.pem
|
2023-01-17 23:06:19 +03:00
|
|
|
|
|
2022-08-02 14:43:12 +03:00
|
|
|
|
build:
|
2023-10-05 20:52:36 +03:00
|
|
|
|
script:
|
|
|
|
|
- mv props/config.mak .
|
2022-09-13 16:18:47 +03:00
|
|
|
|
|
2023-10-05 20:52:36 +03:00
|
|
|
|
- ./configure
|
|
|
|
|
--prefix={{ prefix }}
|
|
|
|
|
--with-perl={{ deps.perl.org.prefix }}
|
|
|
|
|
--with-gitconfig=etc/gitconfig
|
2022-09-13 16:18:47 +03:00
|
|
|
|
|
2023-10-05 20:52:36 +03:00
|
|
|
|
- make install --jobs {{ hw.concurrency }} NO_TCLTK=1
|
2023-06-11 21:57:42 +03:00
|
|
|
|
|
2023-10-05 20:52:36 +03:00
|
|
|
|
- run: |
|
|
|
|
|
make
|
|
|
|
|
make install
|
|
|
|
|
working-directory: contrib/subtree
|
2023-06-11 21:57:42 +03:00
|
|
|
|
|
2023-10-05 20:52:36 +03:00
|
|
|
|
- run: |
|
|
|
|
|
make
|
|
|
|
|
mv git-credential-osxkeychain "{{prefix}}"/bin
|
|
|
|
|
make clean
|
|
|
|
|
working-directory: contrib/credential/osxkeychain
|
|
|
|
|
if: darwin
|
2023-04-05 00:38:25 +03:00
|
|
|
|
|
2023-10-05 20:52:36 +03:00
|
|
|
|
- run: mv git-subtree "{{prefix}}"/libexec
|
|
|
|
|
working-directory: contrib/subtree
|
2022-10-29 15:18:52 +03:00
|
|
|
|
|
2023-10-05 20:52:36 +03:00
|
|
|
|
- run: fix-shebangs.ts bin/* libexec/*
|
|
|
|
|
working-directory: ${{prefix}}
|
|
|
|
|
|
|
|
|
|
- run: cp "$SRCROOT"/props/gitconfig "$SRCROOT"/props/gitignore .
|
|
|
|
|
working-directory: ${{prefix}}/etc
|
|
|
|
|
|
|
|
|
|
- run: |
|
|
|
|
|
rm bin/git
|
|
|
|
|
cp $SRCROOT/props/git-shim bin/git
|
|
|
|
|
working-directory: ${{prefix}}
|
2022-09-02 18:00:33 +03:00
|
|
|
|
env:
|
|
|
|
|
V: 1
|
2022-09-17 15:32:50 +03:00
|
|
|
|
INSTALL_STRIP: -s
|
2022-08-02 14:43:12 +03:00
|
|
|
|
|
2023-10-05 20:52:36 +03:00
|
|
|
|
test:
|
|
|
|
|
# bug in pkgx where it doesn’t auto sync for --provides
|
|
|
|
|
- pkgx --sync
|
2023-01-17 23:06:19 +03:00
|
|
|
|
|
|
|
|
|
# check that the templates can be found
|
2023-10-05 20:52:36 +03:00
|
|
|
|
- run: |
|
|
|
|
|
git clone https://github.com/teaxyz/white-paper 2>&1 | tee clone-output.txt
|
|
|
|
|
if grep -q 'warning: templates not found in' clone-output.txt; then
|
|
|
|
|
exit 1
|
|
|
|
|
fi
|
|
|
|
|
working-directory: $(mktemp -d)
|
2022-10-29 15:18:52 +03:00
|
|
|
|
|
2023-10-05 20:52:36 +03:00
|
|
|
|
- cd $(mktemp -d)
|
|
|
|
|
|
|
|
|
|
- run: |
|
|
|
|
|
touch .DS_Store testfile
|
|
|
|
|
git init
|
|
|
|
|
git add .
|
|
|
|
|
test "$(git diff --name-only --cached)" = "testfile"
|
2022-11-18 21:43:48 +03:00
|
|
|
|
|
2023-01-17 00:12:14 +03:00
|
|
|
|
# necessary so `git commit` will work
|
2023-10-05 20:52:36 +03:00
|
|
|
|
- |
|
|
|
|
|
git config user.email "you@example.com"
|
|
|
|
|
git config user.name "Your Name"
|
2023-01-17 00:12:14 +03:00
|
|
|
|
|
|
|
|
|
# necessary to check the libexec binaries work
|
2023-10-05 20:52:36 +03:00
|
|
|
|
- git commit --message "test"
|
|
|
|
|
|
|
|
|
|
- git subtree add --prefix teaxyz-subtree https://github.com/teaxyz/white-paper main --squash
|
2023-01-17 00:12:14 +03:00
|
|
|
|
|
2023-10-05 20:52:36 +03:00
|
|
|
|
- git gone --version
|
2023-04-05 00:38:25 +03:00
|
|
|
|
|
2022-11-18 21:43:48 +03:00
|
|
|
|
provides:
|
2023-06-11 21:57:42 +03:00
|
|
|
|
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
|