summaryrefslogtreecommitdiff
path: root/finance/electrum/files/patch-setup.py
diff options
context:
space:
mode:
authorRuslan Makhmatkhanov <rm@FreeBSD.org>2013-06-15 11:29:10 +0000
committerRuslan Makhmatkhanov <rm@FreeBSD.org>2013-06-15 11:29:10 +0000
commit308d88a41c159bfecc368f61f0717c6dbbaf66ea (patch)
treef362f8ffc2d38187aaa1603f0294282114e7cdb1 /finance/electrum/files/patch-setup.py
parent- update to 3.0.2 (diff)
Electrum is an easy to use Bitcoin client. It protects you from
losing coins in a backup mistake or computer failure, because your wallet can be recovered from a secret phrase that you can write on paper or learn by heart. There is no waiting time when you start the client, because it does not download the Bitcoin blockchain. WWW: http://electrum.org/ PR: 179446 Submitted by: Neil Booth <kyuupichan@gmail.com>
Diffstat (limited to 'finance/electrum/files/patch-setup.py')
-rw-r--r--finance/electrum/files/patch-setup.py20
1 files changed, 20 insertions, 0 deletions
diff --git a/finance/electrum/files/patch-setup.py b/finance/electrum/files/patch-setup.py
new file mode 100644
index 000000000000..a81ba8815c0f
--- /dev/null
+++ b/finance/electrum/files/patch-setup.py
@@ -0,0 +1,20 @@
+--- ./setup.py.orig 2013-06-09 19:36:25.355293000 +0900
++++ ./setup.py 2013-06-09 19:45:13.675386000 +0900
+@@ -15,14 +15,14 @@
+ if (len(sys.argv) > 1 and (sys.argv[1] == "sdist")) or (platform.system() != 'Windows' and platform.system() != 'Darwin'):
+ print "Including all files"
+ data_files += [
+- ('/usr/share/applications/',['electrum.desktop']),
+- ('/usr/share/app-install/icons/',['icons/electrum.png'])
++ (os.path.join(sys.prefix, 'share', 'applications'),['electrum.desktop']),
++ (os.path.join(sys.prefix, 'share', 'app-install', 'icons'),['icons/electrum.png'])
+ ]
+ if not os.path.exists('locale'):
+ os.mkdir('locale')
+ for lang in os.listdir('locale'):
+ if os.path.exists('locale/%s/LC_MESSAGES/electrum.mo'%lang):
+- data_files.append( ('/usr/share/locale/%s/LC_MESSAGES'%lang, ['locale/%s/LC_MESSAGES/electrum.mo'%lang]) )
++ data_files.append( (os.path.join(sys.prefix, 'share/locale/%s/LC_MESSAGES'%lang), ['locale/%s/LC_MESSAGES/electrum.mo'%lang]) )
+
+ data_files += [
+ (util.appdata_dir(), ["data/README"]),