Skip to content
Browse files

Added emesene ebuild

  • Loading branch information...
1 parent 2eb25cf commit c3c75425ec1e92e3e0cc323ebf3f8c0b28168b69 @elbryan committed Feb 1, 2010
Showing with 69 additions and 0 deletions.
  1. +61 −0 net-im/emesene/emesene-1.6.ebuild
  2. +8 −0 net-im/emesene/metadata.xml
View
61 net-im/emesene/emesene-1.6.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="2"
+
+inherit distutils
+
+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="libmimic"
+
+DEPEND=""
+RDEPEND="x11-libs/gtk+:2
+ dev-python/pygtk:2"
+
+src_prepare() {
+ rm -f GPL PSF LGPL || die "rm failed"
+
+ if ! use libmimic; then
+ rm -rf libmimic || die "rm libmimic failed"
+ fi
+}
+
+src_compile() {
+ if use libmimic ; then
+ ${python} ./setup.py build_ext -i || die "libmimic compile failed"
+ fi
+}
+
+src_install() {
+ insinto /usr/$(get_libdir)/${PN}
+ doins -r * || die "doins failed"
+
+ fperms a+x /usr/$(get_libdir)/${PN}/${PN} || die "fperms failed"
+ dosym /usr/$(get_libdir)/${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/$(get_libdir)/${PN}
+
+ einfo
+ einfo "If you want to use the spell-checking feature, you should emerge"
+ einfo "dev-python/gtkspell-python"
+}
+
+pkg_postrm() {
+ python_mod_cleanup /usr/$(get_libdir)/${PN}
+}
View
8 net-im/emesene/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>maintainer-wanted</herd>
+ <use>
+ <flag name='libmimic'>Enable support for webcam</flag>
+ </use>
+</pkgmetadata>

0 comments on commit c3c7542

Please sign in to comment.
Something went wrong with that request. Please try again.