git: 2a8d11500648 - main - devel/ruby-subversion: Fix build with llvm15

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Mon, 12 Jun 2023 22:58:48 UTC
The branch main has been updated by bofh:

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

commit 2a8d115006485bcec6b46186ff87fbc1f9cebb5e
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-06-12 22:48:03 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-06-12 22:58:36 +0000

    devel/ruby-subversion: Fix build with llvm15
    
    Approved by:    portmgr (blanket)
---
 devel/ruby-subversion/Makefile | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/devel/ruby-subversion/Makefile b/devel/ruby-subversion/Makefile
index d1b8b6afc556..e5b3ba6bb22f 100644
--- a/devel/ruby-subversion/Makefile
+++ b/devel/ruby-subversion/Makefile
@@ -24,4 +24,8 @@ INSTALL_TARGET=	install-swig-rb
 
 CFLAGS+=	-fdeclspec
 
+.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400079 || ( ${OSVERSION} >= 1302505 && ${OSVERSION} < 1400000 ))
+CFLAGS+=	-Wno-error=int-conversion
+.endif
+
 .include <bsd.port.post.mk>