From b5eb5aa08cfe6bb86ba93f15299dcdea49c133ad Mon Sep 17 00:00:00 2001 From: Fabien Chouteau Date: Mon, 18 Dec 2023 20:07:52 +0100 Subject: [PATCH] gtkada 24.0.0 (#936) * GtkAda 24.0.0 * pkg_config-external.toml: add homebrew and macport distrib --- index/gt/gtkada/gtkada-24.0.0.toml | 41 ++++++++++++++++++++ index/pk/pkg_config/pkg_config-external.toml | 3 +- 2 files changed, 43 insertions(+), 1 deletion(-) create mode 100644 index/gt/gtkada/gtkada-24.0.0.toml diff --git a/index/gt/gtkada/gtkada-24.0.0.toml b/index/gt/gtkada/gtkada-24.0.0.toml new file mode 100644 index 000000000..c4f4f5096 --- /dev/null +++ b/index/gt/gtkada/gtkada-24.0.0.toml @@ -0,0 +1,41 @@ +description = "An Ada graphical toolkit based on Gtk+" +long-description = "This crate requires Gtk3+ >= 3.24.24" +website = "https://github.com/adacore/gtkada" +name = "gtkada" +version = "24.0.0" +authors = ["AdaCore"] +licenses = "GPL-3.0-or-later WITH GCC-exception-3.1" +maintainers = ["chouteau@adacore.com", "reznikmm@gmail.com"] +maintainers-logins = ["Fabien-Chouteau", "reznikmm"] +project-files = ["src/gtkada.gpr"] +tags = ["gtk", "gui"] + +[configuration] +disabled = true + +# Prepend PATH with pkg-config directory to stabilize GitHub CI +[[actions]] +type = "post-fetch" +command = ["bash", "-c", "PATH=${DISTRIB_ROOT}/mingw64/bin:${PATH} ./configure"] + +# Generate gtkada-intl.adb to be able to build with gtkada.gpr +[[actions]] +type = "post-fetch" +command = ["make", "src/gtkada-intl.adb"] + +[[depends-on]] +make = "*" +pkg_config = "*" +libgtk3 = ">=3.24.24" + +[gpr-externals] +LIBRARY_TYPE = ["static", "static-pic", "relocatable"] + +# Update PATH on Windows to help deps find .DLL files +[environment.'case(os)'.windows.PATH] +append = "${CRATE_ROOT}/src/obj/gtkada/relocatable" + +[origin] +url="https://github.com/AdaCore/gtkada/archive/v24.0.0/gtkada-24.0.0.zip" +hashes=["sha512:80c56171029539ab95be130cd3febcb6d65106fd9c5f9fda7e812c3f23b6e9da76cea636d257fa5778644d896f3c0dd6c2a6af8eca63ac9b5747993965ddc416"] + diff --git a/index/pk/pkg_config/pkg_config-external.toml b/index/pk/pkg_config/pkg_config-external.toml index 124600ab7..e18211bf3 100644 --- a/index/pk/pkg_config/pkg_config-external.toml +++ b/index/pk/pkg_config/pkg_config-external.toml @@ -7,9 +7,10 @@ maintainers-logins = ["Fabien-Chouteau"] [[external]] kind = "system" [external.origin."case(distribution)"] -"debian|ubuntu" = ["pkg-config"] +"debian|ubuntu|homebrew" = ["pkg-config"] arch = ["pkgconf"] msys2 = ["mingw-w64-x86_64-pkg-config"] +macports = ["pkgconfig"] [[external]] kind = "version-output"