From df2a6db5ec9988bb7f2bb73c276a56e7759feb1a Mon Sep 17 00:00:00 2001 From: Max Howell Date: Thu, 2 Mar 2023 05:11:05 -0700 Subject: [PATCH] +gnu.org/grep Closes #374 --- projects/gnu.org/grep/package.yml | 34 +++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 projects/gnu.org/grep/package.yml diff --git a/projects/gnu.org/grep/package.yml b/projects/gnu.org/grep/package.yml new file mode 100644 index 00000000..ee231049 --- /dev/null +++ b/projects/gnu.org/grep/package.yml @@ -0,0 +1,34 @@ +distributable: + url: https://ftp.gnu.org/gnu/grep/grep-{{version.raw}}.tar.xz + strip-components: 1 + +versions: + - 3.8 + +dependencies: + pcre.org/v2: '*' + +build: + dependencies: + tea.xyz/gx/cc: c99 + tea.xyz/gx/make: '*' + freedesktop.org/pkg-config: ^0.29 + script: | + ./configure $ARGS + make --jobs {{ hw.concurrency }} install + env: + ARGS: + - --prefix={{prefix}} + - --disable-nls + - --mandir={{prefix}}/man + - --infodir={{prefix}}/info + - -with-packager=tea + +provides: + - bin/grep + +test: + fixture: + This line should be matched + script: + grep -P match $FIXTURE