aboutsummaryrefslogtreecommitdiffstats
path: root/finance
diff options
context:
space:
mode:
Diffstat (limited to 'finance')
-rw-r--r--finance/electrum/Makefile7
-rw-r--r--finance/electrum/files/patch-setup.py10
-rw-r--r--finance/electrum/pkg-descr6
3 files changed, 14 insertions, 9 deletions
diff --git a/finance/electrum/Makefile b/finance/electrum/Makefile
index adb5b2048fa9..56d34162982b 100644
--- a/finance/electrum/Makefile
+++ b/finance/electrum/Makefile
@@ -1,10 +1,11 @@
# Created by: Neil Booth
# $FreeBSD$
-PORTNAME= Electrum
+PORTNAME= electrum
PORTVERSION= 1.7.3
CATEGORIES= finance python
MASTER_SITES= http://download.electrum.org/download/
+DISTNAME= Electrum-${PORTVERSION}
MAINTAINER= kyuupichan@gmail.com
COMMENT= Easy to use Bitcoin client
@@ -17,5 +18,9 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}slowaes>0:${PORTSDIR}/security/py-slowaes \
USE_PYTHON= -2.7
USE_PYDISTUTILS=yes
+PYDISTUTILS_PKGNAME= Electrum
+
+post-patch:
+ @${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},g' ${WRKSRC}/setup.py
.include <bsd.port.mk>
diff --git a/finance/electrum/files/patch-setup.py b/finance/electrum/files/patch-setup.py
index a81ba8815c0f..b76cd3b68df8 100644
--- a/finance/electrum/files/patch-setup.py
+++ b/finance/electrum/files/patch-setup.py
@@ -1,20 +1,20 @@
---- ./setup.py.orig 2013-06-09 19:36:25.355293000 +0900
-+++ ./setup.py 2013-06-09 19:45:13.675386000 +0900
+--- ./setup.py.orig 2013-04-07 16:33:32.000000000 +0400
++++ ./setup.py 2013-06-15 18:56:59.000000000 +0400
@@ -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'])
++ (os.path.join('%%PREFIX%%', 'share', 'applications'),['electrum.desktop']),
++ (os.path.join('%%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.append( (os.path.join('%%PREFIX%%', 'share/locale/%s/LC_MESSAGES'%lang), ['locale/%s/LC_MESSAGES/electrum.mo'%lang]) )
data_files += [
(util.appdata_dir(), ["data/README"]),
diff --git a/finance/electrum/pkg-descr b/finance/electrum/pkg-descr
index d4290485de7f..d3e1ead6d6ef 100644
--- a/finance/electrum/pkg-descr
+++ b/finance/electrum/pkg-descr
@@ -1,7 +1,7 @@
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.
+wallet can be recovered from a secret phrase. There is no waiting
+time when you start the client, because it does not download the
+Bitcoin blockchain.
WWW: http://electrum.org/