Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 7 Jul 2013 22:51:15 +0000 (UTC)
From:      Nicola Vitale <nivit@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r322464 - head/textproc/py-MarkupSafe
Message-ID:  <201307072251.r67MpFI2069103@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: nivit
Date: Sun Jul  7 22:51:15 2013
New Revision: 322464
URL: http://svnweb.freebsd.org/changeset/ports/322464

Log:
  - Fix build with Python 3.2  [1]
  
  Build log:	http://goo.gl/W77Ku
  
  Reported by:	eadler (via private email)  [1]
  Approved by:	wen (mantainer, via private email)

Modified:
  head/textproc/py-MarkupSafe/Makefile   (contents, props changed)

Modified: head/textproc/py-MarkupSafe/Makefile
==============================================================================
--- head/textproc/py-MarkupSafe/Makefile	Sun Jul  7 22:46:13 2013	(r322463)
+++ head/textproc/py-MarkupSafe/Makefile	Sun Jul  7 22:51:15 2013	(r322464)
@@ -18,6 +18,14 @@ PYEASYINSTALL_ARCHDEP=	no
 
 .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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201307072251.r67MpFI2069103>