diff options
author | 2011-01-05 15:19:15 +0000 | |
---|---|---|
committer | 2011-01-05 15:19:15 +0000 | |
commit | a18b454cb01bd40b5b7a822aaa016dad8dc84690 (patch) | |
tree | cd1b1f0a720626675278ac74d506efa01a2bc234 | |
parent | Add libhx-3.4 (diff) | |
download | eatnumber1-a18b454cb01bd40b5b7a822aaa016dad8dc84690.tar.gz eatnumber1-a18b454cb01bd40b5b7a822aaa016dad8dc84690.tar.bz2 eatnumber1-a18b454cb01bd40b5b7a822aaa016dad8dc84690.zip |
Live ebuilds for dzen and gajim; ebuild for wmname; package.mask fix for
portage
-rw-r--r-- | net-im/gajim/Manifest | 2 | ||||
-rw-r--r-- | net-im/gajim/files/window_class.patch | 46 | ||||
-rw-r--r-- | net-im/gajim/gajim-9999.ebuild | 109 | ||||
-rw-r--r-- | profiles/package.mask | 2 | ||||
-rw-r--r-- | x11-misc/dzen/Manifest | 1 | ||||
-rw-r--r-- | x11-misc/dzen/dzen-9999.ebuild | 47 | ||||
-rw-r--r-- | x11-wm/wmname/Manifest | 2 | ||||
-rw-r--r-- | x11-wm/wmname/wmname-0.1.ebuild | 20 |
8 files changed, 228 insertions, 1 deletions
diff --git a/net-im/gajim/Manifest b/net-im/gajim/Manifest new file mode 100644 index 0000000..3a32529 --- /dev/null +++ b/net-im/gajim/Manifest @@ -0,0 +1,2 @@ +AUX window_class.patch 1723 RMD160 29a38f5a50f9c2890b40b99ab942c1c9c8c5cfc5 SHA1 2298d605b92c7881c3f7ccd8bb61a4c6fadc8fff SHA256 4c7977fa971209ee8882b55aedb459fbe73dd85035eb97767ecb01d6b07d93e7 +EBUILD gajim-9999.ebuild 2384 RMD160 64a9d90368cf11f547b8d690b9f6b1af9a8b92d0 SHA1 82086a03effa660e5e4d6dbe903554c27b0f55fa SHA256 1e8d85e4944569d8f3ae940fb442ef21a61dbd225b4c0b473e5a43edc095ce20 diff --git a/net-im/gajim/files/window_class.patch b/net-im/gajim/files/window_class.patch new file mode 100644 index 0000000..007cd25 --- /dev/null +++ b/net-im/gajim/files/window_class.patch @@ -0,0 +1,46 @@ +diff -r 09d54b679f9d src/message_window.py +--- a/src/message_window.py Wed Dec 01 17:03:38 2010 +0300 ++++ b/src/message_window.py Fri Dec 10 19:14:34 2010 +0300 +@@ -75,6 +75,7 @@ + self.widget_name = 'message_window' + self.xml = gtkgui_helpers.get_gtk_builder('%s.ui' % self.widget_name) + self.window = self.xml.get_object(self.widget_name) ++ self.window.set_wmclass("%s - Gajim" % self.make_wmname(False), "gajim[%s]" % self.type_) + self.notebook = self.xml.get_object('notebook') + self.parent_paned = None + +@@ -443,6 +444,20 @@ + if icon: + self.window.set_icon(icon.get_pixbuf()) + ++ def make_wmname(self, translate=True): ++ if not translate: ++ tr = lambda x: x ++ else: ++ tr = _ ++ if self.type_ == 'chat': ++ label = tr('Chats') ++ elif self.type_ == 'gc': ++ label = tr('Group Chats') ++ else: ++ label = tr('Private Chats') ++ ++ return label ++ + def show_title(self, urgent=True, control=None): + """ + Redraw the window's title +@@ -481,12 +496,7 @@ + window_mode = gajim.interface.msg_win_mgr.mode + if window_mode == MessageWindowMgr.ONE_MSG_WINDOW_PERTYPE: + # Show the plural form since number of tabs > 1 +- if self.type_ == 'chat': +- label = _('Chats') +- elif self.type_ == 'gc': +- label = _('Group Chats') +- else: +- label = _('Private Chats') ++ label = self.make_wmname() + elif window_mode == MessageWindowMgr.ONE_MSG_WINDOW_ALWAYS_WITH_ROSTER: + label = None + elif self.get_num_controls() == 1:
\ No newline at end of file diff --git a/net-im/gajim/gajim-9999.ebuild b/net-im/gajim/gajim-9999.ebuild new file mode 100644 index 0000000..8f245ec --- /dev/null +++ b/net-im/gajim/gajim-9999.ebuild @@ -0,0 +1,109 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="2" + +inherit eutils mercurial python multilib + +PYTHON_DEPEND="2" +PYTHON_USE_WITH="sqlite xml" + +EHG_REPO_URI="http://hg.gajim.org/gajim" +#EHG_REVISION="default" +#EHG_BOOTSTRAP="./autogen.sh" + +DESCRIPTION="Jabber client written in PyGTK" +HOMEPAGE="http://www.gajim.org/" + +LICENSE="GPL-2" +SLOT="0" +IUSE="avahi crypt dbus gnome idle jingle libnotify networkmanager nls spell srv X xhtml" + +COMMON_DEPEND=" + x11-libs/gtk+:2 + >=dev-python/pygtk-2.16.0" + +DEPEND="${COMMON_DEPEND} + >=sys-devel/gettext-0.17-r1 + >=dev-util/intltool-0.40.1 + dev-util/pkgconfig" + +RDEPEND="${COMMON_DEPEND} + dev-python/pyopenssl + dev-python/sexy-python + dev-python/pyxdg + crypt? ( + app-crypt/gnupg + dev-python/pycrypto + ) + dbus? ( + dev-python/dbus-python + dev-libs/dbus-glib + libnotify? ( dev-python/notify-python ) + avahi? ( net-dns/avahi[dbus,gtk,python] ) + ) + gnome? ( + dev-python/libgnome-python + dev-python/gnome-keyring-python + dev-python/egg-python + ) + idle? ( x11-libs/libXScrnSaver ) + jingle? ( net-libs/farsight2[python] ) + networkmanager? ( + dev-python/dbus-python + || ( >=net-misc/networkmanager-0.7.1 net-misc/networkmanager[gnome] ) + ) + srv? ( + || ( + dev-python/libasyncns-python + net-dns/bind-tools ) + ) + spell? ( app-text/gtkspell ) + xhtml? ( dev-python/docutils )" + +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 + fi + python_pkg_setup + python_set_active_version 2 +} + +src_prepare() { + epatch \ + "${FILESDIR}"/window_class.patch + ./autogen.sh || die "autogen.sh failed" + echo '#!/bin/sh' > config/py-compile +} + +src_configure() { + econf \ + $(use_enable nls) \ + $(use_with X x) \ + --docdir="/usr/share/doc/${PF}" \ + --libdir="$(python_get_sitedir)" \ + --enable-site-packages +} + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed" + + rm "${D}/usr/share/doc/${PF}/"{README.html,COPYING} || die + dohtml README.html || die +} + +pkg_postinst() { + python_mod_optimize $(python_get_sitedir)/${PN} +} + +pkg_postrm() { + python_mod_cleanup $(python_get_sitedir)/${PN} +} diff --git a/profiles/package.mask b/profiles/package.mask index 7fad882..118e8e3 100644 --- a/profiles/package.mask +++ b/profiles/package.mask @@ -1,3 +1,3 @@ # Russell Harmon <russ@eatnumber1.com> (19 Jan 2010) # Broken with assertion errors. -=x11-plugins/pidgin-omegle-scm +=x11-plugins/pidgin-omegle-9999 diff --git a/x11-misc/dzen/Manifest b/x11-misc/dzen/Manifest new file mode 100644 index 0000000..1e9e449 --- /dev/null +++ b/x11-misc/dzen/Manifest @@ -0,0 +1 @@ +EBUILD dzen-9999.ebuild 1165 RMD160 769a0521c48018f92dbe14942b0aed30f0c4b113 SHA1 3a1c5a5b4542957fdf997fee7d02efac83bbbe80 SHA256 cb24a2ba848759e759a306b8a816c887f21d5ff9a70ad7768011e92e888a3e68 diff --git a/x11-misc/dzen/dzen-9999.ebuild b/x11-misc/dzen/dzen-9999.ebuild new file mode 100644 index 0000000..b128253 --- /dev/null +++ b/x11-misc/dzen/dzen-9999.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit subversion toolchain-funcs + +DESCRIPTION="a general purpose messaging, notification and menuing program for +X11." +HOMEPAGE="http://gotmor.googlepages.com/dzen" +SRC_URI="" +ESVN_REPO_URI="http://dzen.googlecode.com/svn/trunk/" + +LICENSE="MIT" +SLOT="2" +KEYWORDS="" +IUSE="minimal xinerama xpm" + +DEPEND="x11-libs/libX11 + xinerama? ( x11-libs/libXinerama ) + xpm? ( x11-libs/libXpm )" +RDEPEND="${DEPEND}" + +src_unpack() { + subversion_src_unpack + + cd "${S}" + sed -e "s/\/usr\/local/\/usr/g" -e "s/-Os/${CFLAGS}/g" \ + -e "s/CC =.*/CC = $(tc-getCC | sed -e 's/\//\\\//g')/g" \ + -e "s/LD =.*/LD = $(tc-getCC | sed -e 's/\//\\\//g')/g" \ + -i config.mk || die "sed failed" + + if use xinerama ; then + sed -e "/^LIBS/s/$/\ -lXinerama/" \ + -e "/^CFLAGS/s/$/\ -DDZEN_XINERAMA/" \ + -i config.mk || die "sed failed" + fi + if use xpm ; then + sed -e "/^LIBS/s/$/\ -lXpm/" \ + -e "/^CFLAGS/s/$/\ -DDZEN_XPM/" \ + -i config.mk || die "sed failed" + fi +} + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed" + dodoc README TODO +} diff --git a/x11-wm/wmname/Manifest b/x11-wm/wmname/Manifest new file mode 100644 index 0000000..afd15c7 --- /dev/null +++ b/x11-wm/wmname/Manifest @@ -0,0 +1,2 @@ +DIST wmname-0.1.tar.gz 2512 RMD160 88e52d49576ae472a45bd40c79ec04071160bbce SHA1 7bce60306ccc9c9a5fc60d9874e81a013efa8871 SHA256 559ad188b2913167dcbb37ecfbb7ed474a7ec4bbcb0129d8d5d08cb9208d02c5 +EBUILD wmname-0.1.ebuild 393 RMD160 2af46fa922aee76442166175d7bd3d5ee32a30c2 SHA1 058bcae783e9c6f07515ba56fadba73f370a00be SHA256 5527fd699c04854daeea716d47e1ec77db6b14be875281f96a0d4561c202b4c9 diff --git a/x11-wm/wmname/wmname-0.1.ebuild b/x11-wm/wmname/wmname-0.1.ebuild new file mode 100644 index 0000000..e46676b --- /dev/null +++ b/x11-wm/wmname/wmname-0.1.ebuild @@ -0,0 +1,20 @@ +EAPI="2" + +DESCRIPTION="wmname prints/sets the window manager name property of the root +window similar to how hostname(1) behaves." +HOMEPAGE="http://tools.suckless.org/wmname" +SRC_URI="http://dl.suckless.org/tools/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="x11-libs/libX11" +RDEPEND="${DEPEND}" + +src_install() { + dodoc README + exeinto /usr/bin + doexe "${PN}" +} |