git: ee63b76b5c1d - main - lang/python3: Add python3-embed.pc

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Tue, 18 Jun 2024 19:54:07 UTC
The branch main has been updated by sunpoet:

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

commit ee63b76b5c1d8543b408f8c246200d4dd0ffb57e
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-06-18 19:53:34 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-06-18 19:53:34 +0000

    lang/python3: Add python3-embed.pc
    
    - Remove -f from LN
    - Cosmetic change
    - Bump PORTREVISION for package change
    
    PR:             257362
---
 lang/python3/Makefile | 13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)

diff --git a/lang/python3/Makefile b/lang/python3/Makefile
index 4bc0e7a9e93c..e67046a673b7 100644
--- a/lang/python3/Makefile
+++ b/lang/python3/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	python3
 PORTVERSION=	3
-PORTREVISION=	3
+PORTREVISION=	4
 CATEGORIES=	lang python
 MASTER_SITES=	# empty
 DISTFILES=	# empty
@@ -20,16 +20,15 @@ PLIST_FILES=	bin/2to3-3 \
 		bin/pydoc3 \
 		bin/python3 \
 		bin/python3-config \
+		libdata/pkgconfig/python3-embed.pc \
 		libdata/pkgconfig/python3.pc
 
 do-install:
 .for file in 2to3- idle pydoc python
-	${LN} -sf ${file}${PYTHON_VER} \
-		${STAGEDIR}${PREFIX}/bin/${file}3
+	${LN} -s ${file}${PYTHON_VER} ${STAGEDIR}${PREFIX}/bin/${file}3
 .endfor
-	${LN} -sf python${PYTHON_VER}-config \
-		${STAGEDIR}${PREFIX}/bin/python3-config
-	${LN} -sf python-${PYTHON_VER}.pc \
-		${STAGEDIR}${PREFIX}/libdata/pkgconfig/python3.pc
+	${LN} -s python${PYTHON_VER}-config ${STAGEDIR}${PREFIX}/bin/python3-config
+	${LN} -s python-${PYTHON_VER}.pc ${STAGEDIR}${PREFIX}/libdata/pkgconfig/python3.pc
+	${LN} -s python-${PYTHON_VER}-embed.pc ${STAGEDIR}${PREFIX}/libdata/pkgconfig/python3-embed.pc
 
 .include <bsd.port.mk>