mirror of
https://github.com/ivabus/pantry
synced 2024-11-25 09:55:06 +03:00
parent
ffe947fd03
commit
e99849d878
1 changed files with 16 additions and 13 deletions
|
@ -7,6 +7,7 @@ versions:
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
python.org: ~3.11
|
python.org: ~3.11
|
||||||
|
gnu.org/gcc: '>=10' # scons uses `gcc`
|
||||||
|
|
||||||
build: python-venv.sh {{prefix}}/bin/scons
|
build: python-venv.sh {{prefix}}/bin/scons
|
||||||
|
|
||||||
|
@ -14,20 +15,22 @@ provides:
|
||||||
- bin/scons
|
- bin/scons
|
||||||
|
|
||||||
test:
|
test:
|
||||||
script: |
|
script:
|
||||||
mv $FIXTURE fixture.c
|
- run: mv $FIXTURE fixture.c
|
||||||
|
fixture: |
|
||||||
|
#include <stdio.h>
|
||||||
|
int main() {
|
||||||
|
printf("xyz.tea.hello-world");
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
# scons doesn’t import the external environment
|
# scons doesn’t import the external environment
|
||||||
# this means nobody will enjoy using scons with tea so we have to fix that
|
# this means nobody will enjoy using scons with tea so we have to fix that
|
||||||
echo "import os" > SConstruct
|
- run: mv $FIXTURE SConstruct
|
||||||
echo "env = Environment(ENV = os.environ)" >> SConstruct
|
fixture: |
|
||||||
echo "env.Program('fixture.c')" >> SConstruct
|
import os
|
||||||
|
env = Environment(ENV = os.environ)
|
||||||
|
env.Program('fixture.c')
|
||||||
|
|
||||||
scons --debug=explain
|
- scons --debug=explain
|
||||||
test $(./fixture) = "xyz.tea.hello-world"
|
- test $(./fixture) = "xyz.tea.hello-world"
|
||||||
fixture: |
|
|
||||||
#include <stdio.h>
|
|
||||||
int main() {
|
|
||||||
printf("xyz.tea.hello-world");
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in a new issue