# $FreeBSD: sysutils/py-stdiff/Makefile 327772 2013-09-20 23:05:58Z bapt $

PORTNAME=		stdiff
PORTVERSION=		0.2.1
CATEGORIES=		sysutils python
MASTER_SITES=		SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}/

MAINTAINER=		araujo@FreeBSD.org
COMMENT=		Spot The Difference is a file integrity checker.

USE_PYTHON=		yes
USE_PYDISTUTILS=	yes

.if !defined(NOPORTDOCS)
PORTDOCS=	*
.endif

NO_STAGE=	yes
post-install:
.if !defined(NOPORTDOCS)
	${MKDIR} ${DOCSDIR}
	$(INSTALL_MAN) ${WRKSRC}/INSTALL.txt ${DOCSDIR}/
	$(INSTALL_MAN) ${WRKSRC}/LICENSE.txt ${DOCSDIR}/
	(cd ${WRKSRC}/ && ${COPYTREE_SHARE} docs ${DOCSDIR}/)
.endif
	@if [ ! -f ${PREFIX}/etc/stdiff.conf ]; then \
		${CP} -p ${PREFIX}/etc/stdiff.conf.sample \
		${PREFIX}/etc/stdiff.conf; fi
.include <bsd.port.mk>
