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.1"
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.1/gtkada-24.0.1.zip"
hashes=["sha512:8de57f739051f29efb64c6f1c75f7b7f46fe64b73b0f4165b6e838646dac5a868eeb20ee016129ac6088c188fa77c6777d08f1117efe152c95858fac82caf595"]

