/[gentoo-x86]/net-im/emesene/emesene-2.12.3.ebuild
Gentoo

Contents of /net-im/emesene/emesene-2.12.3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (hide annotations) (download)
Tue Jul 24 21:11:57 2012 UTC (2 years, 5 months ago) by hwoarang
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
Stable on amd64 wrt bug #427634. Remove old

(Portage version: 2.1.11.9/cvs/Linux x86_64)

1 hwoarang 1.1 # Copyright 1999-2012 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 hwoarang 1.4 # $Header: /var/cvsroot/gentoo-x86/net-im/emesene/emesene-2.12.3.ebuild,v 1.3 2012/05/21 21:14:58 ago Exp $
4 hwoarang 1.1
5     EAPI="4"
6     PYTHON_DEPEND="2"
7     PYTHON_USE_WITH="sqlite"
8     SUPPORT_PYTHON_ABIS="1"
9     RESTRICT_PYTHON_ABIS="3.*"
10    
11     inherit distutils eutils
12    
13     DESCRIPTION="Platform independent MSN Messenger client written in Python+GTK"
14     HOMEPAGE="http://www.emesene.org"
15     SRC_URI="http://github.com/emesene/emesene/tarball/v${PV} -> ${P}.tar.gz"
16    
17     LICENSE="|| ( GPL-2 GPL-3 LGPL-3 )"
18     SLOT="2"
19 ago 1.3 KEYWORDS="amd64 x86"
20 hwoarang 1.1 IUSE="jabber"
21    
22     RDEPEND="dev-python/pygtk:2
23     dev-python/papyon
24     dev-python/notify-python
25     jabber? ( dev-python/xmpppy )"
26    
27     GIT_SHA="e604df2"
28     S="${WORKDIR}/${PN}-${PN}-${GIT_SHA}"
29    
30     src_prepare() {
31     # do not import dummy session
32     sed -i -e "/import e3dummy/d" ${PN}/${PN}.py || die
33     # fix .desktop icon to look for emesene-2 executable
34     sed -i -e "s:${PN}:${PN}-2:g" \
35     ${PN}/data/share/applications/${PN}.desktop || die
36     # Use a better meny entry
37     sed -i -e "/^Name/s:${PN}-2:Emesene v2:" \
38     ${PN}/data/share/applications/${PN}.desktop || die
39    
40     python_convert_shebangs -r 2 .
41     distutils_src_prepare
42     }
43    
44     src_install() {
45     mysymlink(){
46     dosym $(python_get_sitedir)/${PN}/${PN} /usr/bin/${PN}-2 || die
47     }
48     distutils_src_install
49     # fix names
50     mv "${D}"/usr/share/applications/${PN}.desktop \
51     "${D}"/usr/share/applications/${PN}-2.desktop
52     mv "${D}"/usr/share/pixmaps/${PN}.png \
53     "${D}"/usr/share/pixmaps/${PN}-2.png
54     mv "${D}"/usr/share/pixmaps/${PN}.xpm \
55     "${D}"/usr/share/pixmaps/${PN}-2.xpm
56     mv "${D}"/usr/share/man/man1/${PN}.1 \
57     "${D}"/usr/share/man/man1/${PN}-2.1
58    
59     python_execute_function -q mysymlink
60     }

  ViewVC Help
Powered by ViewVC 1.1.20