Skip to content

Commit

Permalink
Fix build with Python 3.8+
Browse files Browse the repository at this point in the history
PR:		254503
Submitted by:	kai


git-svn-id: svn+ssh://svn.freebsd.org/ports/head@569586 35697150-7ecd-e111-bb59-0022644237b5
  • Loading branch information
sunpoet committed Mar 30, 2021
1 parent af3dcc2 commit 42f09a3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion x11-fonts/py-opentype-sanitizer/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>=0:devel/py-pytest@${PY_FLAVOR}
USES= python:3.6+
USE_PYTHON= autoplist concurrent distutils

.include <bsd.port.pre.mk>

.if ${PYTHON_REL} >= 3800
LDFLAGS+= -lpython${PYTHON_VER}
.endif

post-patch:
@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|' ${WRKSRC}/src/python/ots/__init__.py
@${RM} -r ${WRKSRC}/src/c/
Expand All @@ -31,4 +37,4 @@ post-install:
do-test:
cd ${WRKSRC}/ && ${PYTHON_CMD} -m pytest -v

.include <bsd.port.mk>
.include <bsd.port.post.mk>

0 comments on commit 42f09a3

Please sign in to comment.