- Update to 2.6.4

- Update license
- Add NO_ARCH

PR:		212664
Submitted by:	amdmi3
Approved by:	kyuupichan@gmail.com (maintainer)
This commit is contained in:
Dmitry Marakasov 2016-09-16 22:30:31 +00:00
parent 17e86fd87a
commit 8338153336
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=422275
3 changed files with 19 additions and 12 deletions

View file

@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= electrum
PORTVERSION= 2.5.4
PORTVERSION= 2.6.4
CATEGORIES= finance python
MASTER_SITES= https://download.electrum.org/${PORTVERSION}/ \
http://download.electrum.org/${PORTVERSION}/
@ -11,7 +11,7 @@ DISTNAME= Electrum-${PORTVERSION}
MAINTAINER= kyuupichan@gmail.com
COMMENT= Easy to use Bitcoin client
LICENSE= GPLv3
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENCE
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}slowaes>0:security/py-slowaes \
@ -22,11 +22,13 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}slowaes>0:security/py-slowaes \
${PYTHON_PKGNAMEPREFIX}tlslite>=0.4.6:security/py-tlslite \
${PYTHON_PKGNAMEPREFIX}pbkdf2>=1.3:security/py-pbkdf2 \
${PYTHON_PKGNAMEPREFIX}protobuf>=2.6.0:devel/py-protobuf \
${PYTHON_PKGNAMEPREFIX}dnspython>0:dns/py-dnspython
${PYTHON_PKGNAMEPREFIX}dnspython>0:dns/py-dnspython \
${PYTHON_PKGNAMEPREFIX}jsonrpclib>0:devel/py-jsonrpclib
USES= desktop-file-utils python:-2.7
USE_PYTHON= autoplist distutils
PYDISTUTILS_PKGNAME= Electrum
NO_ARCH= yes
post-patch:
@${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},g' ${WRKSRC}/setup.py

View file

@ -1,2 +1,3 @@
SHA256 (Electrum-2.5.4.tar.gz) = c0b00f440884fe3f087e842c44914e1c5f1139d0288ecb74ba6e1ff0b2504aa3
SIZE (Electrum-2.5.4.tar.gz) = 2114549
TIMESTAMP = 1473766225
SHA256 (Electrum-2.6.4.tar.gz) = 2ab53b434206ed8ae72e9cadb22d44ef9ba720a7d052abe102f5d55cafbef866
SIZE (Electrum-2.6.4.tar.gz) = 5717600

View file

@ -1,11 +1,15 @@
--- setup.py.orig 2015-10-18 10:56:02 UTC
--- setup.py.orig 2016-02-29 14:37:15 UTC
+++ setup.py
@@ -16,7 +16,7 @@ if sys.version_info[:3] < (2, 7, 0):
data_files = []
if platform.system() in ['Linux', 'FreeBSD', 'DragonFly']:
- usr_share = os.path.join(sys.prefix, "share")
+ usr_share = '%%PREFIX%%/share'
@@ -21,12 +21,6 @@ if platform.system() in ['Linux', 'FreeB
parser.add_argument('--root=', dest='root_path', metavar='dir', default='/')
opts, _ = parser.parse_known_args(sys.argv[1:])
usr_share = os.path.join(sys.prefix, "share")
- if not os.access(opts.root_path + usr_share, os.W_OK) and \
- not os.access(opts.root_path, os.W_OK):
- if 'XDG_DATA_HOME' in os.environ.keys():
- usr_share = os.environ['$XDG_DATA_HOME']
- else:
- usr_share = os.path.expanduser('~/.local/share')
data_files += [
(os.path.join(usr_share, 'applications/'), ['electrum.desktop']),
(os.path.join(usr_share, 'pixmaps/'), ['icons/electrum.png'])