mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
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
This commit is contained in:
parent
c7a337c546
commit
dec3fa79a8
2 changed files with 55 additions and 0 deletions
8
projects/gnome.org/glib-networking/gtls-test.c
Normal file
8
projects/gnome.org/glib-networking/gtls-test.c
Normal file
|
@ -0,0 +1,8 @@
|
|||
#include <gio/gio.h>
|
||||
int main (int argc, char *argv[])
|
||||
{
|
||||
if (g_tls_backend_supports_tls (g_tls_backend_get_default()))
|
||||
return 0;
|
||||
else
|
||||
return 1;
|
||||
}
|
47
projects/gnome.org/glib-networking/package.yml
Normal file
47
projects/gnome.org/glib-networking/package.yml
Normal file
|
@ -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
|
Loading…
Reference in a new issue