Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Jun 2013 05:49:15 +0000 (UTC)
From:      Ruslan Makhmatkhanov <rm@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r321023 - in head/finance/electrum: . files
Message-ID:  <201306160549.r5G5nFXG088410@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: rm
Date: Sun Jun 16 05:49:15 2013
New Revision: 321023
URL: http://svnweb.freebsd.org/changeset/ports/321023

Log:
  - 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)

Modified:
  head/finance/electrum/Makefile
  head/finance/electrum/files/patch-setup.py
  head/finance/electrum/pkg-descr

Modified: head/finance/electrum/Makefile
==============================================================================
--- head/finance/electrum/Makefile	Sun Jun 16 02:37:46 2013	(r321022)
+++ head/finance/electrum/Makefile	Sun Jun 16 05:49:15 2013	(r321023)
@@ -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}slow
 
 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>

Modified: head/finance/electrum/files/patch-setup.py
==============================================================================
--- head/finance/electrum/files/patch-setup.py	Sun Jun 16 02:37:46 2013	(r321022)
+++ head/finance/electrum/files/patch-setup.py	Sun Jun 16 05:49:15 2013	(r321023)
@@ -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"]),

Modified: head/finance/electrum/pkg-descr
==============================================================================
--- head/finance/electrum/pkg-descr	Sun Jun 16 02:37:46 2013	(r321022)
+++ head/finance/electrum/pkg-descr	Sun Jun 16 05:49:15 2013	(r321023)
@@ -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/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201306160549.r5G5nFXG088410>