From 21acf4f1dfdb5bef0a64ed9fe76caef3bbfc4929 Mon Sep 17 00:00:00 2001 From: Hanspeter Portner Date: Sun, 23 Apr 2023 18:51:51 +0200 Subject: [PATCH] add sr.ht build recipe --- .build.yml | 22 ++++++++++++++++++++++ README.md | 2 ++ meson_options.txt | 2 +- src/lv2lint.c | 7 +++++++ 4 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 .build.yml diff --git a/.build.yml b/.build.yml new file mode 100644 index 0000000..36316a9 --- /dev/null +++ b/.build.yml @@ -0,0 +1,22 @@ +# SPDX-FileCopyrightText: Hanspeter Portner +# SPDX-License-Identifier: CC0-1.0 + +image: alpine/latest +packages: + - reuse + - meson + - lv2-dev + - lilv-dev + - curl-dev + - elfutils-dev + - libx11-dev +tasks: + - setup: | + cd lv2lint + meson setup build -Delf-tests=enabled -Donline-tests=enabled -Dx11-tests=enabled + - build: | + cd lv2lint + ninja -C build + - test: | + cd lv2lint + ninja -C build test diff --git a/README.md b/README.md index 35e5e2f..0238d83 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,8 @@ ### Check whether a given LV2 plugin is up to the specification +[![builds.sr.ht status](https://builds.open-music-kontrollers.ch/~hp/lv2lint/.svg)](https://builds.open-music-kontrollers.ch/~hp/lv2lint/?) + An LV2 lint-like tool that checks whether a given plugin and its UI(s) match up with the provided metadata and adhere to well-known best practices. diff --git a/meson_options.txt b/meson_options.txt index 0c83951..5b677dd 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -4,4 +4,4 @@ option('online-tests', type : 'feature', value : 'disabled') option('elf-tests', type : 'feature', value : 'disabled') option('x11-tests', type : 'feature', value : 'disabled') -option('version', type : 'string', value : '0.17.71') +option('version', type : 'string', value : '0.17.75') diff --git a/src/lv2lint.c b/src/lv2lint.c index 052c88e..4cc476d 100644 --- a/src/lv2lint.c +++ b/src/lv2lint.c @@ -2376,6 +2376,13 @@ main(int argc, char **argv) { const LilvPort *port = lilv_plugin_get_port_by_index(app.plugin, p); + LilvNode *minsize = lilv_port_get(app.plugin, port, NODE(&app, RESIZE_PORT__minimumSize)); + if(minsize) + { + //FIXME no something with it + lilv_node_free(minsize); + } + port_t *tar = &ports[p]; tar->seq.atom.type = ATOM__Sequence; if(lilv_port_is_a(app.plugin, port, NODE(&app, CORE__InputPort))) -- 2.38.5