From dec3fa79a888ccc24433a058ba294cc202d2260e Mon Sep 17 00:00:00 2001 From: Andrew <51118083+ArionThinker@users.noreply.github.com> Date: Mon, 6 Nov 2023 19:53:19 +0200 Subject: [PATCH] gnome.org/glib-networking (#3959) * new file: projects/gnome.org/glib-networking/gtls-test.c new file: projects/gnome.org/glib-networking/package.yml * GIO_MODULE_DIR --- .../gnome.org/glib-networking/gtls-test.c | 8 ++++ .../gnome.org/glib-networking/package.yml | 47 +++++++++++++++++++ 2 files changed, 55 insertions(+) create mode 100644 projects/gnome.org/glib-networking/gtls-test.c create mode 100644 projects/gnome.org/glib-networking/package.yml diff --git a/projects/gnome.org/glib-networking/gtls-test.c b/projects/gnome.org/glib-networking/gtls-test.c new file mode 100644 index 00000000..5c8a3f65 --- /dev/null +++ b/projects/gnome.org/glib-networking/gtls-test.c @@ -0,0 +1,8 @@ +#include +int main (int argc, char *argv[]) +{ + if (g_tls_backend_supports_tls (g_tls_backend_get_default())) + return 0; + else + return 1; +} \ No newline at end of file diff --git a/projects/gnome.org/glib-networking/package.yml b/projects/gnome.org/glib-networking/package.yml new file mode 100644 index 00000000..e2939f2e --- /dev/null +++ b/projects/gnome.org/glib-networking/package.yml @@ -0,0 +1,47 @@ +distributable: + url: https://download.gnome.org/sources/glib-networking/{{version.marketing}}/glib-networking-{{version}}.tar.xz + strip-components: 1 +versions: + url: https://download.gnome.org/sources/glib-networking/cache.json + match: /glib-networking-\d+\.\d+\.\d+\.tar\.xz/ + strip: + - /^glib-networking-/ + - /\.tar\.xz/ +dependencies: + gnome.org/glib: '*' + gnutls.org: '*' + gnome.org/gsettings-desktop-schemas: '*' +runtime: + env: + GIO_MODULE_DIR: "{{prefix}}/lib/gio/modules" +build: + dependencies: + mesonbuild.com: '*' + ninja-build.org: '*' + freedesktop.org/pkg-config: '*' + linux: + llvm.org: '*' + script: + - meson $MESON_ARGS build + - meson compile -C build --verbose + - meson install -C build + env: + linux: + CC: clang + CXX: clang++ + LD: clang + MESON_ARGS: + - --prefix="{{prefix}}" + - --libdir="{{prefix}}/lib" + - --buildtype=release + - --wrap-mode=nofallback + - -Dlibproxy=disabled + - -Dopenssl=disabled + - -Dgnome_proxy=disabled +test: + dependencies: + linux: + llvm.org: '*' + script: + - cc gtls-test.c -D_REENTRANT -lgio-2.0 -lgobject-2.0 -lglib-2.0 -o test + - ./test