From 4a06410ea42e2a2bedb514d95f7bb75e85c1814d Mon Sep 17 00:00:00 2001 From: Fabien Chouteau Date: Tue, 16 Nov 2021 11:37:43 +0100 Subject: [PATCH] Update xmlada-22.0.0.toml (#403) --- index/xm/xmlada/xmlada-22.0.0.toml | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/index/xm/xmlada/xmlada-22.0.0.toml b/index/xm/xmlada/xmlada-22.0.0.toml index 208d34eb..da001f8f 100644 --- a/index/xm/xmlada/xmlada-22.0.0.toml +++ b/index/xm/xmlada/xmlada-22.0.0.toml @@ -19,17 +19,14 @@ gnat = ">=11" [configuration] disabled = true -# Get up-to-date config.guess -[[actions]] +# 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]] type = "post-fetch" -command = ["wget", "http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD", "-O", "config.guess"] +command = ["sh", "configure", "--build=x86_64-w64-mingw32"] -# Get up-to-date config.sub -[[actions]] -type = "post-fetch" -command = ["wget", "http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD", "-O", "config.sub"] - -[[actions]] +# For other hosts the detection works fine: +[[actions."case(os)"."..."]] type = "post-fetch" command = ["sh", "configure"]