mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-30 01:15:52 +00:00
95142eca70
The port has moved to github and py-yara is no longer a separate tarball for distribution. It is now bundled with the yara code. At some point I want to make py-yara not depend directly upon yara. This way you can get just the python bindings without needing to install yara itself.
32 lines
646 B
Makefile
32 lines
646 B
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= yara
|
|
PORTVERSION= 2.0.0
|
|
CATEGORIES= security
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= wxs@FreeBSD.org
|
|
COMMENT= Python bindings for yara
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= plusvic
|
|
GH_TAGNAME= v2.0.0
|
|
GH_COMMIT= d5dbefb
|
|
|
|
LIB_DEPENDS= yara:${PORTSDIR}/security/yara
|
|
|
|
USE_PYTHON= yes
|
|
USE_PYDISTUTILS= yes
|
|
PYDISTUTILS_AUTOPLIST= yes
|
|
PYDISTUTILS_EGGINFO= yara_python-${PORTVERSION}-${PYTHON_VERSION:S/thon//}.egg-info
|
|
|
|
BUILD_WRKSRC= ${WRKSRC}/yara-python
|
|
INSTALL_WRKSRC= ${WRKSRC}/yara-python
|
|
|
|
NO_STAGE= yes
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' ${BUILD_WRKSRC}/setup.py
|
|
|
|
.include <bsd.port.mk>
|