aboutsummaryrefslogtreecommitdiff
path: root/www/py-feedgenerator
diff options
context:
space:
mode:
authorSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2020-07-30 09:54:34 +0000
committerSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2020-07-30 09:54:34 +0000
commit49f9a86c7a0ecbfc16e59c0131e58c1d17589e0d (patch)
treebccaca9a7c2b26bd1b8bb0701a2538e4ac6bab60 /www/py-feedgenerator
parente444ec818f005159f777795405bef3ff5e800398 (diff)
downloadports-49f9a86c7a0ecbfc16e59c0131e58c1d17589e0d.tar.gz
ports-49f9a86c7a0ecbfc16e59c0131e58c1d17589e0d.zip
Handle encoding properly
- Process README.rst using UTF-8 - Use ASCII character instead of UTF-8 in pkg-descr - Bump PORTREVISION for package change PR: 248295 Submitted by: John W. O'Brien <john@saltant.com>
Notes
Notes: svn path=/head/; revision=543783
Diffstat (limited to 'www/py-feedgenerator')
-rw-r--r--www/py-feedgenerator/Makefile1
-rw-r--r--www/py-feedgenerator/files/patch-setup.py19
-rw-r--r--www/py-feedgenerator/pkg-descr2
3 files changed, 21 insertions, 1 deletions
diff --git a/www/py-feedgenerator/Makefile b/www/py-feedgenerator/Makefile
index 4e7e30bd0549..26e7c70730d0 100644
--- a/www/py-feedgenerator/Makefile
+++ b/www/py-feedgenerator/Makefile
@@ -3,6 +3,7 @@
PORTNAME= feedgenerator
PORTVERSION= 1.9.1
+PORTREVISION= 1
CATEGORIES= www python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
diff --git a/www/py-feedgenerator/files/patch-setup.py b/www/py-feedgenerator/files/patch-setup.py
new file mode 100644
index 000000000000..5804b8842ad4
--- /dev/null
+++ b/www/py-feedgenerator/files/patch-setup.py
@@ -0,0 +1,19 @@
+--- setup.py.orig 2020-02-09 10:45:34 UTC
++++ setup.py
+@@ -1,5 +1,7 @@
+ #!/usr/bin/env python
+
++from io import open
++
+ # Using setuptools rather than distutils to get the `develop` command
+ from setuptools import setup
+
+@@ -8,7 +10,7 @@ NAME = 'feedgenerator'
+ PACKAGES = ['feedgenerator', 'feedgenerator.django',
+ 'feedgenerator.django.utils']
+ DESCRIPTION = 'Standalone version of django.utils.feedgenerator'
+-LONG_DESCRIPTION = open('README.rst').read()
++LONG_DESCRIPTION = open('README.rst', encoding='UTF-8').read()
+
+ URL = "https://github.com/getpelican/feedgenerator"
+
diff --git a/www/py-feedgenerator/pkg-descr b/www/py-feedgenerator/pkg-descr
index d3e3643739c1..4a1ce83c84c3 100644
--- a/www/py-feedgenerator/pkg-descr
+++ b/www/py-feedgenerator/pkg-descr
@@ -1,4 +1,4 @@
-FeedGenerator is a standalone version of Django’s feedgenerator module. It has
+FeedGenerator is a standalone version of Django's feedgenerator module. It has
evolved over time and includes numerous enhancements
WWW: https://github.com/getpelican/feedgenerator