50f8eaece1
- USE_PYTHON* = 2.X -> USE_PYTHON* = 2 - USE_PYTHON* = 2.X+ -> USE_PYTHON* = yes Reviewed by: python (mva, rm) Approved by: portmgr-lurkers (mat)
53 lines
1.2 KiB
Makefile
53 lines
1.2 KiB
Makefile
# Created by: Antoine Brodin <antoine@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= pytsk
|
|
DISTVERSION= 2013-12-30
|
|
CATEGORIES= sysutils security devel python
|
|
MASTER_SITES= https://googledrive.com/host/0B3fBvzttpiiScUxsUm54cG02RDA/ \
|
|
LOCAL/antoine
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
MAINTAINER= antoine@FreeBSD.org
|
|
COMMENT= Python bindings for the Sleuthkit
|
|
|
|
LICENSE= APACHE20
|
|
|
|
LIB_DEPENDS= libtsk.so:${PORTSDIR}/sysutils/sleuthkit
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
|
|
USES= shebangfix
|
|
SHEBANG_FILES= samples/*.py
|
|
python_OLD_CMD= .*
|
|
python_CMD= ${PYTHON_CMD}
|
|
USE_PYTHON= 2
|
|
USE_PYDISTUTILS=yes
|
|
PYDISTUTILS_AUTOPLIST=yes
|
|
|
|
post-patch:
|
|
${REINPLACE_CMD} -e "s|'/', 'usr', 'local'|'${LOCALBASE}'|" \
|
|
${WRKSRC}/setup.py
|
|
|
|
DOCSDIR= ${PREFIX}/share/doc/py-${PORTNAME}
|
|
PORTDOCS= README
|
|
|
|
EXAMPLESDIR= ${PREFIX}/share/examples/py-${PORTNAME}
|
|
PORTEXAMPLES= *
|
|
|
|
OPTIONS_DEFINE= DOCS EXAMPLES
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
post-install:
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
|
|
.endif
|
|
.if ${PORT_OPTIONS:MEXAMPLES}
|
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
|
${INSTALL_SCRIPT} ${WRKSRC}/samples/*.py ${STAGEDIR}${EXAMPLESDIR}
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|