From 59102683bac0b71ebe69770078d1d0c783574b29 Mon Sep 17 00:00:00 2001 From: Conrad Kostecki Date: Mon, 17 Dec 2018 20:03:50 +0100 Subject: net-im/yowsup: add python3.7 support Also switch from dev-python/pycrpto to dev-python/pycrptodome, as it's more modern. Besides, renamed six patch, to have a proper file name. Package-Manager: Portage-2.3.52, Repoman-2.3.12 Signed-off-by: Conrad Kostecki Signed-off-by: Patrice Clement --- .../files/yowsup-2.5.7-fix-install-path.patch | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 net-im/yowsup/files/yowsup-2.5.7-fix-install-path.patch (limited to 'net-im/yowsup/files/yowsup-2.5.7-fix-install-path.patch') diff --git a/net-im/yowsup/files/yowsup-2.5.7-fix-install-path.patch b/net-im/yowsup/files/yowsup-2.5.7-fix-install-path.patch new file mode 100644 index 000000000000..63b0fbfc91c9 --- /dev/null +++ b/net-im/yowsup/files/yowsup-2.5.7-fix-install-path.patch @@ -0,0 +1,28 @@ +Description: Fixes wrong installation of mime.types file. +Author: Josue Ortega +Last-Update: 2016-09-04 + +--- a/setup.py ++++ b/setup.py +@@ -33,7 +33,7 @@ + #long_description=long_description, + packages= find_packages(), + include_package_data=True, +- data_files = [('yowsup/common', ['yowsup/common/mime.types'])], ++ #data_files = [('yowsup/common', ['yowsup/common/mime.types'])], + platforms='any', + #test_suite='', + classifiers = [ +--- a/yowsup/common/tools.py ++++ b/yowsup/common/tools.py +@@ -150,7 +150,9 @@ + return preview + + class MimeTools: +- MIME_FILE = os.path.join(os.path.dirname(__file__), 'mime.types') ++ # Replaces mime.types path for the debian path installation ++ # MIME_FILE = os.path.join(os.path.dirname(__file__), 'mime.types') ++ MIME_FILE = os.path.join('/usr/share/yowsup/common', 'mime.types') + mimetypes.init() # Load default mime.types + try: + mimetypes.init([MIME_FILE]) # Append whatsapp mime.types -- cgit v1.2.3-65-gdbad