git: f20c31b383fd - 2023Q1 - devel/cargo-c: unbreak WITH_DEBUG in consumers after c9724410bb38

From: Jan Beich <jbeich_at_FreeBSD.org>
Date: Thu, 12 Jan 2023 16:23:26 UTC
The branch 2023Q1 has been updated by jbeich:

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

commit f20c31b383fd189e349a1f378079cfb849f68e3b
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:23:19 +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
    
    (cherry picked from commit 577b194fe1da55b53b73d2f18caf20605d6f8ce8)
---
 devel/cargo-c/Makefile | 4 ++++
 devel/cargo-c/distinfo | 2 ++
 2 files changed, 6 insertions(+)

diff --git a/devel/cargo-c/Makefile b/devel/cargo-c/Makefile
index 004200692db9..8dad2f5b6924 100644
--- a/devel/cargo-c/Makefile
+++ b/devel/cargo-c/Makefile
@@ -1,11 +1,15 @@
 PORTNAME=	cargo-c
 DISTVERSION=	0.9.15
 DISTVERSIONSUFFIX=	+cargo-0.67
+PORTREVISION=	1
 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