You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
63 lines
1.7 KiB
63 lines
1.7 KiB
# Copyright 1999-2014 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
# $Header: /var/cvsroot/gentoo-x86/net-im/emesene/emesene-2.12.9.ebuild,v 1.9 2014/08/05 18:34:06 mrueg Exp $
|
|
|
|
EAPI="4"
|
|
PYTHON_DEPEND="2"
|
|
PYTHON_USE_WITH="sqlite"
|
|
SUPPORT_PYTHON_ABIS="1"
|
|
RESTRICT_PYTHON_ABIS="3.*"
|
|
|
|
inherit distutils eutils
|
|
|
|
DESCRIPTION="Platform independent IM client written in Python+GTK"
|
|
HOMEPAGE="http://www.emesene.org"
|
|
SRC_URI="http://github.com/emesene/emesene/tarball/v${PV} -> ${P}.tar.gz"
|
|
|
|
LICENSE="|| ( GPL-2 GPL-3 LGPL-3 )"
|
|
SLOT="0"
|
|
KEYWORDS="amd64 x86"
|
|
IUSE=""
|
|
|
|
RDEPEND="dev-python/pygtk:2
|
|
dev-python/notify-python
|
|
dev-python/pycrypto
|
|
dev-python/pywebkitgtk
|
|
dev-python/pyopenssl
|
|
dev-python/xmpppy"
|
|
|
|
GIT_SHA="b89aa5e"
|
|
S="${WORKDIR}/${PN}-${PN}-${GIT_SHA}"
|
|
|
|
src_prepare() {
|
|
# do not import dummy session
|
|
sed -i -e "/import e3dummy/d" ${PN}/${PN}.py || die
|
|
# fix .desktop icon to look for emesene-2 executable
|
|
sed -i -e "s:${PN}:${PN}-2:g" \
|
|
${PN}/data/share/applications/${PN}.desktop || die
|
|
# Use a better meny entry
|
|
sed -i -e "/^Name/s:${PN}-2:Emesene v2:" \
|
|
${PN}/data/share/applications/${PN}.desktop || die
|
|
|
|
python_convert_shebangs -r 2 .
|
|
distutils_src_prepare
|
|
}
|
|
|
|
src_install() {
|
|
mysymlink(){
|
|
dosym $(python_get_sitedir)/${PN}/${PN} /usr/bin/${PN}-2 || die
|
|
}
|
|
distutils_src_install
|
|
# fix names
|
|
mv "${D}"/usr/share/applications/${PN}.desktop \
|
|
"${D}"/usr/share/applications/${PN}-2.desktop
|
|
mv "${D}"/usr/share/pixmaps/${PN}.png \
|
|
"${D}"/usr/share/pixmaps/${PN}-2.png
|
|
mv "${D}"/usr/share/pixmaps/${PN}.xpm \
|
|
"${D}"/usr/share/pixmaps/${PN}-2.xpm
|
|
mv "${D}"/usr/share/man/man1/${PN}.1 \
|
|
"${D}"/usr/share/man/man1/${PN}-2.1
|
|
|
|
python_execute_function -q mysymlink
|
|
}
|