git: 57561a2ccb23 - main - math/rubygem-rb-gsl: Fix build with llvm15

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Tue, 13 Jun 2023 10:06:27 UTC
The branch main has been updated by bofh:

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

commit 57561a2ccb23ed19fac5feb1f2b8f414da2eb27a
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-06-13 08:55:02 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-06-13 10:06:14 +0000

    math/rubygem-rb-gsl: Fix build with llvm15
    
    Approved by:    portmgr (blanket)
---
 math/rubygem-rb-gsl/Makefile | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/math/rubygem-rb-gsl/Makefile b/math/rubygem-rb-gsl/Makefile
index f0967a1947c9..2eb3167a140b 100644
--- a/math/rubygem-rb-gsl/Makefile
+++ b/math/rubygem-rb-gsl/Makefile
@@ -16,4 +16,10 @@ RUN_DEPENDS=	rubygem-narray>=0.5.9:math/rubygem-narray
 
 USES=		gem
 
+.include <bsd.port.options.mk>
+
+.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400079 || ( ${OSVERSION} >= 1302505 && ${OSVERSION} < 1400000 ))
+CONFIGURE_ARGS+=	--with-cflags="-Wno-error=int-conversion"
+.endif
+
 .include <bsd.port.mk>