summaryrefslogtreecommitdiff
path: root/textproc/py-pyphen/patches/patch-setup.py
diff options
context:
space:
mode:
Diffstat (limited to 'textproc/py-pyphen/patches/patch-setup.py')
-rw-r--r--textproc/py-pyphen/patches/patch-setup.py21
1 files changed, 21 insertions, 0 deletions
diff --git a/textproc/py-pyphen/patches/patch-setup.py b/textproc/py-pyphen/patches/patch-setup.py
new file mode 100644
index 00000000000..930fa411bd5
--- /dev/null
+++ b/textproc/py-pyphen/patches/patch-setup.py
@@ -0,0 +1,21 @@
+$NetBSD: patch-setup.py,v 1.1 2015/07/13 16:13:55 kleink Exp $
+
+Adjust dictionaries path to allow multiple Python version installs.
+
+--- setup.py.orig 2013-12-27 17:53:41.000000000 +0100
++++ setup.py 2015-07-13 17:48:37.000000000 +0200
+@@ -1,4 +1,5 @@
+ import os.path
++import sys
+ from setuptools import setup
+
+ classifiers = [
+@@ -28,7 +29,7 @@
+ py_modules=['pyphen'],
+ provides=['pyphen'],
+ data_files=[(
+- os.path.join('share', 'pyphen', 'dictionaries'), (
++ os.path.join('share', 'pyphen%s' % sys.version[0:3], 'dictionaries'), (
+ os.path.join(_dict_folder, filename)
+ for filename in os.listdir(_dict_folder)
+ if filename.endswith('.dic')))],