Skip to content

Commit

Permalink
textproc/ugrep: Update to 4.4.0
Browse files Browse the repository at this point in the history
- Install bash/fish/zsh autocompletions
- Add a patch (submitted upstream) to fix installation of autocompletions
  • Loading branch information
wahjava committed Dec 19, 2023
1 parent 997d82d commit 8276197
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 5 deletions.
7 changes: 5 additions & 2 deletions textproc/ugrep/Makefile
@@ -1,6 +1,6 @@
PORTNAME= ugrep
DISTVERSIONPREFIX= v
DISTVERSION= 4.3.6
DISTVERSION= 4.4.0
CATEGORIES= textproc

MAINTAINER= ashish@FreeBSD.org
Expand All @@ -22,7 +22,10 @@ OPTIONS_DEFAULT_aarch64= NEON
OPTIONS_DEFAULT_amd64= AVX SSE2

GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-boost-regex
CONFIGURE_ARGS= --with-boost-regex \
--with-bash-completion-dir=${PREFIX}/etc/bash_completion.d \
--with-fish-completion-dir=${PREFIX}/share/fish/completions \
--with-zsh-completion-dir=${PREFIX}/share/zsh/site-functions

SHEBANG_FILES= bin/ug+ bin/ugrep+
bash_CMD= ${SH}
Expand Down
6 changes: 3 additions & 3 deletions textproc/ugrep/distinfo
@@ -1,3 +1,3 @@
TIMESTAMP = 1702006751
SHA256 (Genivia-ugrep-v4.3.6_GH0.tar.gz) = 39f3205a2b8b79eeb6d2eaf1727c68262010e06ba5a7c42d5164c7ed6b6822f2
SIZE (Genivia-ugrep-v4.3.6_GH0.tar.gz) = 4445771
TIMESTAMP = 1702979343
SHA256 (Genivia-ugrep-v4.4.0_GH0.tar.gz) = 5b8a08743bbf5c8b9d4719211961b8fb427988ffcada6d8c57dfaed9b6d12f7e
SIZE (Genivia-ugrep-v4.4.0_GH0.tar.gz) = 4472594
25 changes: 25 additions & 0 deletions textproc/ugrep/files/patch-Makefile.in
@@ -0,0 +1,25 @@
--- Makefile.in.orig 2023-12-18 21:41:11 UTC
+++ Makefile.in
@@ -1024,19 +1024,19 @@ install-data-hook:
rm -f ug.1 && \
$(LN_S) ugrep.1 ug.1
@if [ "x$(bashcompletiondir)" != "x" ]; then \
- cd $(bashcompletiondir) && \
+ cd $(DESTDIR)$(bashcompletiondir) && \
$(LN_S) -f ug ug+ && \
$(LN_S) -f ug ugrep && \
$(LN_S) -f ug ugrep+; \
fi
@if [ "x$(fishcompletiondir)" != "x" ]; then \
- cd $(fishcompletiondir) && \
+ cd $(DESTDIR)$(fishcompletiondir) && \
sed -e 's/-c ug /-c ug+ /' ug.fish > ug+.fish && \
sed -e 's/-c ug /-c ugrep /' ug.fish > ugrep.fish && \
sed -e 's/-c ug /-c ugrep+ /' ug.fish > ugrep+.fish; \
fi
@if [ "x$(zshcompletiondir)" != "x" ]; then \
- cd $(zshcompletiondir) && \
+ cd $(DESTDIR)$(zshcompletiondir) && \
sed -e 's/^#compdef ug/#compdef ug+/' _ug > _ug+ && \
sed -e 's/^#compdef ug/#compdef ugrep/' _ug > _ugrep && \
sed -e 's/^#compdef ug/#compdef ugrep+/' _ug > _ugrep+; \
12 changes: 12 additions & 0 deletions textproc/ugrep/pkg-plist
Expand Up @@ -191,3 +191,15 @@ man/man1/ugrep.1.gz
%%DATADIR%%/patterns/xml/zap_comments
%%DATADIR%%/patterns/xml/zap_pis
%%DATADIR%%/patterns/xml/zap_strings
etc/bash_completion.d/ug
etc/bash_completion.d/ug+
etc/bash_completion.d/ugrep
etc/bash_completion.d/ugrep+
share/fish/completions/ug+.fish
share/fish/completions/ug.fish
share/fish/completions/ugrep+.fish
share/fish/completions/ugrep.fish
share/zsh/site-functions/_ug
share/zsh/site-functions/_ug+
share/zsh/site-functions/_ugrep
share/zsh/site-functions/_ugrep+

0 comments on commit 8276197

Please sign in to comment.