git: 4ed60cbb4ebd - main - devel/git-cinnabar: drop unused dependencies

From: Jan Beich <jbeich_at_FreeBSD.org>
Date: Wed, 22 Mar 2023 20:08:19 UTC
The branch main has been updated by jbeich:

URL: https://cgit.FreeBSD.org/ports/commit/?id=4ed60cbb4ebdf12a283f3f619e12d780d5c36354

commit 4ed60cbb4ebdf12a283f3f619e12d780d5c36354
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2023-03-22 19:26:46 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2023-03-22 20:00:15 +0000

    devel/git-cinnabar: drop unused dependencies
    
    Error: /usr/local/libexec/git-core/git-cinnabar-helper is linked to /usr/local/lib/libintl.so.8 from devel/gettext-runtime but it is not declared as a dependency
    Warning: you need USES+=gettext-runtime
    
    Error: /usr/local/libexec/git-core/git-cinnabar-helper is linked to /usr/local/lib/libpcre2-8.so.0 from devel/pcre2 but it is not declared as a dependency
    Warning: you need LIB_DEPENDS+=libpcre2-8.so:devel/pcre2
---
 devel/git-cinnabar/Makefile              |  2 +-
 devel/git-cinnabar/files/patch-no-unused | 14 ++++++++++++++
 2 files changed, 15 insertions(+), 1 deletion(-)

diff --git a/devel/git-cinnabar/Makefile b/devel/git-cinnabar/Makefile
index 4afb022796d8..9ac3716ab379 100644
--- a/devel/git-cinnabar/Makefile
+++ b/devel/git-cinnabar/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	git-cinnabar
 DISTVERSION=	0.5.11
-PORTREVISION=	4
+PORTREVISION=	5
 CATEGORIES=	devel
 
 MAINTAINER=	jbeich@FreeBSD.org
diff --git a/devel/git-cinnabar/files/patch-no-unused b/devel/git-cinnabar/files/patch-no-unused
new file mode 100644
index 000000000000..240a8158fc35
--- /dev/null
+++ b/devel/git-cinnabar/files/patch-no-unused
@@ -0,0 +1,14 @@
+https://github.com/glandium/git-cinnabar/commit/970abc2994ff
+https://github.com/glandium/git-cinnabar/commit/70f35a268199
+
+--- Makefile.orig	2022-10-28 23:43:03 UTC
++++ Makefile
+@@ -51,7 +51,7 @@ include git-core/config.mak.uname
+ 
+ .PHONY: FORCE
+ 
+-git-cinnabar-helper$X: EXTRA_FLAGS=USE_LIBPCRE= USELIBPCRE1= USELIBPCRE2= FSMONITOR_DAEMON_BACKEND=
++git-cinnabar-helper$X: EXTRA_FLAGS=NO_GETTEXT?=1 NO_OPENSSL?=1 USE_LIBPCRE1= USE_LIBPCRE2= FSMONITOR_DAEMON_BACKEND=
+ git-cinnabar-helper$X git git-install: FORCE
+ 
+ helper: git-cinnabar-helper$X