PORTNAME=	pymailq
PORTVERSION=	0.9.0
PORTREVISION=	3
CATEGORIES=	mail python
MASTER_SITES=	PYPI
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}

MAINTAINER=	loader@FreeBSD.org
COMMENT=	Postfix queue control python tool
WWW=		https://github.com/outini/pymailq

LICENSE=	GPLv2
LICENSE_FILE=	${WRKSRC}/LICENSE

RUN_DEPENDS=	postfix:mail/postfix

NO_ARCH=	yes
USES=		python
USE_PYTHON=	autoplist distutils concurrent

post-patch:
	@${REINPLACE_CMD} -e \
		's|%%DOCSDIR%%|${DOCSDIR}|g; \
		s|%%EXAMPLESDIR%%|${EXAMPLESDIR}|g; \
		s|%%MANPREFIX%%|${PREFIX}/share|g' \
		${WRKSRC}/setup.py

.include <bsd.port.mk>
