diff options
author | marino <marino@FreeBSD.org> | 2015-04-28 05:04:12 +0800 |
---|---|---|
committer | marino <marino@FreeBSD.org> | 2015-04-28 05:04:12 +0800 |
commit | 3b72b7344279f86d56ec4bc7747c5f39ce644e0d (patch) | |
tree | 432cff6d3e5395b52d544e58df856d0f226ba122 /finance | |
parent | 933a353a9b923e0d4b57dc7ba542097254ba38ac (diff) | |
download | freebsd-ports-graphics-3b72b7344279f86d56ec4bc7747c5f39ce644e0d.tar.gz freebsd-ports-graphics-3b72b7344279f86d56ec4bc7747c5f39ce644e0d.tar.zst freebsd-ports-graphics-3b72b7344279f86d56ec4bc7747c5f39ce644e0d.zip |
finance/electrum: Unbreak on DragonFly (staging)
Since the setup.py patch would never get sent upstream anyway, I
modified the patch to install the desktop icons on every platform
that ports supports unconditionally rather than check the OSNAME
against a list. Issue was introduced on last commit
Approved by: blanket (restore DF functionality)
Diffstat (limited to 'finance')
-rw-r--r-- | finance/electrum/files/patch-setup.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/finance/electrum/files/patch-setup.py b/finance/electrum/files/patch-setup.py index dfd091a8f09..35e4e15d8e7 100644 --- a/finance/electrum/files/patch-setup.py +++ b/finance/electrum/files/patch-setup.py @@ -1,10 +1,12 @@ --- setup.py.orig 2015-03-14 13:27:54 UTC +++ setup.py -@@ -18,7 +18,7 @@ if sys.version_info[:3] < (2, 7, 0): +@@ -17,8 +17,8 @@ if sys.version_info[:3] < (2, 7, 0): + data_files = [] - if platform.system() == 'Linux' or platform.system() == 'FreeBSD': +-if platform.system() == 'Linux' or platform.system() == 'FreeBSD': - usr_share = os.path.join(sys.prefix, "share") ++if True: + usr_share = '%%PREFIX%%/share' data_files += [ (os.path.join(usr_share, 'applications/'), ['electrum.desktop']), |