ports/devel/py-pymtbl/Makefile
Charlie Li 06a08e69f3
python: bump all USE_PYTHON=distutils consumers after RUN_DEPENDS removal
Any missed ports, feel free to bump.

Any ports that need setuptools at runtime can have the devel/py-setuptools
manually added back to RUN_DEPENDS, but understand that this practice
is deprecated; see CHANGES for details.
2025-03-07 23:05:21 -05:00

36 lines
848 B
Makefile

PORTNAME= pymtbl
PORTVERSION= 0.6.0
PORTREVISION= 2
CATEGORIES= devel python
MASTER_SITES= FARSIGHT LOCAL/truckman/farsight
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= truckman@FreeBSD.org
COMMENT= Python wrapper for devel/mtbl
WWW= https://github.com/farsightsec/pymtbl
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/COPYRIGHT
LIB_DEPENDS= libmtbl.so:devel/mtbl
USES= pkgconfig python shebangfix uniquefiles:dirs
USE_PYTHON= autoplist cython distutils
SHEBANG_FILES= examples/*.py examples/*/*.py
PORTEXAMPLES= *
CPPFLAGS+= -I${LOCALBASE}/include
OPTIONS_DEFINE= EXAMPLES
pre-build:
cython-${PYTHON_VER} ${WRKSRC}/mtbl.pyx
post-install:
${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/mtbl*.so
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR})
.include <bsd.port.mk>