mirror of
https://github.com/ivabus/pantry
synced 2024-11-10 02:25:18 +03:00
e99849d878
closes #4136
37 lines
856 B
YAML
37 lines
856 B
YAML
distributable:
|
||
url: https://downloads.sourceforge.net/project/scons/scons/{{version}}/SCons-{{version}}.tar.gz
|
||
strip-components: 1
|
||
|
||
versions:
|
||
github: SCons/scons
|
||
|
||
dependencies:
|
||
python.org: ~3.11
|
||
gnu.org/gcc: '>=10' # scons uses `gcc`
|
||
|
||
build: python-venv.sh {{prefix}}/bin/scons
|
||
|
||
provides:
|
||
- bin/scons
|
||
|
||
test:
|
||
script:
|
||
- 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
|
||
# this means nobody will enjoy using scons with tea so we have to fix that
|
||
- run: mv $FIXTURE SConstruct
|
||
fixture: |
|
||
import os
|
||
env = Environment(ENV = os.environ)
|
||
env.Program('fixture.c')
|
||
|
||
- scons --debug=explain
|
||
- test $(./fixture) = "xyz.tea.hello-world"
|