freebsd-ports/sysutils/py-pytsk/Makefile
Antoine Brodin a77e2439ca Update the sleuthkit to 4.1.3:
- Use libtool (instead of jumping from .11 to .12, we go back to .10)
- Include a patch which allows python bindings to work correctly (obtained from Joachim Metz)

Update pytsk to 2014-02-09:
- Remove DOCS/EXAMPLES conditionals
- Don't override DOCSDIR and EXAMPLESDIR, mva's patch will do it soon
2014-02-10 18:12:30 +00:00

44 lines
1 KiB
Makefile

# Created by: Antoine Brodin <antoine@FreeBSD.org>
# $FreeBSD$
PORTNAME= pytsk
DISTVERSION= 2014-02-09
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
PORTDOCS= README
PORTEXAMPLES= *
OPTIONS_DEFINE= DOCS EXAMPLES
post-patch:
${REINPLACE_CMD} -e "s|'/', 'usr', 'local'|'${LOCALBASE}'|" \
${WRKSRC}/setup.py
post-install:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_SCRIPT} ${WRKSRC}/samples/*.py ${STAGEDIR}${EXAMPLESDIR}
.include <bsd.port.mk>