summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2017-03-11 09:19:52 -0500
committerAnthony G. Basile <blueness@gentoo.org>2017-03-11 09:20:13 -0500
commit7b7abe2257fc83df934cee31f194bf15be0a316c (patch)
treed198949c3228606501093daf9f70f6c826d87b8b /net-misc/electrum/files
parentnet-misc/electrum: remove versions 2.6.4 (diff)
downloadgentoo-7b7abe2257fc83df934cee31f194bf15be0a316c.tar.gz
gentoo-7b7abe2257fc83df934cee31f194bf15be0a316c.tar.bz2
gentoo-7b7abe2257fc83df934cee31f194bf15be0a316c.zip
net-misc/electrum: version bump to 2.8.0
Package-Manager: Portage-2.3.3, Repoman-2.3.1
Diffstat (limited to 'net-misc/electrum/files')
-rw-r--r--net-misc/electrum/files/2.8.0-no-user-root.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/net-misc/electrum/files/2.8.0-no-user-root.patch b/net-misc/electrum/files/2.8.0-no-user-root.patch
new file mode 100644
index 000000000000..2ca5363effe7
--- /dev/null
+++ b/net-misc/electrum/files/2.8.0-no-user-root.patch
@@ -0,0 +1,15 @@
+--- ./setup.py.orig 2017-01-06 19:17:44.294137848 +0000
++++ ./setup.py 2017-01-06 19:17:50.093161327 +0000
+@@ -21,12 +21,6 @@
+ parser.add_argument('--root=', dest='root_path', metavar='dir', default='/')
+ opts, _ = parser.parse_known_args(sys.argv[1:])
+ usr_share = os.path.join(sys.prefix, "share")
+- if not os.access(opts.root_path + usr_share, os.W_OK) and \
+- not os.access(opts.root_path, os.W_OK):
+- if 'XDG_DATA_HOME' in os.environ.keys():
+- usr_share = os.environ['XDG_DATA_HOME']
+- else:
+- usr_share = os.path.expanduser('~/.local/share')
+ data_files += [
+ (os.path.join(usr_share, 'applications/'), ['electrum.desktop']),
+ ]