freebsd-ports/mail/svnmailer/Makefile
Andrej Zverev b2096595f0 - Fix with python25+
PR:	ports/116885, ports/116914
Submitted by:	Philip M.Gollucci <pgollucci at p6m7g8.com>
2007-10-08 11:53:15 +00:00

42 lines
1 KiB
Makefile

# New ports collection makefile for: svnmailer
# Date created: 2005-08-30
# Whom: Andrej Zverev <az@inec.ru>
#
# $FreeBSD$
#
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>