diff options
Diffstat (limited to 'security/py-clamav/Makefile')
-rw-r--r-- | security/py-clamav/Makefile | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/security/py-clamav/Makefile b/security/py-clamav/Makefile index 788881e86b1e..c01dcb1b6794 100644 --- a/security/py-clamav/Makefile +++ b/security/py-clamav/Makefile @@ -6,9 +6,9 @@ # PORTNAME= clamav -PORTVERSION= 0.2.2 +PORTVERSION= 0.3.1 CATEGORIES= security python -MASTER_SITES= http://norman.free.fr/norman/python/pyclamav/ +MASTER_SITES= http://xael.org/norman/python/pyclamav/ PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} DISTNAME= py${PORTNAME}-${PORTVERSION} @@ -20,19 +20,26 @@ LIB_DEPENDS= clamav.1:${PORTSDIR}/security/clamav DIST_SUBDIR= python USE_PYTHON= yes USE_PYDISTUTILS= yes +USE_REINPLACE= yes PYDISTUTILS_BUILDARGS= build_ext -I${LOCALBASE}/include -L${LOCALBASE}/lib DOCSDIR?= ${PREFIX}/share/doc/py-${PORTNAME} +EXAMPLESDIR?= ${PREFIX}/share/examples/py-${PORTNAME} .if !defined(NOPORTDOCS) PORTDOCS= * .endif +post-patch: + @${REINPLACE_CMD} -e 's|stat64|stat|g' ${WRKSRC}/pyclamav.c + post-install: .if !defined(NOPORTDOCS) @${MKDIR} ${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/README.txt ${DOCSDIR} .endif + @${MKDIR} ${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/example.py ${EXAMPLESDIR} .include <bsd.port.mk> |