git: 577b194fe1da - main - devel/cargo-c: unbreak WITH_DEBUG in consumers after c9724410bb38

From: Jan Beich <jbeich_at_FreeBSD.org>
Date: Thu, 12 Jan 2023 16:22:41 UTC
The branch main has been updated by jbeich:

URL: https://cgit.FreeBSD.org/ports/commit/?id=577b194fe1da55b53b73d2f18caf20605d6f8ce8

commit 577b194fe1da55b53b73d2f18caf20605d6f8ce8
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2023-01-11 13:41:08 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2023-01-12 16:20:51 +0000

    devel/cargo-c: unbreak WITH_DEBUG in consumers after c9724410bb38
    
    error: The argument '--debug <debug>' requires a value but none was supplied
    
    Reported by:    mizhka
    Regressed by:   https://github.com/lu-zero/cargo-c/commit/32f7e107b17c
---
 devel/cargo-c/Makefile | 5 ++++-
 devel/cargo-c/distinfo | 2 ++
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/devel/cargo-c/Makefile b/devel/cargo-c/Makefile
index 2fe46a757d61..b1f39d925c58 100644
--- a/devel/cargo-c/Makefile
+++ b/devel/cargo-c/Makefile
@@ -1,12 +1,15 @@
 PORTNAME=	cargo-c
 DISTVERSION=	0.9.15
 DISTVERSIONSUFFIX=	+cargo-0.67
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	devel
 MASTER_SITES=	CRATESIO
 # XXX Teach USES=cargo to have proper default
 DISTFILES=	${CARGO_DIST_SUBDIR}/${DISTNAME}${CARGO_CRATE_EXT}
 
+PATCH_SITES=	https://github.com/lu-zero/${PORTNAME}/commit/
+PATCHFILES+=	4ec3bb5bf198.patch:-p1 # https://github.com/lu-zero/cargo-c/pull/303
+
 MAINTAINER=	jbeich@FreeBSD.org
 COMMENT=	Cargo C-ABI helpers
 WWW=		https://github.com/lu-zero/cargo-c
diff --git a/devel/cargo-c/distinfo b/devel/cargo-c/distinfo
index dc83d6a2f91c..2e4b436ccd23 100644
--- a/devel/cargo-c/distinfo
+++ b/devel/cargo-c/distinfo
@@ -331,3 +331,5 @@ SHA256 (rust/crates/windows_x86_64_msvc-0.36.1.crate) = c811ca4a8c853ef420abd859
 SIZE (rust/crates/windows_x86_64_msvc-0.36.1.crate) = 661999
 SHA256 (rust/crates/windows_x86_64_msvc-0.42.0.crate) = f40009d85759725a34da6d89a94e63d7bdc50a862acf0dbc7c8e488f1edcb6f5
 SIZE (rust/crates/windows_x86_64_msvc-0.42.0.crate) = 659377
+SHA256 (4ec3bb5bf198.patch) = df83d9e9784818b43ef0f84962d1e314a84879ab562c89f528680f921279b804
+SIZE (4ec3bb5bf198.patch) = 2845