~hp/lv2lint

21acf4f1dfdb5bef0a64ed9fe76caef3bbfc4929 — Hanspeter Portner 1 year, 5 months ago ec29cfe
add sr.ht build recipe
4 files changed, 32 insertions(+), 1 deletions(-)

A .build.yml
M README.md
M meson_options.txt
M src/lv2lint.c
A .build.yml => .build.yml +22 -0
@@ 0,0 1,22 @@
# SPDX-FileCopyrightText: Hanspeter Portner <dev@open-music-kontrollers.ch>
# 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

M README.md => README.md +2 -0
@@ 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.


M meson_options.txt => meson_options.txt +1 -1
@@ 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')

M src/lv2lint.c => src/lv2lint.c +7 -0
@@ 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)))