pantry/projects/scons.org/package.yml
2023-10-01 20:41:57 -04:00

34 lines
781 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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
build: python-venv.sh {{prefix}}/bin/scons
provides:
- bin/scons
test:
script: |
mv $FIXTURE fixture.c
# scons doesnt import the external environment
# this means nobody will enjoy using scons with tea so we have to fix that
echo "import os" > SConstruct
echo "env = Environment(ENV = os.environ)" >> SConstruct
echo "env.Program('fixture.c')" >> SConstruct
scons --debug=explain
test $(./fixture) = "xyz.tea.hello-world"
fixture: |
#include <stdio.h>
int main() {
printf("xyz.tea.hello-world");
return 0;
}