aboutsummaryrefslogtreecommitdiffstats
path: root/finance
diff options
context:
space:
mode:
authorrm <rm@FreeBSD.org>2013-06-16 13:49:15 +0800
committerrm <rm@FreeBSD.org>2013-06-16 13:49:15 +0800
commit9cc14d5d638496e575243692e66d7d82778638e0 (patch)
tree00e9ce14d592be79de7c97aa6a652f57cc25ec6f /finance
parent39c0d0dfb6116b239089f7a83d26dac88849be65 (diff)
downloadfreebsd-ports-gnome-9cc14d5d638496e575243692e66d7d82778638e0.tar.gz
freebsd-ports-gnome-9cc14d5d638496e575243692e66d7d82778638e0.tar.zst
freebsd-ports-gnome-9cc14d5d638496e575243692e66d7d82778638e0.zip
- make this port PREFIX-safe
- change PORTNAME to lower-case variant [1] - stop suggesting users to right down their passwords [2] Requested by: danfe [1], remko [2] Approved by: Neil Booth <kyuupichan@gmail.com> (maintainer, by mail)
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/