Compare commits

...

2 Commits

Author SHA1 Message Date
Alejandro R Mosteo 893ec65679 fix: improper syntax that will be rejected post-2.1 (#1417) (#1446)
* fix: improper syntax that will be rejected post-2.1 (#1417)

We had a missing check in index loading logic that should have rejected an unexpected array.

* Don't fail fast
2025-03-20 18:55:40 +01:00
Blady-Com 97ab1425bf gtkada 21.0.0: macOS support (#545)
* Add macOS support to GTKAda 21.0.0.

* Fix sed syntax for Linux.

* To be compatible between macOS and Linux, we should avoid sed -i and use tmp files instead.

* Disable problematic platforms

Co-authored-by: GHA <actions@github.com>
2022-09-27 18:04:28 +02:00
6 changed files with 23 additions and 3 deletions
+2 -1
View File
@@ -18,7 +18,8 @@ jobs:
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
strategy: strategy:
fail-fast: false
matrix: matrix:
os: os:
- macos-latest - macos-latest
+1
View File
@@ -20,6 +20,7 @@ jobs:
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
strategy: strategy:
fail-fast: false
matrix: matrix:
os: os:
- macos-latest - macos-latest
+9 -1
View File
@@ -12,7 +12,11 @@ tags = ["gtk", "gui"]
# Add msys in the OS list in config.sub # Add msys in the OS list in config.sub
[[actions]] [[actions]]
type = "post-fetch" type = "post-fetch"
command = ["sed", "-i", "s/| -mingw32\\*/| -mingw32\\* | -msys\\*/g", "config.sub"] command = ["sh", "-c", "sed 's/| -mingw32\\*/| -mingw32\\* | -msys\\*/g' config.sub > config.sub.0 && mv -f config.sub.0 config.sub"]
[[actions]]
type = "post-fetch"
command = ["sh", "-c", "sed '/misc_osx.h/a\\\nNSWindow *gdk_quartz_window_get_nswindow(GdkWindow *window);\n' src/misc_osx.m > src/misc_osx.m.0 && mv -f src/misc_osx.m.0 src/misc_osx.m"]
[[actions]] [[actions]]
type = "post-fetch" type = "post-fetch"
@@ -39,6 +43,10 @@ LIBRARY_TYPE = ["static", "static-pic", "relocatable"]
msys2.C_INCLUDE_PATH.append = "${DISTRIB_ROOT}/mingw64/x86_64-w64-mingw32/include" msys2.C_INCLUDE_PATH.append = "${DISTRIB_ROOT}/mingw64/x86_64-w64-mingw32/include"
msys2.LIBRARY_PATH.append = "${DISTRIB_ROOT}/mingw64/x86_64-w64-mingw32/lib" msys2.LIBRARY_PATH.append = "${DISTRIB_ROOT}/mingw64/x86_64-w64-mingw32/lib"
[available]
'case(os)'.windows = false
'case(distribution)'.arch = false
[origin] [origin]
url="https://github.com/AdaCore/gtkada/archive/v21.0.0/gtkada-21.0.0.zip" url="https://github.com/AdaCore/gtkada/archive/v21.0.0/gtkada-21.0.0.zip"
hashes=["sha512:3c1373c0a1168ae875398a0b5a1941234f6620ac114088980b83558c984c4566b87796fb4098de371af206ca6a4ae0fb4c6390119c5606a9f6a5b142916ce8d8"] hashes=["sha512:3c1373c0a1168ae875398a0b5a1941234f6620ac114088980b83558c984c4566b87796fb4098de371af206ca6a4ae0fb4c6390119c5606a9f6a5b142916ce8d8"]
+5
View File
@@ -10,3 +10,8 @@ kind = "system"
"debian|ubuntu" = ["libgtk-3-dev"] "debian|ubuntu" = ["libgtk-3-dev"]
arch = ["gtk3"] arch = ["gtk3"]
msys2 = ["mingw-w64-x86_64-gtk3"] msys2 = ["mingw-w64-x86_64-gtk3"]
[[external]]
kind = "version-output"
version-command = [ "pkg-config", "--modversion", "gtk+-3.0" ]
version-regexp = "([\\d\\.]+)"
@@ -10,3 +10,8 @@ kind = "system"
"debian|ubuntu" = ["pkg-config"] "debian|ubuntu" = ["pkg-config"]
arch = ["pkgconf"] arch = ["pkgconf"]
msys2 = ["mingw-w64-x86_64-pkg-config"] msys2 = ["mingw-w64-x86_64-pkg-config"]
[[external]]
kind = "version-output"
version-command = [ "pkg-config", "--version" ]
version-regexp = "([\\d\\.]+)"
+1 -1
View File
@@ -6,7 +6,7 @@ authors = ["Jeremy Grosser"]
maintainers = ["Jeremy Grosser <jeremy@synack.me>"] maintainers = ["Jeremy Grosser <jeremy@synack.me>"]
maintainers-logins = ["JeremyGrosser"] maintainers-logins = ["JeremyGrosser"]
licenses = "MIT" licenses = "MIT"
website = ["https://github.com/JeremyGrosser/tiny_text"] website = "https://github.com/JeremyGrosser/tiny_text"
tags = ["font", "hal", "bitmap", "text"] tags = ["font", "hal", "bitmap", "text"]
[[depends-on]] # This line was added by `alr with` [[depends-on]] # This line was added by `alr with`