summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPacho Ramos <pacho@gentoo.org>2011-11-28 20:31:54 +0000
committerPacho Ramos <pacho@gentoo.org>2011-11-28 20:31:54 +0000
commit26e5e6fa3d2b6473f2fa341ae4227c804154d64e (patch)
treedbc37ff9574e8d8d3a6d5910b9be8d1920a37dfe /net-im/emesene/emesene-1.6.3-r1.ebuild
parentDrop DEPRECATED flags, bug #385597 (diff)
downloadgentoo-2-26e5e6fa3d2b6473f2fa341ae4227c804154d64e.tar.gz
gentoo-2-26e5e6fa3d2b6473f2fa341ae4227c804154d64e.tar.bz2
gentoo-2-26e5e6fa3d2b6473f2fa341ae4227c804154d64e.zip
Workaround problems to connect to servers, bug #389955
(Portage version: 2.1.10.38/cvs/Linux x86_64)
Diffstat (limited to 'net-im/emesene/emesene-1.6.3-r1.ebuild')
-rw-r--r--net-im/emesene/emesene-1.6.3-r1.ebuild78
1 files changed, 78 insertions, 0 deletions
diff --git a/net-im/emesene/emesene-1.6.3-r1.ebuild b/net-im/emesene/emesene-1.6.3-r1.ebuild
new file mode 100644
index 000000000000..632c70f66e07
--- /dev/null
+++ b/net-im/emesene/emesene-1.6.3-r1.ebuild
@@ -0,0 +1,78 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-im/emesene/emesene-1.6.3-r1.ebuild,v 1.1 2011/11/28 20:31:54 pacho Exp $
+
+EAPI="2"
+PYTHON_DEPEND="2"
+
+inherit python eutils
+
+DESCRIPTION="Platform independent MSN Messenger client written in Python+GTK"
+HOMEPAGE="http://www.emesene.org"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="webcam"
+
+RDEPEND="dev-python/pygtk:2
+ webcam? ( media-plugins/gst-plugins-meta[v4l]
+ dev-python/gst-python
+ media-libs/libmimic )"
+
+pkg_setup() {
+ python_set_active_version 2
+}
+
+src_prepare() {
+ # Workaround problems to connect to servers, bug #389955
+ epatch "${FILESDIR}/${P}-update-servers.patch"
+
+ rm GPL PSF LGPL || die "rm license files failed"
+
+ if ! use webcam; then
+ rm -r libmimic || die "rm libmimic dir failed"
+ fi
+
+ python_convert_shebangs -r 2 .
+}
+
+src_compile() {
+ if use webcam ; then
+ $(PYTHON) ./setup.py build_ext -i || die "libmimic compile failed"
+ fi
+}
+
+src_install() {
+ if use webcam; then
+ rm -r build || die "rm build failed"
+ fi
+
+ insinto /usr/share/${PN}
+ doins -r * || die "doins failed"
+
+ fperms a+x /usr/share/${PN}/${PN} || die "fperms failed"
+ dosym /usr/share/${PN}/${PN} /usr/bin/${PN} || die "dosym failed"
+
+ doman misc/${PN}.1 || die "doman failed"
+
+ doicon misc/*.{svg,png} || die "doicon failed"
+
+ # install the desktop entry
+ domenu misc/${PN}.desktop || die "domenu failed"
+}
+
+pkg_postinst() {
+ python_mod_optimize /usr/share/${PN}
+
+ elog "If you want to use the spell-checking feature, you should emerge"
+ elog "dev-python/gtkspell-python"
+ elog
+ elog "If you want to use EncryptMessage plugin, you should emerge"
+ elog "dev-python/pexpect"
+}
+
+pkg_postrm() {
+ python_mod_cleanup /usr/share/${PN}
+}