diff --git a/sysutils/py-hared/Makefile b/sysutils/py-hared/Makefile index 83d727b22bbaf..643a59ca70454 100644 --- a/sysutils/py-hared/Makefile +++ b/sysutils/py-hared/Makefile @@ -1,6 +1,6 @@ PORTNAME= hared PORTVERSION= 1.0 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= sysutils python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} diff --git a/sysutils/py-hared/files/patch-2to3 b/sysutils/py-hared/files/patch-2to3 new file mode 100644 index 0000000000000..6dd4496c906ea --- /dev/null +++ b/sysutils/py-hared/files/patch-2to3 @@ -0,0 +1,30 @@ +--- hared/__init__.py.orig 2018-03-26 17:30:13 UTC ++++ hared/__init__.py +@@ -4,7 +4,7 @@ import json + try: + from configparser import ConfigParser + except ImportError: +- from ConfigParser import ConfigParser ++ from configparser import ConfigParser + + __author__ = 'Jan-Piet Mens ' + +@@ -30,8 +30,8 @@ class Hare(): + pass + + def printconfig(self): +- print "Listening for UDP on %s:%d" % (self.listenhost, self.listenport) +- print "MQTT broker configured to %s:%d on %s" % (self.mqtthost, self.mqttport, self.topic) ++ print("Listening for UDP on %s:%d" % (self.listenhost, self.listenport)) ++ print("MQTT broker configured to %s:%d on %s" % (self.mqtthost, self.mqttport, self.topic)) + + def run(config='/usr/local/etc/hared.ini'): + h = Hare(config) +@@ -53,6 +53,6 @@ def run(config='/usr/local/etc/hared.ini'): + continue + + if h.verbose: +- print js ++ print(js) + + mqtt.single(h.topic, js, hostname=h.mqtthost, port=h.mqttport) diff --git a/sysutils/py-hared/files/patch-setup.py b/sysutils/py-hared/files/patch-setup.py new file mode 100644 index 0000000000000..227adb5f89c3b --- /dev/null +++ b/sysutils/py-hared/files/patch-setup.py @@ -0,0 +1,11 @@ +--- setup.py.orig 2018-03-26 17:22:26 UTC ++++ setup.py +@@ -8,7 +8,7 @@ setup(name='hared', + version='1.0', + description='hare daemon', + long_description=readme(), +- lassifiers=[ ++ classifiers=[ + 'Development Status :: 3 - Alpha', + 'License :: OSI Approved :: MIT License', + 'Programming Language :: Python :: 2.7',