From 9bc3a73c01b0de1b08122f2fb916033106ba7661 Mon Sep 17 00:00:00 2001 From: James Reynolds Date: Fri, 3 Nov 2023 16:54:32 -0600 Subject: [PATCH] +github.com/moretension/duti (#3950) * +github.com/moretension/duti * +github.com/moretension/duti fix test --------- Co-authored-by: James Reynolds --- .../github.com/moretension/duti/package.yml | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 projects/github.com/moretension/duti/package.yml diff --git a/projects/github.com/moretension/duti/package.yml b/projects/github.com/moretension/duti/package.yml new file mode 100644 index 00000000..05798ea7 --- /dev/null +++ b/projects/github.com/moretension/duti/package.yml @@ -0,0 +1,36 @@ +distributable: + url: https://github.com/moretension/duti/archive/refs/tags/duti-{{version}}.tar.gz + strip-components: 1 + +versions: + github: moretension/duti/tags + strip: /duti-/ + +platforms: + - darwin + +build: + dependencies: + gnu.org/autoconf: '*' + script: + - run: | + curl -L https://github.com/moretension/duti/commit/825b5e6a92770611b000ebdd6e3d3ef8f47f1c47.patch?full_index=1 | patch -p1 # 10.14 + curl -L https://github.com/moretension/duti/commit/4a1f54faf29af4f125134aef3a47cfe05c7755ff.patch?full_index=1 | patch -p1 # 10.15 + curl -L https://github.com/moretension/duti/commit/ec195e261f8a48a1a18e262a2b1f0ef26a0bc1ee.patch?full_index=1 | patch -p1 # 12 + curl -L https://github.com/moretension/duti/commit/54a1539b23ac764b32679bcada5659fbad483ecc.patch?full_index=1 | patch -p1 # 13 + curl -L https://github.com/moretension/duti/commit/8d31a2f75fefb61381dc7731cf7ecac9237ee64d.patch?full_index=1 | patch -p1 + if: <=1.5.4 + - autoreconf -i + - ./configure $ARGS + - make + - make --jobs {{ hw.concurrency }} install + env: + ARGS: + - --prefix="{{prefix}}" + +provides: + - bin/duti + +test: + script: | + duti -l public.text | grep com.apple.TextEdit