summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--security/py-pycryptodome/Makefile2
-rw-r--r--security/py-pycryptodome/distinfo6
-rw-r--r--security/py-pycryptodome/files/patch-setup.py29
3 files changed, 33 insertions, 4 deletions
diff --git a/security/py-pycryptodome/Makefile b/security/py-pycryptodome/Makefile
index aa962b985b85..253fcd4b9c82 100644
--- a/security/py-pycryptodome/Makefile
+++ b/security/py-pycryptodome/Makefile
@@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= pycryptodome
-DISTVERSION= 3.8.2
+DISTVERSION= 3.9.0
CATEGORIES= security python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
diff --git a/security/py-pycryptodome/distinfo b/security/py-pycryptodome/distinfo
index 66e681f22b95..97ca3e7e9b26 100644
--- a/security/py-pycryptodome/distinfo
+++ b/security/py-pycryptodome/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1565564962
-SHA256 (pycryptodome-3.8.2.tar.gz) = 5bc40f8aa7ba8ca7f833ad2477b9d84e1bfd2630b22a46d9bbd221982f8c3ac0
-SIZE (pycryptodome-3.8.2.tar.gz) = 12441359
+TIMESTAMP = 1572390856
+SHA256 (pycryptodome-3.9.0.tar.gz) = dbeb08ad850056747aa7d5f33273b7ce0b9a77910604a1be7b7a6f2ef076213f
+SIZE (pycryptodome-3.9.0.tar.gz) = 11561613
diff --git a/security/py-pycryptodome/files/patch-setup.py b/security/py-pycryptodome/files/patch-setup.py
new file mode 100644
index 000000000000..2c8ef65dccff
--- /dev/null
+++ b/security/py-pycryptodome/files/patch-setup.py
@@ -0,0 +1,29 @@
+commit b3a394d0837ff92919d35d01de9952b8809e802d
+Author: Helder Eijs <helderijs@gmail.com>
+Date: Wed Aug 28 07:52:19 2019 +0200
+
+ Force UTF-8 encoding when translating files
+
+diff --git ./setup.py ./setup.py
+index 9d88bc1e..1d70caad 100644
+--- ./setup.py
++++ ./setup.py
+@@ -222,14 +222,18 @@ def create_cryptodome_lib():
+ if full_file_name_src != "py.typed":
+ continue
+
+- with open(full_file_name_dst, "rt") as fd:
++ if sys.version_info[0] > 2:
++ extra_param = { "encoding": "utf-8" }
++ else:
++ extra_param = {}
++ with open(full_file_name_dst, "rt", **extra_param) as fd:
+ content = (fd.read().
+ replace("Crypto.", "Cryptodome.").
+ replace("Crypto ", "Cryptodome ").
+ replace("'Crypto'", "'Cryptodome'").
+ replace('"Crypto"', '"Cryptodome"'))
+ os.remove(full_file_name_dst)
+- with open(full_file_name_dst, "wt") as fd:
++ with open(full_file_name_dst, "wt", **extra_param) as fd:
+ fd.write(content)