summaryrefslogtreecommitdiff
path: root/textproc/py-pyphen/patches/patch-pyphen.py
diff options
context:
space:
mode:
Diffstat (limited to 'textproc/py-pyphen/patches/patch-pyphen.py')
-rw-r--r--textproc/py-pyphen/patches/patch-pyphen.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/textproc/py-pyphen/patches/patch-pyphen.py b/textproc/py-pyphen/patches/patch-pyphen.py
new file mode 100644
index 00000000000..915f56534b5
--- /dev/null
+++ b/textproc/py-pyphen/patches/patch-pyphen.py
@@ -0,0 +1,19 @@
+$NetBSD: patch-pyphen.py,v 1.1 2015/07/13 16:13:55 kleink Exp $
+
+Adjust dictionaries path to allow multiple Python version installs.
+
+--- pyphen.py.orig 2013-12-27 17:53:36.000000000 +0100
++++ pyphen.py 2015-07-13 17:48:37.000000000 +0200
+@@ -53,10 +53,10 @@
+ else:
+ dictionaries_roots = (os.path.join(
+ pkg_resources.resource_filename('pyphen', ''),
+- 'share', 'pyphen', 'dictionaries'),)
++ 'share', 'pyphen%s' % sys.version[0:3], 'dictionaries'),)
+ finally:
+ dictionaries_roots += (
+- os.path.join(sys.prefix, 'share', 'pyphen', 'dictionaries'),
++ os.path.join(sys.prefix, 'share', 'pyphen%s' % sys.version[0:3], 'dictionaries'),
+ os.path.join(os.path.dirname(__file__), 'dictionaries'))
+
+