svn commit: r555300 - in head/devel/py-decoratortools: . files
Sunpoet Po-Chuan Hsieh
sunpoet at FreeBSD.org
Sun Nov 15 18:02:06 UTC 2020
Author: sunpoet
Date: Sun Nov 15 18:01:58 2020
New Revision: 555300
URL: https://svnweb.freebsd.org/changeset/ports/555300
Log:
Allow build with Python 3
- Bump PORTREVISION for package change
Added:
head/devel/py-decoratortools/files/
head/devel/py-decoratortools/files/patch-peak-util-decorators.py (contents, props changed)
head/devel/py-decoratortools/files/patch-setup.py (contents, props changed)
Modified:
head/devel/py-decoratortools/Makefile
Modified: head/devel/py-decoratortools/Makefile
==============================================================================
--- head/devel/py-decoratortools/Makefile Sun Nov 15 18:01:53 2020 (r555299)
+++ head/devel/py-decoratortools/Makefile Sun Nov 15 18:01:58 2020 (r555300)
@@ -3,7 +3,7 @@
PORTNAME= DecoratorTools
PORTVERSION= 1.8
-PORTREVISION= 3
+PORTREVISION= 4
CATEGORIES= devel python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -14,8 +14,9 @@ COMMENT= Class, function, and metaclass decorators
LICENSE= PSFL ZPL21
LICENSE_COMB= dual
+USES= python zip
+USE_PYTHON= autoplist concurrent distutils
+
NO_ARCH= yes
-USE_PYTHON= autoplist distutils
-USES= python:2.7 zip
.include <bsd.port.mk>
Added: head/devel/py-decoratortools/files/patch-peak-util-decorators.py
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/py-decoratortools/files/patch-peak-util-decorators.py Sun Nov 15 18:01:58 2020 (r555300)
@@ -0,0 +1,11 @@
+--- peak/util/decorators.py.orig 2010-05-05 06:03:34 UTC
++++ peak/util/decorators.py
+@@ -103,7 +103,7 @@ def %(wrapname)s(%(wrapspec)s):
+
+ filename = "<%s wrapping %s at 0x%08X>" % (qname(wrapper), qname(func), id(func))
+ d ={}
+- exec compile(body, filename, "exec") in func.func_globals, d
++ exec(compile(body, filename, "exec"), func.func_globals, d)
+
+ f = d[wrapname](func, *args, **kw)
+ cache_source(filename, body, f)
Added: head/devel/py-decoratortools/files/patch-setup.py
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/py-decoratortools/files/patch-setup.py Sun Nov 15 18:01:58 2020 (r555300)
@@ -0,0 +1,20 @@
+--- setup.py.orig 2010-05-05 05:55:08 UTC
++++ setup.py
+@@ -1,8 +1,6 @@
+ #!/usr/bin/env python
+ """Distutils setup file"""
+
+-import ez_setup
+-ez_setup.use_setuptools()
+ from setuptools import setup
+
+ # Metadata
+@@ -12,7 +10,7 @@ PACKAGES = ['peak', 'peak.util']
+
+ def get_description():
+ # Get our long description from the documentation
+- f = file('README.txt')
++ f = open('README.txt')
+ lines = []
+ for line in f:
+ if not line.strip():
More information about the svn-ports-head
mailing list