From 08b8fa7ddc952cd7256a24ebf325b662e1ffa3a3 Mon Sep 17 00:00:00 2001 From: tannevaled Date: Mon, 22 Jun 2026 08:47:07 +0200 Subject: [PATCH] new(github.com/Unidata/UDUNITS-2): udunits 2.2.28 --- .../github.com/Unidata/UDUNITS-2/package.yml | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 projects/github.com/Unidata/UDUNITS-2/package.yml diff --git a/projects/github.com/Unidata/UDUNITS-2/package.yml b/projects/github.com/Unidata/UDUNITS-2/package.yml new file mode 100644 index 0000000000..ce62242403 --- /dev/null +++ b/projects/github.com/Unidata/UDUNITS-2/package.yml @@ -0,0 +1,30 @@ +distributable: + url: https://github.com/Unidata/UDUNITS-2/archive/refs/tags/{{ version.tag }}.tar.gz + strip-components: 1 + +versions: + github: Unidata/UDUNITS-2/tags # no GitHub releases, only tags + +dependencies: + libexpat.github.io: ^2 + +build: + dependencies: + cmake.org: ^3 + github.com/westes/flex: '*' # archive lacks the generated lexer + gnu.org/bison: '*' # ...and parser + gnu.org/texinfo: '*' # *.info docs are an ALL target, not shipped + env: + ARGS: + - -DCMAKE_INSTALL_PREFIX={{ prefix }} + script: + - cmake -B build -S . $ARGS + - cmake --build build --parallel {{ hw.concurrency }} + - cmake --install build + +test: + # -H/-W still read stdin, so feed /dev/null; one pipe so it's a single shell + - (udunits2 -H hours -W seconds &1 || true) | grep "1 hours = 3600 seconds" + +provides: + - bin/udunits2