From 1e8637173ec42ae2232853c9f0ed7f1740580597 Mon Sep 17 00:00:00 2001 From: Fabien Chouteau Date: Fri, 22 Jul 2022 18:43:36 +0200 Subject: [PATCH] xmlada 21.0.0: fix post-fetch configure (#572) * xmlada-21.0.0: fix post-fetch configure Fix configure * xmlada-22.0.0: fix post-fetch configure --- index/xm/xmlada/xmlada-21.0.0.toml | 9 ++++++++- index/xm/xmlada/xmlada-22.0.0.toml | 4 ++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/index/xm/xmlada/xmlada-21.0.0.toml b/index/xm/xmlada/xmlada-21.0.0.toml index b9937aa1..13464b52 100644 --- a/index/xm/xmlada/xmlada-21.0.0.toml +++ b/index/xm/xmlada/xmlada-21.0.0.toml @@ -13,10 +13,17 @@ project-files = ["distrib/xmlada.gpr", "schema/xmlada_schema.gpr", "unicode/xmlada_unicode.gpr"] -[[actions]] +# XMLada 21.0 config scripts are not able to detect build machine on msys2. +# We explicitly set the value in on the command line: +[[actions."case(distribution)".msys2]] type = "post-fetch" command = ["sh", "configure", "--build=x86_64-w64-mingw32"] +# For other hosts the detection works fine: +[[actions."case(distribution)"."..."]] +type = "post-fetch" +command = ["sh", "configure"] + [gpr-externals] LIBRARY_TYPE = ["static", "relocatable", "static-pic"] XMLADA_BUILD_MODE = ["distrib", "Debug", "Production", diff --git a/index/xm/xmlada/xmlada-22.0.0.toml b/index/xm/xmlada/xmlada-22.0.0.toml index da001f8f..9e0f8bb9 100644 --- a/index/xm/xmlada/xmlada-22.0.0.toml +++ b/index/xm/xmlada/xmlada-22.0.0.toml @@ -21,12 +21,12 @@ disabled = true # XMLada 22.0 config scripts are not able to detect build machine on msys2. # We explicitly set the value in on the command line: -[[actions."case(os)".windows]] +[[actions."case(distribution)".msys2]] type = "post-fetch" command = ["sh", "configure", "--build=x86_64-w64-mingw32"] # For other hosts the detection works fine: -[[actions."case(os)"."..."]] +[[actions."case(distribution)"."..."]] type = "post-fetch" command = ["sh", "configure"]