aboutsummaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
authortobik <tobik@FreeBSD.org>2017-12-22 00:07:07 +0800
committertobik <tobik@FreeBSD.org>2017-12-22 00:07:07 +0800
commit41ce517ccb850208be0f2aaac77b9d79ad453fa0 (patch)
tree2abccf103ba2faf3cb26b76b75ce33c0a4f5060c /www
parent1a4fe4b5fd3136fbf2833b42e9224e4434703276 (diff)
downloadfreebsd-ports-gnome-41ce517ccb850208be0f2aaac77b9d79ad453fa0.tar.gz
freebsd-ports-gnome-41ce517ccb850208be0f2aaac77b9d79ad453fa0.tar.zst
freebsd-ports-gnome-41ce517ccb850208be0f2aaac77b9d79ad453fa0.zip
www/py-pyocclient: Update to 0.4
- Allow build for Python 3.x PR: 224068 Submitted by: lbdm@privacychain.ch Approved by: che@bein.link (maintainer timeout, 2 weeks)
Diffstat (limited to 'www')
-rw-r--r--www/py-pyocclient/Makefile10
-rw-r--r--www/py-pyocclient/distinfo5
-rw-r--r--www/py-pyocclient/files/patch-setup.py30
3 files changed, 39 insertions, 6 deletions
diff --git a/www/py-pyocclient/Makefile b/www/py-pyocclient/Makefile
index 8bb99a5d5f67..4ebe01332d1d 100644
--- a/www/py-pyocclient/Makefile
+++ b/www/py-pyocclient/Makefile
@@ -1,7 +1,7 @@
# $FreeBSD$
PORTNAME= pyocclient
-PORTVERSION= 0.1
+PORTVERSION= 0.4
CATEGORIES= www python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -12,10 +12,12 @@ COMMENT= Python Owncloud client library
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
-RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}requests>=2.0.1:www/py-requests@${FLAVOR}
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}requests>=2.0.1:www/py-requests@${FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}six>=0:devel/py-six@${FLAVOR}
-NO_ARCH= yes
-USES= python:2.7
+USES= python
USE_PYTHON= autoplist distutils
+NO_ARCH= yes
+
.include <bsd.port.mk>
diff --git a/www/py-pyocclient/distinfo b/www/py-pyocclient/distinfo
index 282d1d0300e4..3ab301fb6175 100644
--- a/www/py-pyocclient/distinfo
+++ b/www/py-pyocclient/distinfo
@@ -1,2 +1,3 @@
-SHA256 (pyocclient-0.1.tar.gz) = b3505e4973bfadda11f9f5d426018f9ea3a373c3ef47b77324ed4f88f195ff43
-SIZE (pyocclient-0.1.tar.gz) = 11749
+TIMESTAMP = 1512341546
+SHA256 (pyocclient-0.4.tar.gz) = d8604f32cf10497a06e57b163b5f9c9bbe2e874a3606c39beeb1453133d563a6
+SIZE (pyocclient-0.4.tar.gz) = 24285
diff --git a/www/py-pyocclient/files/patch-setup.py b/www/py-pyocclient/files/patch-setup.py
new file mode 100644
index 000000000000..c211118ab035
--- /dev/null
+++ b/www/py-pyocclient/files/patch-setup.py
@@ -0,0 +1,30 @@
+Fix reading of utf-8 formatted files in setup script and fix build
+with Python 3.x.
+
+https://github.com/owncloud/pyocclient/commit/aa6b4374a779bf0f9e060117b2e8d1e810342bc8
+
+--- setup.py.orig 2017-01-26 05:22:41 UTC
++++ setup.py
+@@ -3,18 +3,19 @@
+ # vim: expandtab shiftwidth=4 softtabstop=4
+ #
+ from setuptools import setup
++import io
+
+ version = '0.4'
+
+ long_description = (
+- open('README.rst').read()
++ io.open('README.rst', encoding='utf-8').read()
+ + '\n' +
+ 'Contributors\n'
+ '============\n'
+ + '\n' +
+- open('docs/source/CONTRIBUTORS.rst').read()
++ io.open('docs/source/CONTRIBUTORS.rst', encoding='utf-8').read()
+ + '\n' +
+- open('CHANGES.rst').read()
++ io.open('CHANGES.rst', encoding='utf-8').read()
+ + '\n')
+
+ setup(