+portable git

This commit is contained in:
Max Howell 2022-09-17 08:32:50 -04:00
parent c1a571a736
commit 6b32ec0d1e
3 changed files with 10 additions and 5 deletions

View file

@ -0,0 +1,5 @@
RUNTIME_PREFIX = YesPlease
RUNTIME_PREFIX_PERL = YesPlease
# must be set or the above are still abs paths
gitexecdir=libexec/git-core

View file

@ -16,14 +16,13 @@ build:
tea.xyz/gx/cc: c99
tea.xyz/gx/make: '*'
script: |
# installs to eg. libexec rather than libexec/git-core
sed -i.bak 's|/git-core||g' config.mak.in
cp {{pkg.pantry-prefix}}/config.mak .
./configure $CONF
make install $BAKE
cd "{{prefix}}"
DEBUG=1 fix-shebangs.ts bin/* libexec/*
DEBUG=1 fix-shebangs.ts bin/* libexec/git-core/*
env:
V: 1
BAKE:
@ -32,5 +31,7 @@ build:
CONF:
- --prefix={{prefix}}
- --with-perl=/opt/perl.org/v*/bin/perl
INSTALL_STRIP: -s
test: git --version #FIXME better
test: |
git clone https://github.com/teaxyz/white-paper

View file

@ -59,7 +59,6 @@ export default async function build({ pkg, deps, prebuild, env: add_env }: Optio
${/*FIXME hardcoded paths*/ ''}
export PATH=/opt/tea.xyz/var/pantry/scripts/brewkit:"$PATH"
export PATH=/opt/tea.xyz/v0/bin:"$PATH"
${sh}
`