From b56cc3c2453886f43be14f834630b0b2fc871b33 Mon Sep 17 00:00:00 2001 From: Markos Chandras Date: Sun, 29 May 2011 12:06:54 +0000 Subject: Initial commit. Bug #211174 and Bug #256747 (Portage version: 2.2.0_alpha36/cvs/Linux x86_64) --- net-im/emesene/ChangeLog | 17 +++++++++ net-im/emesene/emesene-1.6.3.ebuild | 68 ++++++++++++++++++++++++++++++++++++ net-im/emesene/emesene-2.11.4.ebuild | 55 +++++++++++++++++++++++++++++ net-im/emesene/metadata.xml | 15 ++++++++ 4 files changed, 155 insertions(+) create mode 100644 net-im/emesene/ChangeLog create mode 100644 net-im/emesene/emesene-1.6.3.ebuild create mode 100644 net-im/emesene/emesene-2.11.4.ebuild create mode 100644 net-im/emesene/metadata.xml (limited to 'net-im/emesene') diff --git a/net-im/emesene/ChangeLog b/net-im/emesene/ChangeLog new file mode 100644 index 000000000000..a63feae146e8 --- /dev/null +++ b/net-im/emesene/ChangeLog @@ -0,0 +1,17 @@ +# ChangeLog for net-im/emesene +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-im/emesene/ChangeLog,v 1.1 2011/05/29 12:06:54 hwoarang Exp $ + +*emesene-2.11.4 (29 May 2011) +*emesene-1.6.3 (29 May 2011) + + 29 May 2011; Markos Chandras +emesene-1.6.3.ebuild, + +emesene-2.11.4.ebuild, +metadata.xml: + Initial commit of emesene packages + + emesene-1.6.3: Bug #211174. Thanks to Fabiano Francesconi (elbryan) + + + emesene-2.11.4: Bug #256747. Thanks to everyone who contributed various + ebuilds + diff --git a/net-im/emesene/emesene-1.6.3.ebuild b/net-im/emesene/emesene-1.6.3.ebuild new file mode 100644 index 000000000000..fbbb5e8f3251 --- /dev/null +++ b/net-im/emesene/emesene-1.6.3.ebuild @@ -0,0 +1,68 @@ +# 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.ebuild,v 1.1 2011/05/29 12:06:54 hwoarang 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 + dev-python/gst-python + webcam? ( media-plugins/gst-plugins-meta[v4l2] )" + +src_prepare() { + rm GPL PSF LGPL || die "rm license files failed" + + if ! use webcam; then + rm -r libmimic || die "rm libmimic dir failed" + fi +} + +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} +} diff --git a/net-im/emesene/emesene-2.11.4.ebuild b/net-im/emesene/emesene-2.11.4.ebuild new file mode 100644 index 000000000000..a4805727f3fa --- /dev/null +++ b/net-im/emesene/emesene-2.11.4.ebuild @@ -0,0 +1,55 @@ +# 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-2.11.4.ebuild,v 1.1 2011/05/29 12:06:54 hwoarang Exp $ + +EAPI="3" +PYTHON_DEPEND="2" +PYTHON_USE_WITH="sqlite" +SUPPORT_PYTHON_ABIS="1" +RESTRICT_PYTHON_ABIS="3.*" + +inherit distutils eutils + +DESCRIPTION="Platform independent MSN Messenger client written in Python+GTK" +HOMEPAGE="http://www.emesene.org" +SRC_URI="http://dev.gentoo.org/~hwoarang/distfiles/${P}.tar.gz" + +LICENSE="|| ( GPL-2 GPL-3 LGPL-3 )" +SLOT="2" +KEYWORDS="~amd64 ~x86" +IUSE="jabber" + +RDEPEND="dev-python/pygtk:2 + dev-python/papyon + dev-python/notify-python + jabber? ( dev-python/xmpppy )" + +src_prepare() { + # do not import dummy session + sed -i -e "/import e3dummy/d" ${PN}.py + # fix .desktop icon to look for emesene-2 executable + sed -i -e "s:${PN}:${PN}-2:g" \ + ${PN}/data/share/applications/${PN}.desktop + # Use a better meny entry + sed -i -e "/^Name/s:${PN}-2:Emesene v2:" \ + ${PN}/data/share/applications/${PN}.desktop + 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 +} diff --git a/net-im/emesene/metadata.xml b/net-im/emesene/metadata.xml new file mode 100644 index 000000000000..c66fa3949beb --- /dev/null +++ b/net-im/emesene/metadata.xml @@ -0,0 +1,15 @@ + + + +no-herd + +hwoarang@gentoo.org +Markos Chandras + + + Enable support for webcam + + + + + -- cgit v1.2.3-65-gdbad