pantry/projects/scons.org/package.yml

37 lines
856 B
YAML
Raw Normal View History

2023-04-11 22:40:29 +03:00
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
2023-11-20 20:16:17 +03:00
gnu.org/gcc: '>=10' # scons uses `gcc`
2023-04-11 22:40:29 +03:00
build: python-venv.sh {{prefix}}/bin/scons
2023-04-11 22:40:29 +03:00
provides:
- bin/scons
test:
2023-11-20 20:16:17 +03:00
script:
- run: mv $FIXTURE fixture.c
fixture: |
#include <stdio.h>
int main() {
printf("xyz.tea.hello-world");
return 0;
}
2023-04-11 22:40:29 +03:00
# scons doesnt import the external environment
# this means nobody will enjoy using scons with tea so we have to fix that
2023-11-20 20:16:17 +03:00
- run: mv $FIXTURE SConstruct
fixture: |
import os
env = Environment(ENV = os.environ)
env.Program('fixture.c')
2023-04-11 22:40:29 +03:00
2023-11-20 20:16:17 +03:00
- scons --debug=explain
- test $(./fixture) = "xyz.tea.hello-world"