mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-26 00:55:14 +00:00
35 lines
761 B
Makefile
35 lines
761 B
Makefile
# Created by: wen@FreeBSD.org
|
|
# $FreeBSD$
|
|
|
|
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>
|