From f3b8c101870977b62cd1b75172d08b2ad054f5f6 Mon Sep 17 00:00:00 2001 From: rm Date: Sat, 15 Jun 2013 11:29:10 +0000 Subject: 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. WWW: http://electrum.org/ PR: 179446 Submitted by: Neil Booth --- finance/Makefile | 1 + finance/electrum/Makefile | 21 +++++ finance/electrum/distinfo | 2 + finance/electrum/files/patch-lib__util.py | 14 +++ finance/electrum/files/patch-setup.py | 20 ++++ finance/electrum/pkg-descr | 7 ++ finance/electrum/pkg-plist | 147 ++++++++++++++++++++++++++++++ 7 files changed, 212 insertions(+) create mode 100644 finance/electrum/Makefile create mode 100644 finance/electrum/distinfo create mode 100644 finance/electrum/files/patch-lib__util.py create mode 100644 finance/electrum/files/patch-setup.py create mode 100644 finance/electrum/pkg-descr create mode 100644 finance/electrum/pkg-plist diff --git a/finance/Makefile b/finance/Makefile index 4a21d70f400f..1b103f5ca14d 100644 --- a/finance/Makefile +++ b/finance/Makefile @@ -23,6 +23,7 @@ SUBDIR += aqmoney SUBDIR += beanie SUBDIR += cbb + SUBDIR += electrum SUBDIR += eqonomize-kde3 SUBDIR += eqonomize-kde4 SUBDIR += expense diff --git a/finance/electrum/Makefile b/finance/electrum/Makefile new file mode 100644 index 000000000000..adb5b2048fa9 --- /dev/null +++ b/finance/electrum/Makefile @@ -0,0 +1,21 @@ +# Created by: Neil Booth +# $FreeBSD$ + +PORTNAME= Electrum +PORTVERSION= 1.7.3 +CATEGORIES= finance python +MASTER_SITES= http://download.electrum.org/download/ + +MAINTAINER= kyuupichan@gmail.com +COMMENT= Easy to use Bitcoin client + +LICENSE= GPLv3 + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}slowaes>0:${PORTSDIR}/security/py-slowaes \ + ${PYTHON_PKGNAMEPREFIX}ecdsa>0:${PORTSDIR}/security/py-ecdsa \ + ${PYTHON_PKGNAMEPREFIX}qt4>=4.9:${PORTSDIR}/devel/py-qt4 + +USE_PYTHON= -2.7 +USE_PYDISTUTILS=yes + +.include diff --git a/finance/electrum/distinfo b/finance/electrum/distinfo new file mode 100644 index 000000000000..cd58cc21b5c7 --- /dev/null +++ b/finance/electrum/distinfo @@ -0,0 +1,2 @@ +SHA256 (Electrum-1.7.3.tar.gz) = bd16afafa70c6c104eb82723bf4555405774c48f6723593e95ef49de0b8f3e51 +SIZE (Electrum-1.7.3.tar.gz) = 492076 diff --git a/finance/electrum/files/patch-lib__util.py b/finance/electrum/files/patch-lib__util.py new file mode 100644 index 000000000000..e8347d0e2ef0 --- /dev/null +++ b/finance/electrum/files/patch-lib__util.py @@ -0,0 +1,14 @@ +--- ./lib/util.py.orig 2013-04-07 21:30:06.000000000 +0900 ++++ ./lib/util.py 2013-06-09 19:36:01.945732000 +0900 +@@ -59,8 +59,10 @@ + return os.path.join(os.environ["APPDATA"], "Electrum") + elif platform.system() == "Linux": + return os.path.join(sys.prefix, "share", "electrum") ++ elif (sys.platform.startswith("dragonfly") or ++ sys.platform.startswith("freebsd")): ++ return os.path.join(sys.prefix, "share", "electrum") + elif (platform.system() == "Darwin" or +- platform.system() == "DragonFly" or + platform.system() == "NetBSD"): + return "/Library/Application Support/Electrum" + else: diff --git a/finance/electrum/files/patch-setup.py b/finance/electrum/files/patch-setup.py new file mode 100644 index 000000000000..a81ba8815c0f --- /dev/null +++ b/finance/electrum/files/patch-setup.py @@ -0,0 +1,20 @@ +--- ./setup.py.orig 2013-06-09 19:36:25.355293000 +0900 ++++ ./setup.py 2013-06-09 19:45:13.675386000 +0900 +@@ -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']) + ] + 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 += [ + (util.appdata_dir(), ["data/README"]), diff --git a/finance/electrum/pkg-descr b/finance/electrum/pkg-descr new file mode 100644 index 000000000000..d4290485de7f --- /dev/null +++ b/finance/electrum/pkg-descr @@ -0,0 +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. + +WWW: http://electrum.org/ diff --git a/finance/electrum/pkg-plist b/finance/electrum/pkg-plist new file mode 100644 index 000000000000..a0dc7db62993 --- /dev/null +++ b/finance/electrum/pkg-plist @@ -0,0 +1,147 @@ +bin/electrum +%%PYTHON_SITELIBDIR%%/electrum/__init__.py +%%PYTHON_SITELIBDIR%%/electrum/__init__.pyc +%%PYTHON_SITELIBDIR%%/electrum/__init__.pyo +%%PYTHON_SITELIBDIR%%/electrum/bitcoin.py +%%PYTHON_SITELIBDIR%%/electrum/bitcoin.pyc +%%PYTHON_SITELIBDIR%%/electrum/bitcoin.pyo +%%PYTHON_SITELIBDIR%%/electrum/commands.py +%%PYTHON_SITELIBDIR%%/electrum/commands.pyc +%%PYTHON_SITELIBDIR%%/electrum/commands.pyo +%%PYTHON_SITELIBDIR%%/electrum/deserialize.py +%%PYTHON_SITELIBDIR%%/electrum/deserialize.pyc +%%PYTHON_SITELIBDIR%%/electrum/deserialize.pyo +%%PYTHON_SITELIBDIR%%/electrum/interface.py +%%PYTHON_SITELIBDIR%%/electrum/interface.pyc +%%PYTHON_SITELIBDIR%%/electrum/interface.pyo +%%PYTHON_SITELIBDIR%%/electrum/mnemonic.py +%%PYTHON_SITELIBDIR%%/electrum/mnemonic.pyc +%%PYTHON_SITELIBDIR%%/electrum/mnemonic.pyo +%%PYTHON_SITELIBDIR%%/electrum/msqr.py +%%PYTHON_SITELIBDIR%%/electrum/msqr.pyc +%%PYTHON_SITELIBDIR%%/electrum/msqr.pyo +%%PYTHON_SITELIBDIR%%/electrum/simple_config.py +%%PYTHON_SITELIBDIR%%/electrum/simple_config.pyc +%%PYTHON_SITELIBDIR%%/electrum/simple_config.pyo +%%PYTHON_SITELIBDIR%%/electrum/socks.py +%%PYTHON_SITELIBDIR%%/electrum/socks.pyc +%%PYTHON_SITELIBDIR%%/electrum/socks.pyo +%%PYTHON_SITELIBDIR%%/electrum/util.py +%%PYTHON_SITELIBDIR%%/electrum/util.pyc +%%PYTHON_SITELIBDIR%%/electrum/util.pyo +%%PYTHON_SITELIBDIR%%/electrum/verifier.py +%%PYTHON_SITELIBDIR%%/electrum/verifier.pyc +%%PYTHON_SITELIBDIR%%/electrum/verifier.pyo +%%PYTHON_SITELIBDIR%%/electrum/version.py +%%PYTHON_SITELIBDIR%%/electrum/version.pyc +%%PYTHON_SITELIBDIR%%/electrum/version.pyo +%%PYTHON_SITELIBDIR%%/electrum/wallet.py +%%PYTHON_SITELIBDIR%%/electrum/wallet.pyc +%%PYTHON_SITELIBDIR%%/electrum/wallet.pyo +%%PYTHON_SITELIBDIR%%/electrum/wallet_bitkey.py +%%PYTHON_SITELIBDIR%%/electrum/wallet_bitkey.pyc +%%PYTHON_SITELIBDIR%%/electrum/wallet_bitkey.pyo +%%PYTHON_SITELIBDIR%%/electrum/wallet_factory.py +%%PYTHON_SITELIBDIR%%/electrum/wallet_factory.pyc +%%PYTHON_SITELIBDIR%%/electrum/wallet_factory.pyo +%%PYTHON_SITELIBDIR%%/electrum_gui/__init__.py +%%PYTHON_SITELIBDIR%%/electrum_gui/__init__.pyc +%%PYTHON_SITELIBDIR%%/electrum_gui/__init__.pyo +%%PYTHON_SITELIBDIR%%/electrum_gui/amountedit.py +%%PYTHON_SITELIBDIR%%/electrum_gui/amountedit.pyc +%%PYTHON_SITELIBDIR%%/electrum_gui/amountedit.pyo +%%PYTHON_SITELIBDIR%%/electrum_gui/bmp.py +%%PYTHON_SITELIBDIR%%/electrum_gui/bmp.pyc +%%PYTHON_SITELIBDIR%%/electrum_gui/bmp.pyo +%%PYTHON_SITELIBDIR%%/electrum_gui/exchange_rate.py +%%PYTHON_SITELIBDIR%%/electrum_gui/exchange_rate.pyc +%%PYTHON_SITELIBDIR%%/electrum_gui/exchange_rate.pyo +%%PYTHON_SITELIBDIR%%/electrum_gui/gui_classic.py +%%PYTHON_SITELIBDIR%%/electrum_gui/gui_classic.pyc +%%PYTHON_SITELIBDIR%%/electrum_gui/gui_classic.pyo +%%PYTHON_SITELIBDIR%%/electrum_gui/gui_gtk.py +%%PYTHON_SITELIBDIR%%/electrum_gui/gui_gtk.pyc +%%PYTHON_SITELIBDIR%%/electrum_gui/gui_gtk.pyo +%%PYTHON_SITELIBDIR%%/electrum_gui/gui_lite.py +%%PYTHON_SITELIBDIR%%/electrum_gui/gui_lite.pyc +%%PYTHON_SITELIBDIR%%/electrum_gui/gui_lite.pyo +%%PYTHON_SITELIBDIR%%/electrum_gui/gui_text.py +%%PYTHON_SITELIBDIR%%/electrum_gui/gui_text.pyc +%%PYTHON_SITELIBDIR%%/electrum_gui/gui_text.pyo +%%PYTHON_SITELIBDIR%%/electrum_gui/history_widget.py +%%PYTHON_SITELIBDIR%%/electrum_gui/history_widget.pyc +%%PYTHON_SITELIBDIR%%/electrum_gui/history_widget.pyo +%%PYTHON_SITELIBDIR%%/electrum_gui/i18n.py +%%PYTHON_SITELIBDIR%%/electrum_gui/i18n.pyc +%%PYTHON_SITELIBDIR%%/electrum_gui/i18n.pyo +%%PYTHON_SITELIBDIR%%/electrum_gui/icons_rc.py +%%PYTHON_SITELIBDIR%%/electrum_gui/icons_rc.pyc +%%PYTHON_SITELIBDIR%%/electrum_gui/icons_rc.pyo +%%PYTHON_SITELIBDIR%%/electrum_gui/plugins.py +%%PYTHON_SITELIBDIR%%/electrum_gui/plugins.pyc +%%PYTHON_SITELIBDIR%%/electrum_gui/plugins.pyo +%%PYTHON_SITELIBDIR%%/electrum_gui/pyqrnative.py +%%PYTHON_SITELIBDIR%%/electrum_gui/pyqrnative.pyc +%%PYTHON_SITELIBDIR%%/electrum_gui/pyqrnative.pyo +%%PYTHON_SITELIBDIR%%/electrum_gui/qrcodewidget.py +%%PYTHON_SITELIBDIR%%/electrum_gui/qrcodewidget.pyc +%%PYTHON_SITELIBDIR%%/electrum_gui/qrcodewidget.pyo +%%PYTHON_SITELIBDIR%%/electrum_gui/qt_console.py +%%PYTHON_SITELIBDIR%%/electrum_gui/qt_console.pyc +%%PYTHON_SITELIBDIR%%/electrum_gui/qt_console.pyo +%%PYTHON_SITELIBDIR%%/electrum_gui/receiving_widget.py +%%PYTHON_SITELIBDIR%%/electrum_gui/receiving_widget.pyc +%%PYTHON_SITELIBDIR%%/electrum_gui/receiving_widget.pyo +%%PYTHON_SITELIBDIR%%/electrum_plugins/__init__.py +%%PYTHON_SITELIBDIR%%/electrum_plugins/__init__.pyc +%%PYTHON_SITELIBDIR%%/electrum_plugins/__init__.pyo +%%PYTHON_SITELIBDIR%%/electrum_plugins/aliases.py +%%PYTHON_SITELIBDIR%%/electrum_plugins/aliases.pyc +%%PYTHON_SITELIBDIR%%/electrum_plugins/aliases.pyo +%%PYTHON_SITELIBDIR%%/electrum_plugins/labels.py +%%PYTHON_SITELIBDIR%%/electrum_plugins/labels.pyc +%%PYTHON_SITELIBDIR%%/electrum_plugins/labels.pyo +%%PYTHON_SITELIBDIR%%/electrum_plugins/pointofsale.py +%%PYTHON_SITELIBDIR%%/electrum_plugins/pointofsale.pyc +%%PYTHON_SITELIBDIR%%/electrum_plugins/pointofsale.pyo +%%PYTHON_SITELIBDIR%%/electrum_plugins/qrscanner.py +%%PYTHON_SITELIBDIR%%/electrum_plugins/qrscanner.pyc +%%PYTHON_SITELIBDIR%%/electrum_plugins/qrscanner.pyo +%%PYTHON_SITELIBDIR%%/electrum_plugins/virtualkeyboard.py +%%PYTHON_SITELIBDIR%%/electrum_plugins/virtualkeyboard.pyc +%%PYTHON_SITELIBDIR%%/electrum_plugins/virtualkeyboard.pyo +@dirrm %%PYTHON_SITELIBDIR%%/electrum_plugins +@dirrm %%PYTHON_SITELIBDIR%%/electrum_gui +@dirrm %%PYTHON_SITELIBDIR%%/electrum +share/app-install/icons/electrum.png +share/applications/electrum.desktop +share/electrum/README +share/electrum/cleanlook/name.cfg +share/electrum/cleanlook/style.css +share/electrum/dark/background.png +share/electrum/dark/name.cfg +share/electrum/dark/style.css +share/electrum/sahara/name.cfg +share/electrum/sahara/style.css +share/locale/br/LC_MESSAGES/electrum.mo +share/locale/cs/LC_MESSAGES/electrum.mo +share/locale/de/LC_MESSAGES/electrum.mo +share/locale/eo/LC_MESSAGES/electrum.mo +share/locale/es/LC_MESSAGES/electrum.mo +share/locale/fr/LC_MESSAGES/electrum.mo +share/locale/it/LC_MESSAGES/electrum.mo +share/locale/ja/LC_MESSAGES/electrum.mo +share/locale/lv/LC_MESSAGES/electrum.mo +share/locale/nl/LC_MESSAGES/electrum.mo +share/locale/ru/LC_MESSAGES/electrum.mo +share/locale/sl/LC_MESSAGES/electrum.mo +share/locale/ta/LC_MESSAGES/electrum.mo +share/locale/vi/LC_MESSAGES/electrum.mo +share/locale/zh/LC_MESSAGES/electrum.mo +@dirrmtry share/app-install/icons +@dirrmtry share/app-install +@dirrmtry share/applications +@dirrm share/electrum/cleanlook +@dirrm share/electrum/dark +@dirrm share/electrum/sahara +@dirrm share/electrum -- cgit