From 71f8631e48e4574f0c199493c189b14b299e3bb1 Mon Sep 17 00:00:00 2001 From: Patrick Wuttke Date: Wed, 12 Mar 2025 15:50:16 +0100 Subject: [PATCH] Added recipe for portable-file-dialogs. --- recipes/portable-file-dialogs/recipe.py | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 recipes/portable-file-dialogs/recipe.py diff --git a/recipes/portable-file-dialogs/recipe.py b/recipes/portable-file-dialogs/recipe.py new file mode 100644 index 0000000..17bc265 --- /dev/null +++ b/recipes/portable-file-dialogs/recipe.py @@ -0,0 +1,22 @@ + + +import re +from SCons.Script import * + + +def _git_cook(env: Environment, repo: dict) -> dict: + checkout_root = repo['checkout_root'] + + return { + 'CPPPATH': [checkout_root] + } + + +env.GitRecipe( + globals = globals(), + repo_name = 'portable-file-dialogs', + repo_url = 'https://github.com/samhocevar/portable-file-dialogs.git', + tag_pattern = re.compile(r'^([0-9]+)\.([0-9]+)\.([0-9]+)$'), + tag_fn = lambda version: f'{version[0]}.{version[1]}.{version[2]}', + cook_fn = _git_cook +)