View | Details | Raw Unified | Return to bug 247390
Collapse All | Expand All

(-)Makefile (-1 / +1 lines)
Lines 2-8 Link Here
2
# $FreeBSD$
2
# $FreeBSD$
3
3
4
PORTNAME=	pycryptodome
4
PORTNAME=	pycryptodome
5
DISTVERSION=	3.9.0
5
DISTVERSION=	3.9.7
6
CATEGORIES=	security python
6
CATEGORIES=	security python
7
MASTER_SITES=	CHEESESHOP
7
MASTER_SITES=	CHEESESHOP
8
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
8
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
(-)distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
TIMESTAMP = 1572390856
1
TIMESTAMP = 1582738914
2
SHA256 (pycryptodome-3.9.0.tar.gz) = dbeb08ad850056747aa7d5f33273b7ce0b9a77910604a1be7b7a6f2ef076213f
2
SHA256 (pycryptodome-3.9.7.tar.gz) = f1add21b6d179179b3c177c33d18a2186a09cc0d3af41ff5ed3f377360b869f2
3
SIZE (pycryptodome-3.9.0.tar.gz) = 11561613
3
SIZE (pycryptodome-3.9.7.tar.gz) = 15451558
(-)files/patch-setup.py (-29 lines)
Lines 1-29 Link Here
1
commit b3a394d0837ff92919d35d01de9952b8809e802d
2
Author: Helder Eijs <helderijs@gmail.com>
3
Date:   Wed Aug 28 07:52:19 2019 +0200
4
5
    Force UTF-8 encoding when translating files
6
7
diff --git ./setup.py ./setup.py
8
index 9d88bc1e..1d70caad 100644
9
--- ./setup.py
10
+++ ./setup.py
11
@@ -222,14 +222,18 @@ def create_cryptodome_lib():
12
                 if full_file_name_src != "py.typed":
13
                     continue
14
15
-            with open(full_file_name_dst, "rt") as fd:
16
+            if sys.version_info[0] > 2:
17
+                extra_param = { "encoding": "utf-8" }
18
+            else:
19
+                extra_param = {}
20
+            with open(full_file_name_dst, "rt", **extra_param) as fd:
21
                 content = (fd.read().
22
                            replace("Crypto.", "Cryptodome.").
23
                            replace("Crypto ", "Cryptodome ").
24
                            replace("'Crypto'", "'Cryptodome'").
25
                            replace('"Crypto"', '"Cryptodome"'))
26
             os.remove(full_file_name_dst)
27
-            with open(full_file_name_dst, "wt") as fd:
28
+            with open(full_file_name_dst, "wt", **extra_param) as fd:
29
                 fd.write(content)

Return to bug 247390