diff options
-rw-r--r-- | net-misc/electrum/ChangeLog | 10 | ||||
-rw-r--r-- | net-misc/electrum/electrum-1.0.ebuild | 86 | ||||
-rw-r--r-- | net-misc/electrum/metadata.xml | 16 |
3 files changed, 112 insertions, 0 deletions
diff --git a/net-misc/electrum/ChangeLog b/net-misc/electrum/ChangeLog new file mode 100644 index 000000000000..605a91d843c1 --- /dev/null +++ b/net-misc/electrum/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for net-misc/electrum +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/electrum/ChangeLog,v 1.1 2012/09/16 20:45:21 blueness Exp $ + +*electrum-1.0 (16 Sep 2012) + + 16 Sep 2012; Anthony G. Basile <blueness@gentoo.org> +electrum-1.0.ebuild, + +metadata.xml: + Initial commit + diff --git a/net-misc/electrum/electrum-1.0.ebuild b/net-misc/electrum/electrum-1.0.ebuild new file mode 100644 index 000000000000..6909b7409bde --- /dev/null +++ b/net-misc/electrum/electrum-1.0.ebuild @@ -0,0 +1,86 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/electrum/electrum-1.0.ebuild,v 1.1 2012/09/16 20:45:21 blueness Exp $ + +EAPI="4" +PYTHON_DEPEND="2:2.6" +SUPPORT_PYTHON_ABIS="1" +RESTRICT_PYTHON_ABIS="2.5 3.*" + +inherit eutils distutils gnome2-utils + +MY_P=Electrum-${PV} +DESCRIPTION="User friendly Bitcoin client" +HOMEPAGE="http://electrum-desktop.com/" +SRC_URI="http://electrum-desktop.com/files/${MY_P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="gtk qt4" +REQUIRED_USE="|| ( gtk qt4 )" + +LANGS="en cs de fr nl ru sl vi zh" + +for X in ${LANGS}; do + IUSE+=" linguas_${X}" +done +unset X + +RDEPEND="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 language code + mv locale/cn locale/zh || die # Chinese + + # 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 lib/gui.py || die + fi + if use !qt4; then + rm lib/gui_qt.py lib/gui_lite.py || die + sed -i 's/default="lite"/default="gtk"/' electrum || die + fi + + distutils_src_prepare +} + +src_install() { + doicon -s 64 ${PN}.png + distutils_src_install +} + +pkg_preinst() { + gnome2_icon_savelist +} + +pkg_postinst() { + gnome2_icon_cache_update + distutils_pkg_postinst +} + +pkg_postrm() { + gnome2_icon_cache_update + distutils_pkg_postrm +} diff --git a/net-misc/electrum/metadata.xml b/net-misc/electrum/metadata.xml new file mode 100644 index 000000000000..1bc853afbd90 --- /dev/null +++ b/net-misc/electrum/metadata.xml @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>blueness@gentoo.org</email> + <name>Anthony G. Basile</name> + </maintainer> + <maintainer> + <email>luke-jr+gentoobugs@utopios.org</email> + <name>Luke Dashjr</name> + </maintainer> + <maintainer> + <email>maksverver@geocities.com</email> + <name>Maks Verver</name> + </maintainer> +</pkgmetadata> |