/[gentoo-x86]/net-misc/electrum/electrum-1.0.ebuild
Gentoo

Contents of /net-misc/electrum/electrum-1.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Wed May 15 09:53:20 2013 UTC (16 months ago) by blueness
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Remove older unstable

(Portage version: 2.1.11.62/cvs/Linux x86_64, signed Manifest commit with key 0xF52D4BBA)

1 blueness 1.1 # Copyright 1999-2012 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 blueness 1.2 # $Header: /var/cvsroot/gentoo-x86/net-misc/electrum/electrum-1.0.ebuild,v 1.1 2012/09/16 20:45:21 blueness Exp $
4 blueness 1.1
5     EAPI="4"
6     PYTHON_DEPEND="2:2.6"
7     SUPPORT_PYTHON_ABIS="1"
8     RESTRICT_PYTHON_ABIS="2.5 3.*"
9    
10     inherit eutils distutils gnome2-utils
11    
12     MY_P=Electrum-${PV}
13     DESCRIPTION="User friendly Bitcoin client"
14     HOMEPAGE="http://electrum-desktop.com/"
15     SRC_URI="http://electrum-desktop.com/files/${MY_P}.tar.gz"
16    
17     LICENSE="GPL-3"
18     SLOT="0"
19     KEYWORDS="~amd64 ~x86"
20     IUSE="gtk qt4"
21     REQUIRED_USE="|| ( gtk qt4 )"
22    
23     LANGS="en cs de fr nl ru sl vi zh"
24    
25     for X in ${LANGS}; do
26     IUSE+=" linguas_${X}"
27     done
28     unset X
29    
30     RDEPEND="dev-python/ecdsa
31     dev-python/slowaes
32     gtk? ( dev-python/pygtk:2 )
33     qt4? ( dev-python/PyQt4 )"
34    
35     S=${WORKDIR}/${MY_P}
36    
37     DOCS="RELEASE-NOTES"
38    
39     src_prepare() {
40     # Prevent icon from being installed in the wrong location:
41     sed -i '/electrum\.png/ d' setup.py || die
42     sed -i "s:^Icon=.*:Icon=${PN}:" "${PN}.desktop" || die
43    
44     # Fix language code
45     mv locale/cn locale/zh || die # Chinese
46    
47     # Remove unrequested localization files:
48     local lang
49     for lang in ${LANGS#en}; do
50     if use linguas_$lang; then
51     test -f "locale/$lang/LC_MESSAGES/${PN}.mo" || die
52     else
53     rm -r "locale/$lang" || die
54     fi
55     done
56    
57     # Remove unrequested GUI implementations:
58     if use !gtk; then
59     rm lib/gui.py || die
60     fi
61     if use !qt4; then
62     rm lib/gui_qt.py lib/gui_lite.py || die
63     sed -i 's/default="lite"/default="gtk"/' electrum || die
64     fi
65    
66     distutils_src_prepare
67     }
68    
69     src_install() {
70     doicon -s 64 ${PN}.png
71     distutils_src_install
72     }
73    
74     pkg_preinst() {
75     gnome2_icon_savelist
76     }
77    
78     pkg_postinst() {
79     gnome2_icon_cache_update
80     distutils_pkg_postinst
81     }
82    
83     pkg_postrm() {
84     gnome2_icon_cache_update
85     distutils_pkg_postrm
86     }

  ViewVC Help
Powered by ViewVC 1.1.20