git: e4fcbc5dd326 - main - graphics/py-pyx: Update to 0.16

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Fri, 30 Dec 2022 09:12:04 UTC
The branch main has been updated by sunpoet:

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

commit e4fcbc5dd326762c918cab3778d79a6ed21306f8
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2022-12-30 08:43:45 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2022-12-30 09:04:59 +0000

    graphics/py-pyx: Update to 0.16
    
    - Update WWW
    - Strip shared library
    
    Changes:        https://github.com/pyx-project/pyx/releases
                    https://github.com/pyx-project/pyx/blob/master/CHANGES
---
 graphics/py-pyx/Makefile              | 21 +++++++++++++++------
 graphics/py-pyx/distinfo              |  6 +++---
 graphics/py-pyx/files/patch-setup.cfg | 11 +++++++++++
 3 files changed, 29 insertions(+), 9 deletions(-)

diff --git a/graphics/py-pyx/Makefile b/graphics/py-pyx/Makefile
index 2d560abc241a..328773514bbb 100644
--- a/graphics/py-pyx/Makefile
+++ b/graphics/py-pyx/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	pyx
-PORTVERSION=	0.15
+PORTVERSION=	0.16
 CATEGORIES=	graphics python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -7,7 +7,8 @@ DISTNAME=	PyX-${PORTVERSION}
 
 MAINTAINER=	sunpoet@FreeBSD.org
 COMMENT=	Python package for creating encapsulated PostScript figures
-WWW=		https://pyx-project.org/
+WWW=		https://pyx-project.org/ \
+		https://github.com/pyx-project/pyx
 
 LICENSE=	GPLv2
 LICENSE_FILE=	${WRKSRC}/LICENSE
@@ -23,12 +24,20 @@ T1CODE_DESC=	Fast t1 font encoding/decoding
 
 KPATHSEA_CFLAGS=	-I${LOCALBASE}/include
 KPATHSEA_LDFLAGS=	-L${LOCALBASE}/lib
+KPATHSEA_LIB_DEPENDS=	libkpathsea.so:devel/tex-kpathsea
+KPATHSEA_VARS=		KPATHSEA=1
+KPATHSEA_VARS_OFF=	KPATHSEA=0
 T1CODE_CFLAGS=		-I${LOCALBASE}/include
+T1CODE_VARS=		T1CODE=1
+T1CODE_VARS_OFF=	T1CODE=0
 
-post-patch-KPATHSEA-on:
-	@${REINPLACE_CMD} -e 's|build_pykpathsea=0|build_pykpathsea=1|' ${WRKSRC}/setup.cfg
+post-patch:
+	@${REINPLACE_CMD} -e 's|%%KPATHSEA%%|${KPATHSEA}|; s|%%T1CODE%%|${T1CODE}|' ${WRKSRC}/setup.cfg
 
-post-patch-T1CODE-on:
-	@${REINPLACE_CMD} -e 's|build_t1code=0|build_t1code=1|' ${WRKSRC}/setup.cfg
+post-install-KPATHSEA-on:
+	${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name '*.so' -exec ${STRIP_CMD} {} +
+
+post-install-T1CODE-on:
+	${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name '*.so' -exec ${STRIP_CMD} {} +
 
 .include <bsd.port.mk>
diff --git a/graphics/py-pyx/distinfo b/graphics/py-pyx/distinfo
index 0d4ade771486..0d88ff76ab82 100644
--- a/graphics/py-pyx/distinfo
+++ b/graphics/py-pyx/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1581963845
-SHA256 (PyX-0.15.tar.gz) = 0fc3b00c5e7fb6f4aefbf63b95f624297dde47700a82b8b5ad6ebb346b5e4977
-SIZE (PyX-0.15.tar.gz) = 2559840
+TIMESTAMP = 1669057893
+SHA256 (PyX-0.16.tar.gz) = 4d8e3e471cd3e9a9bd13d5086cdf7c0af1b0c3f3e195e74f5f63318dc40a66d8
+SIZE (PyX-0.16.tar.gz) = 626703
diff --git a/graphics/py-pyx/files/patch-setup.cfg b/graphics/py-pyx/files/patch-setup.cfg
new file mode 100644
index 000000000000..0b30e10e47fb
--- /dev/null
+++ b/graphics/py-pyx/files/patch-setup.cfg
@@ -0,0 +1,11 @@
+--- setup.cfg.orig	2022-10-16 12:38:35 UTC
++++ setup.cfg
+@@ -1,6 +1,6 @@
+ [PyX]
+-build_t1code = 0
+-build_pykpathsea = 0
++build_t1code = %%T1CODE%%
++build_pykpathsea = %%KPATHSEA%%
+ 
+ [build_ext]
+