git: 9fd243c0618a - main - databases/mdbx: consistency fix, use INSTALL_DATA

From: Zsolt Udvari <uzsolt_at_FreeBSD.org>
Date: Tue, 27 Aug 2024 18:33:45 UTC
The branch main has been updated by uzsolt:

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

commit 9fd243c0618a665bdbfd8060abe380795e77d663
Author:     Zsolt Udvari <uzsolt@FreeBSD.org>
AuthorDate: 2024-08-27 18:28:36 +0000
Commit:     Zsolt Udvari <uzsolt@FreeBSD.org>
CommitDate: 2024-08-27 18:33:25 +0000

    databases/mdbx: consistency fix, use INSTALL_DATA
    
    Replace every PORTVERSION to DISTVERSION after previous commit.
    Use INSTALL_DATA to install static libraries.
    
    Reported by:    diizzy (email)
    Approved by:    portmgr (blanket)
---
 databases/mdbx/Makefile | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/databases/mdbx/Makefile b/databases/mdbx/Makefile
index 0ae66b3b4ea9..5589986e871e 100644
--- a/databases/mdbx/Makefile
+++ b/databases/mdbx/Makefile
@@ -18,12 +18,12 @@ USE_LDCONFIG=	yes
 
 NO_WRKSUBDIR=	yes
 
-PLIST_SUB=	VERSION=${PORTVERSION}
+PLIST_SUB=	VERSION=${DISTVERSION}
 
 post-install:
-	${CP}  ${BUILD_WRKSRC}/libmdbx-static.a ${STAGEDIR}${PREFIX}/lib/libmdbx.a
-	${MV}  ${STAGEDIR}${PREFIX}/lib/libmdbx.so ${STAGEDIR}${PREFIX}/lib/libmdbx.so.${PORTVERSION}
-	${RLN} libmdbx.so.${PORTVERSION} ${STAGEDIR}${PREFIX}/lib/libmdbx.so
-	${RLN} libmdbx.so.${PORTVERSION} ${STAGEDIR}${PREFIX}/lib/libmdbx.so.0
+	${INSTALL_DATA} ${BUILD_WRKSRC}/libmdbx-static.a ${STAGEDIR}${PREFIX}/lib/libmdbx.a
+	${MV}  ${STAGEDIR}${PREFIX}/lib/libmdbx.so ${STAGEDIR}${PREFIX}/lib/libmdbx.so.${DISTVERSION}
+	${RLN} libmdbx.so.${DISTVERSION} ${STAGEDIR}${PREFIX}/lib/libmdbx.so
+	${RLN} libmdbx.so.${DISTVERSION} ${STAGEDIR}${PREFIX}/lib/libmdbx.so.0
 
 .include <bsd.port.mk>