git: 5ac1c11804f3 - main - math/mpdecimal: Update 4.0.0 => 4.0.1

From: Vladimir Druzenko <vvd_at_FreeBSD.org>
Date: Wed, 07 May 2025 14:01:39 UTC
The branch main has been updated by vvd:

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

commit 5ac1c11804f347e693be9754643241ddb296a930
Author:     Vladimir Druzenko <vvd@FreeBSD.org>
AuthorDate: 2025-05-07 13:46:33 +0000
Commit:     Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2025-05-07 14:01:27 +0000

    math/mpdecimal: Update 4.0.0 => 4.0.1
    
    Changelog:
    https://www.bytereef.org/mpdecimal/changelog.html#version-4-0-1
    
    - Remove GNU_CONFIGURE_MANPREFIX.
    - Remove CONFIGURE_ARGS=LD="${CC}" LDXX="${CXX}" - unconditionally
    sets LD=$CC and LDXX=$CXX in ./configure now.
    - Add USES+=pathfix to fix path for install *.pc files:
      lib/pkgconfig => libdata/pkgconfig.
    
    PR:             286616
    Approved by:    Stefan Krah <skrah@bytereef.org> (maintainer)
    Co-authored-by: wen <wenheping2000@hotmail.com>
---
 math/mpdecimal/Makefile  | 19 +++++--------------
 math/mpdecimal/distinfo  |  6 +++---
 math/mpdecimal/pkg-plist |  4 ++--
 3 files changed, 10 insertions(+), 19 deletions(-)

diff --git a/math/mpdecimal/Makefile b/math/mpdecimal/Makefile
index 153cddf87ee3..5d0737563a01 100644
--- a/math/mpdecimal/Makefile
+++ b/math/mpdecimal/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	mpdecimal
-DISTVERSION=	4.0.0
+DISTVERSION=	4.0.1
 CATEGORIES=	math
 MASTER_SITES=	https://www.bytereef.org/software/mpdecimal/releases/
 
@@ -10,24 +10,15 @@ WWW=		https://www.bytereef.org/mpdecimal/index.html
 LICENSE=	BSD2CLAUSE
 LICENSE_FILE=	${WRKSRC}/COPYRIGHT.txt
 
-USES=		compiler:c++11-lang gmake
-
-GNU_CONFIGURE=	yes
-GNU_CONFIGURE_MANPREFIX=	${PREFIX}/share
+USES=		compiler:c++11-lang gmake pathfix
 USE_LDCONFIG=	yes
+GNU_CONFIGURE=	yes
+CONFIGURE_ARGS=	LDXXFLAGS="${LDFLAGS}"
 ALL_TARGET=	default
 TEST_TARGET=	check_local
 
-.include <bsd.port.pre.mk>
-
-.if ${CHOSEN_COMPILER_TYPE} == gcc
-CONFIGURE_ARGS=	LD="${CC}" LDXX="${CXX}"
-.endif
-
-CONFIGURE_ARGS+=	LDXXFLAGS="${LDFLAGS}"
-
 post-install:
 	${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libmpdec.so.${DISTVERSION}
 	${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libmpdec++.so.${DISTVERSION}
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/math/mpdecimal/distinfo b/math/mpdecimal/distinfo
index e2dccc54dba9..416517172a07 100644
--- a/math/mpdecimal/distinfo
+++ b/math/mpdecimal/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1705611012
-SHA256 (mpdecimal-4.0.0.tar.gz) = 942445c3245b22730fd41a67a7c5c231d11cb1b9936b9c0f76334fb7d0b4468c
-SIZE (mpdecimal-4.0.0.tar.gz) = 315325
+TIMESTAMP = 1746498597
+SHA256 (mpdecimal-4.0.1.tar.gz) = 96d33abb4bb0070c7be0fed4246cd38416188325f820468214471938545b1ac8
+SIZE (mpdecimal-4.0.1.tar.gz) = 316268
diff --git a/math/mpdecimal/pkg-plist b/math/mpdecimal/pkg-plist
index e5528a23a04f..8246911670da 100644
--- a/math/mpdecimal/pkg-plist
+++ b/math/mpdecimal/pkg-plist
@@ -3,11 +3,11 @@ include/mpdecimal.h
 lib/libmpdec++.a
 lib/libmpdec++.so
 lib/libmpdec++.so.4
-lib/libmpdec++.so.4.0.0
+lib/libmpdec++.so.4.0.1
 lib/libmpdec.a
 lib/libmpdec.so
 lib/libmpdec.so.4
-lib/libmpdec.so.4.0.0
+lib/libmpdec.so.4.0.1
 libdata/pkgconfig/libmpdec++.pc
 libdata/pkgconfig/libmpdec.pc
 share/man/man3/libmpdec++.3.gz