git: 5337cc5c4a60 - main - devel/git-cinnabar: unbreak with git/CURL=off (track direct dependency)

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

URL: https://cgit.FreeBSD.org/ports/commit/?id=5337cc5c4a604109d3c9ddeb81315b8d7861db82

commit 5337cc5c4a604109d3c9ddeb81315b8d7861db82
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2023-03-22 18:40:59 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2023-03-22 20:00:15 +0000

    devel/git-cinnabar: unbreak with git/CURL=off (track direct dependency)
    
    In file included from helper/hg-bundle.c:3:
    ./http.h:6:10: fatal error: 'curl/curl.h' file not found
     #include <curl/curl.h>
              ^~~~~~~~~~~~~
    
    Error: /usr/local/libexec/git-core/git-cinnabar-helper is linked to /usr/local/lib/libcurl.so.4 from ftp/curl but it is not declared as
    a dependency
    Warning: you need LIB_DEPENDS+=libcurl.so:ftp/curl
    
    Regressed by:   https://github.com/glandium/git-cinnabar/commit/fb3292fa908a
    See also:       https://github.com/glandium/git-cinnabar/commit/76edb8c76bbb
---
 devel/git-cinnabar/Makefile | 1 +
 1 file changed, 1 insertion(+)

diff --git a/devel/git-cinnabar/Makefile b/devel/git-cinnabar/Makefile
index 84f39404465a..4afb022796d8 100644
--- a/devel/git-cinnabar/Makefile
+++ b/devel/git-cinnabar/Makefile
@@ -10,6 +10,7 @@ WWW=		https://github.com/glandium/git-cinnabar
 LICENSE=	GPLv2
 
 BUILD_DEPENDS=	${NONEXISTENT}:devel/git:configure
+LIB_DEPENDS=	libcurl.so:ftp/curl
 RUN_DEPENDS=	git:devel/git
 
 USE_GITHUB=	yes