From 220fb58d8124b44a530a4c22c87c2e57d50fb39d Mon Sep 17 00:00:00 2001 From: Peter Weller Date: Tue, 23 Oct 2007 13:46:27 +0100 Subject: Initial commit --- net-im/gajim/gajim-9999.ebuild | 105 +++++++++++++++++++++++++++++++++++++++++ net-im/gajim/metadata.xml | 12 +++++ 2 files changed, 117 insertions(+) create mode 100644 net-im/gajim/gajim-9999.ebuild create mode 100644 net-im/gajim/metadata.xml diff --git a/net-im/gajim/gajim-9999.ebuild b/net-im/gajim/gajim-9999.ebuild new file mode 100644 index 0000000..6725cab --- /dev/null +++ b/net-im/gajim/gajim-9999.ebuild @@ -0,0 +1,105 @@ +opyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit multilib python eutils subversion + +ESVN_REPO_URI="svn://svn.gajim.org/gajim/trunk" +ESVN_PROJECT="gajim" +ESVN_BOOTSTRAP="autogen.sh" + +DESCRIPTION="Jabber client written in PyGTK" +HOMEPAGE="http://www.gajim.org/" +SRC_URI="" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" +IUSE="avahi dbus gnome idle libnotify nls spell srv trayicon X xhtml" + +DEPEND="|| ( + ( =dev-lang/python-2.5 + ) + dev-python/pygtk + sys-devel/gettext + dev-util/intltool + dev-util/pkgconfig" + +RDEPEND="gnome? ( dev-python/gnome-python-extras + dev-python/gnome-python-desktop + ) + dbus? ( dev-python/dbus-python dev-libs/dbus-glib ) + libnotify? ( x11-libs/libnotify ) + xhtml? ( dev-python/docutils ) + srv? ( net-dns/bind-tools ) + idle? ( x11-libs/libXScrnSaver ) + spell? ( app-text/gtkspell ) + avahi? ( net-dns/avahi ) + dev-python/pyopenssl" + +pkg_setup() { + if ! use dbus; then + if use libnotify; then + eerror "The dbus USE flag is required for libnotify support" + die "USE=\"dbus\" needed for libnotify support" + fi + if use avahi; then + eerror "The dbus USE flag is required for avahi support" + die "USE=\"dbus\" needed for avahi support" + fi + else + if has_version "=dev-lang/python-2.5" && ! built_with_use dev-lang/python sqlite; then + eerror "Please rebuild python with USE=\"sqlite\"" + die "USE=\"sqlite\" needed for python" + fi +} + +src_compile() { + local myconf + + if ! use gnome; then + myconf="${myconf} $(use_enable trayicon)" + myconf="${myconf} $(use_enable idle)" + fi + + econf $(use_enable nls) \ + $(use_enable spell gtkspell) \ + $(use_enable dbus remote) \ + $(use_with X x) \ + --docdir="/usr/share/doc/${PF}" \ + --prefix="/usr" \ + --libdir="/usr/$(get_libdir)" \ + ${myconf} || die "econf failed" + + emake || die "emake failed" +} + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed" + + rm "${D}/usr/share/doc/${PF}/README.html" + dohtml README.html +} + +pkg_postinst() { + python_mod_optimize /usr/share/gajim/ +} + +pkg_postrm() { + python_mod_cleanup /usr/share/gajim/ +} diff --git a/net-im/gajim/metadata.xml b/net-im/gajim/metadata.xml new file mode 100644 index 0000000..153411c --- /dev/null +++ b/net-im/gajim/metadata.xml @@ -0,0 +1,12 @@ + + + + net-im + + welp@gentoo.org + Peter Weller + + + A fully featured and easy to use GTK+ Jabber client written in PyGTK. + + -- cgit v1.2.3-65-gdbad