From c24daacc139915bdee0ef0e2dc7f6c71977caf1e Mon Sep 17 00:00:00 2001 From: Maxim Reznik Date: Fri, 28 Oct 2022 12:20:01 +0300 Subject: [PATCH] Add gtkada-22.0.0 (#670) --- index/gt/gtkada/gtkada-22.0.0.toml | 48 ++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 index/gt/gtkada/gtkada-22.0.0.toml diff --git a/index/gt/gtkada/gtkada-22.0.0.toml b/index/gt/gtkada/gtkada-22.0.0.toml new file mode 100644 index 00000000..c2667329 --- /dev/null +++ b/index/gt/gtkada/gtkada-22.0.0.toml @@ -0,0 +1,48 @@ +description = "An Ada graphical toolkit based on Gtk+" +website = "https://github.com/adacore/gtkada" +name = "gtkada" +version = "22.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."case(os)".windows]] +type = "post-fetch" +command = ["bash", "-c", "PATH=${DISTRIB_ROOT}/mingw64/bin:${PATH} ./configure --build=x86_64-w64-mingw32 --with-GL=no"] + +[[actions."case(os)"."..."]] +type = "post-fetch" +command = ["bash", "configure", "--with-GL=no"] + +# Generate gtkada-intl.adb to be able to build with gtkada.gpr +[[actions."case(os)".windows]] +type = "post-fetch" +command = ["make", "src/gtkada-intl.adb"] + +# Duplicate post-fetch for other OS to have a correct TOML +[[actions."case(os)"."..."]] +type = "post-fetch" +command = ["make", "src/gtkada-intl.adb"] + +[[depends-on]] +make = "*" +pkg_config = "*" +libgtk3 = "^3" + +[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/v22.0.0/gtkada-22.0.0.zip" +hashes=["sha512:8192cf81732dd1ce7bc6a2c7bf43e4665877933777af8ccc1a2ced48bec83c1550959e8fb1f786b9b8fef3f5ae5d854a0b3696af49cdb9d603d4429e2a58c42c"]