diff --git a/recipes/raid/recipe.py b/recipes/raid/recipe.py new file mode 100644 index 0000000..fa0f3d0 --- /dev/null +++ b/recipes/raid/recipe.py @@ -0,0 +1,20 @@ + +import json +from SCons.Script import * + +_REPO_NAME = 'raid' +_REPO_URL = 'https://git.mewin.de/mewin/raid.git' + +def versions(env: Environment, update: bool = False): + return [(0, 0, 0)] + +def dependencies(env: Environment, version) -> 'dict': + repo = env.GitBranch(repo_name = _REPO_NAME, remote_url = _REPO_URL, git_ref = 'master') + checkout_root = repo['checkout_root'] + with open(os.path.join(checkout_root, 'dependencies.json'), 'r') as f: + return env.DepsFromJson(json.load(f)) + +def cook(env: Environment, version) -> dict: + repo = env.GitBranch(repo_name = _REPO_NAME, remote_url = _REPO_URL, git_ref = 'master') + checkout_root = repo['checkout_root'] + return env.Module(os.path.join(checkout_root, 'SModule'))