summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2013-11-13 12:54:16 +0000
committerAnthony G. Basile <blueness@gentoo.org>2013-11-13 12:54:16 +0000
commitfdbfb8e0fdc3080901b8bf7ce2e435532076d58e (patch)
tree22a8da1689a76567be35464bffb453f4577355cd /net-misc/electrum
parentAdded; IUSE doc, test, doc build & install, test phase with diligent assistan... (diff)
downloadgentoo-2-fdbfb8e0fdc3080901b8bf7ce2e435532076d58e.tar.gz
gentoo-2-fdbfb8e0fdc3080901b8bf7ce2e435532076d58e.tar.bz2
gentoo-2-fdbfb8e0fdc3080901b8bf7ce2e435532076d58e.zip
Version bump
(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key 0xF52D4BBA)
Diffstat (limited to 'net-misc/electrum')
-rw-r--r--net-misc/electrum/ChangeLog7
-rw-r--r--net-misc/electrum/electrum-1.9.4.ebuild88
2 files changed, 94 insertions, 1 deletions
diff --git a/net-misc/electrum/ChangeLog b/net-misc/electrum/ChangeLog
index f19fba1d704a..0cebe517f023 100644
--- a/net-misc/electrum/ChangeLog
+++ b/net-misc/electrum/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for net-misc/electrum
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/electrum/ChangeLog,v 1.16 2013/11/12 14:59:11 blueness Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/electrum/ChangeLog,v 1.17 2013/11/13 12:54:16 blueness Exp $
+
+*electrum-1.9.4 (13 Nov 2013)
+
+ 13 Nov 2013; Anthony G. Basile <blueness@gentoo.org> +electrum-1.9.4.ebuild:
+ Version bump
*electrum-1.9.3 (12 Nov 2013)
diff --git a/net-misc/electrum/electrum-1.9.4.ebuild b/net-misc/electrum/electrum-1.9.4.ebuild
new file mode 100644
index 000000000000..b98bf07541a6
--- /dev/null
+++ b/net-misc/electrum/electrum-1.9.4.ebuild
@@ -0,0 +1,88 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/electrum/electrum-1.9.4.ebuild,v 1.1 2013/11/13 12:54:16 blueness Exp $
+
+EAPI="5"
+
+PYTHON_COMPAT=( python{2_6,2_7} )
+
+inherit eutils distutils-r1 gnome2-utils
+
+MY_P=Electrum-${PV}
+DESCRIPTION="User friendly Bitcoin client"
+HOMEPAGE="http://electrum.org/"
+SRC_URI="http://download.electrum.org/download/${MY_P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="gtk qt4"
+REQUIRED_USE="|| ( gtk qt4 )"
+
+LANGS="br cs de eo es fr it lv nl ru sl vi zh"
+
+for X in ${LANGS}; do
+ IUSE+=" linguas_${X}"
+done
+unset X
+
+RDEPEND="
+ dev-python/setuptools
+ dev-python/ecdsa
+ dev-python/slowaes
+ gtk? ( dev-python/pygtk:2 )
+ qt4? ( dev-python/PyQt4 )"
+
+S=${WORKDIR}/${MY_P}
+
+DOCS="RELEASE-NOTES"
+
+src_prepare() {
+ # Prevent icon from being installed in the wrong location:
+ sed -i '/electrum\.png/ d' setup.py || die
+ sed -i "s:^Icon=.*:Icon=${PN}:" "${PN}.desktop" || die
+
+ # Fix .desktop to pass validation
+ sed -i 's:bitcoin$:bitcoin;:' electrum.desktop || die
+
+ # Remove unrequested localization files:
+ local lang
+ for lang in ${LANGS#en}; do
+ if use linguas_$lang; then
+ test -f "locale/$lang/LC_MESSAGES/${PN}.mo" || die
+ else
+ rm -r "locale/$lang" || die
+ fi
+ done
+
+ # Remove unrequested GUI implementations:
+ if use !gtk; then
+ rm gui/gtk.py || die
+ sed -i "/electrum_gui.gtk/d" setup.py
+ fi
+ if use !qt4; then
+ rm -rf gui/qt || die
+ sed -i "/electrum_gui.qt/d" setup.py
+ sed -i "/config.get('gui','classic')/s/classic/gtk/" electrum \
+ || die
+ fi
+
+ distutils-r1_src_prepare
+}
+
+src_install() {
+ doicon -s 64 icons/${PN}.png
+ distutils-r1_src_install
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}