# Created by: wen@FreeBSD.org
# $FreeBSD: textproc/py-MarkupSafe/Makefile 327773 2013-09-20 23:17:30Z bapt $

PORTNAME=		MarkupSafe
PORTVERSION=		0.18
CATEGORIES=		textproc python
MASTER_SITES=		CHEESESHOP
PKGNAMEPREFIX=		${PYTHON_PKGNAMEPREFIX}

MAINTAINER=		wen@FreeBSD.org
COMMENT=		Implements a XML/HTML/XHTML Markup safe string for Python

LICENSE=		BSD

USE_PYTHON=		yes
USE_PYDISTUTILS=	easy_install
PYEASYINSTALL_ARCHDEP=	no

NO_STAGE=	yes
.include <bsd.port.pre.mk>

.if ${PYTHON_VERSION} == python3.2
PY2TO3_CMD=	${LOCALBASE}/bin/2to3-${PYTHON_VER}
PY2TO3_ARGS=	--no-diffs --fix=all --nobackups --verbose --write

pre-build:
	@${PY2TO3_CMD} ${PY2TO3_ARGS} ${WRKSRC}/markupsafe
.endif

.if ${PYTHON_REL} >= 320
.include "${PORTSDIR}/devel/py-virtualenv/files/py3k-fix-pkg-plist.inc"
.endif

.include <bsd.port.post.mk>
