summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2016-05-10 16:49:29 +0200
committerAlexis Ballier <aballier@gentoo.org>2016-05-10 16:49:38 +0200
commit0de5e788658811acc6496d7274faf643f2f3e61d (patch)
tree1c278ff92d255d7c1cb9fa9077bfb4e3bf007f5d /dev-util/wstool/files
parentdev-util/electron: Regenerate Manifest file. (diff)
downloadgentoo-0de5e788658811acc6496d7274faf643f2f3e61d.tar.gz
gentoo-0de5e788658811acc6496d7274faf643f2f3e61d.tar.bz2
gentoo-0de5e788658811acc6496d7274faf643f2f3e61d.zip
dev-util/wstool: bump to 0.1.13
Package-Manager: portage-2.2.28
Diffstat (limited to 'dev-util/wstool/files')
-rw-r--r--dev-util/wstool/files/prefix2.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/dev-util/wstool/files/prefix2.patch b/dev-util/wstool/files/prefix2.patch
new file mode 100644
index 000000000000..934443f98707
--- /dev/null
+++ b/dev-util/wstool/files/prefix2.patch
@@ -0,0 +1,26 @@
+Index: wstool-0.1.13/setup.py
+===================================================================
+--- wstool-0.1.13.orig/setup.py
++++ wstool-0.1.13/setup.py
+@@ -26,18 +26,11 @@ def _resolve_prefix(prefix, type):
+ # issue: https://github.com/vcstools/wstool/issues/81
+ osx_system_prefix = '/System/Library/Frameworks/Python.framework/Versions'
+ if type == 'man':
+- if prefix == '/usr':
+- return '/usr/share'
+- if sys.prefix.startswith(osx_system_prefix):
+- return '/usr/local/share'
++ return os.path.join(prefix, 'share')
+ elif type == 'bash_comp':
+- if prefix == '/usr':
+- return '/'
+- if sys.prefix.startswith(osx_system_prefix):
+- return '/usr/local'
++ return os.path.join(prefix, '../')
+ elif type == 'zsh_comp':
+- if sys.prefix.startswith(osx_system_prefix):
+- return '/usr/local'
++ return os.path.join(prefix, '../')
+ else:
+ raise ValueError('not supported type')
+ return prefix