# New ports collection makefile for:	svnmailer
# Date created:		2005-08-30
# Whom:			Andrej Zverev <az@inec.ru>
#
# $FreeBSD: ports/mail/svnmailer/Makefile,v 1.8 2007/10/08 11:53:15 az Exp $
#

PORTNAME=	svnmailer
PORTVERSION=	1.0.8
CATEGORIES=	mail python
MASTER_SITES=	http://storage.perlig.de/${PORTNAME}/
PKGNAMESUFFIX=	${PYTHON_PKGNAMESUFFIX}

MAINTAINER=	az@FreeBSD.org
COMMENT=	A tool to post subversion repository commit information

BUILD_DEPENDS=	${PYTHON_SITELIBDIR}/libsvn/__init__.py:${PORTSDIR}/devel/subversion-python

USE_PYTHON=		2.3+
USE_PYDISTUTILS=	yes

PORTDOCS=	index.html perlig.css perlig.jpg perlig_docs.css \
		perlig_offline.css right.gif up.gif

.include <bsd.port.pre.mk>

pre-patch:
.if ${PYTHON_REL} >= 250
EXTRA_PATCHES=	${FILESDIR}/py25-src-lib-svnmailer-notifier-_base.py
.endif

post-patch:
	@${REINPLACE_CMD} -e "1s|^.*|#!${PYTHON_CMD}|" ${WRKSRC}/setup.py
	@${REINPLACE_CMD} -e "1s|^.*|#!${PYTHON_CMD}|" ${WRKSRC}/src/svn-mailer

post-install:
.if !defined(NOPORTDOCS)
	${MKDIR} ${DOCSDIR}
	cd ${WRKSRC}/docs; ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
.endif

.include <bsd.port.post.mk>


syntax highlighted by Code2HTML, v. 0.9.1