Lines 6-14
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= clamav |
8 |
PORTNAME= clamav |
9 |
PORTVERSION= 0.2.2 |
9 |
PORTVERSION= 0.3.1 |
10 |
CATEGORIES= security python |
10 |
CATEGORIES= security python |
11 |
MASTER_SITES= http://norman.free.fr/norman/python/pyclamav/ |
11 |
MASTER_SITES= http://xael.org/norman/python/pyclamav/ |
12 |
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} |
12 |
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} |
13 |
DISTNAME= py${PORTNAME}-${PORTVERSION} |
13 |
DISTNAME= py${PORTNAME}-${PORTVERSION} |
14 |
|
14 |
|
Lines 20-38
Link Here
|
20 |
DIST_SUBDIR= python |
20 |
DIST_SUBDIR= python |
21 |
USE_PYTHON= yes |
21 |
USE_PYTHON= yes |
22 |
USE_PYDISTUTILS= yes |
22 |
USE_PYDISTUTILS= yes |
|
|
23 |
USE_REINPLACE= yes |
23 |
|
24 |
|
24 |
PYDISTUTILS_BUILDARGS= build_ext -I${LOCALBASE}/include -L${LOCALBASE}/lib |
25 |
PYDISTUTILS_BUILDARGS= build_ext -I${LOCALBASE}/include -L${LOCALBASE}/lib |
25 |
|
26 |
|
26 |
DOCSDIR?= ${PREFIX}/share/doc/py-${PORTNAME} |
27 |
DOCSDIR?= ${PREFIX}/share/doc/py-${PORTNAME} |
|
|
28 |
EXAMPLESDIR?= ${PREFIX}/share/examples/py-${PORTNAME} |
27 |
|
29 |
|
28 |
.if !defined(NOPORTDOCS) |
30 |
.if !defined(NOPORTDOCS) |
29 |
PORTDOCS= * |
31 |
PORTDOCS= * |
30 |
.endif |
32 |
.endif |
31 |
|
33 |
|
|
|
34 |
post-patch: |
35 |
@${REINPLACE_CMD} -e 's|stat64|stat|g' ${WRKSRC}/pyclamav.c |
36 |
|
32 |
post-install: |
37 |
post-install: |
33 |
.if !defined(NOPORTDOCS) |
38 |
.if !defined(NOPORTDOCS) |
34 |
@${MKDIR} ${DOCSDIR} |
39 |
@${MKDIR} ${DOCSDIR} |
35 |
${INSTALL_DATA} ${WRKSRC}/README.txt ${DOCSDIR} |
40 |
${INSTALL_DATA} ${WRKSRC}/README.txt ${DOCSDIR} |
36 |
.endif |
41 |
.endif |
|
|
42 |
@${MKDIR} ${EXAMPLESDIR} |
43 |
${INSTALL_DATA} ${WRKSRC}/example.py ${EXAMPLESDIR} |
37 |
|
44 |
|
38 |
.include <bsd.port.mk> |
45 |
.include <bsd.port.mk> |