git: 3f0b80a142d7 - main - math/mpfrc++: Update 3.6.8 -> 3.6.9

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Mon, 31 Jan 2022 19:27:49 UTC
The branch main has been updated by yuri:

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

commit 3f0b80a142d77b8f24f30386dc45a20c4795605b
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-01-31 17:48:27 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-01-31 19:27:40 +0000

    math/mpfrc++: Update 3.6.8 -> 3.6.9
    
    Also add DEPENDS lines and test target.
    
    Reported by:    portscout
---
 math/mpfrc++/Makefile | 13 ++++++++++++-
 math/mpfrc++/distinfo |  6 +++---
 2 files changed, 15 insertions(+), 4 deletions(-)

diff --git a/math/mpfrc++/Makefile b/math/mpfrc++/Makefile
index 690f98830ed1..918bf6ce2391 100644
--- a/math/mpfrc++/Makefile
+++ b/math/mpfrc++/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	mpfrc++
 DISTVERSIONPREFIX=	${PORTNAME}-
-DISTVERSION=	3.6.8
+DISTVERSION=	3.6.9
 CATEGORIES=	math devel
 
 MAINTAINER=	yuri@FreeBSD.org
@@ -9,6 +9,9 @@ COMMENT=	High-performance C++ interface for MPFR library
 LICENSE=	GPLv3
 LICENSE_FILE=	${WRKSRC}/copying.txt
 
+RUN_DEPENDS=	${PREFIX}/include/mpfr.h:math/mpfr
+TEST_DEPENDS=	${PREFIX}/include/mpfr.h:math/mpfr
+
 USE_GITHUB=	yes
 GH_ACCOUNT=	advanpix
 GH_PROJECT=	mpreal
@@ -21,4 +24,12 @@ PLIST_FILES=	include/mpreal.h
 do-install:
 	${INSTALL_DATA} ${WRKSRC}/mpreal.h ${STAGEDIR}${PREFIX}/include/
 
+do-test:
+	@${CXX} -o ${WRKDIR}/test \
+		-I${PREFIX}/include -I ${STAGEDIR}${PREFIX}/include \
+		-L${PREFIX}/lib -lmpfr \
+		${WRKSRC}/example/example.cpp && \
+	${WRKDIR}/test && \
+	${ECHO} "Test succeeded"
+
 .include <bsd.port.mk>
diff --git a/math/mpfrc++/distinfo b/math/mpfrc++/distinfo
index 854f1118b99b..0c37b8e2f03c 100644
--- a/math/mpfrc++/distinfo
+++ b/math/mpfrc++/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1605388722
-SHA256 (advanpix-mpreal-mpfrc++-3.6.8_GH0.tar.gz) = 2b10063a1b0f6b1e2c3b02ac948152d18eaf3d8893dff296b40e226ba7ed062b
-SIZE (advanpix-mpreal-mpfrc++-3.6.8_GH0.tar.gz) = 37336
+TIMESTAMP = 1643650876
+SHA256 (advanpix-mpreal-mpfrc++-3.6.9_GH0.tar.gz) = 7ff631e530778f459d74aff624868a7a2aed91c0f694ed32bd6c3501dc7f8540
+SIZE (advanpix-mpreal-mpfrc++-3.6.9_GH0.tar.gz) = 38218