summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoug Goldstein <cardoe@gentoo.org>2007-12-13 20:41:13 +0000
committerDoug Goldstein <cardoe@gentoo.org>2007-12-13 20:41:13 +0000
commit94df8990d32687223c091958568169b6983274f4 (patch)
treeb47351d98cdc13597c2771ecebb163c60994225c /dev-util/d-feet
parentFix for bugs #134202 and #156159 (diff)
downloadgentoo-2-94df8990d32687223c091958568169b6983274f4.tar.gz
gentoo-2-94df8990d32687223c091958568169b6983274f4.tar.bz2
gentoo-2-94df8990d32687223c091958568169b6983274f4.zip
add d-feet to the tree
(Portage version: 2.1.4_rc9)
Diffstat (limited to 'dev-util/d-feet')
-rw-r--r--dev-util/d-feet/ChangeLog25
-rw-r--r--dev-util/d-feet/Manifest20
-rw-r--r--dev-util/d-feet/d-feet-0.1.4.ebuild36
-rw-r--r--dev-util/d-feet/files/d-feet-0.1.4-show-properties.patch158
-rw-r--r--dev-util/d-feet/files/digest-d-feet-0.1.43
-rw-r--r--dev-util/d-feet/metadata.xml8
6 files changed, 250 insertions, 0 deletions
diff --git a/dev-util/d-feet/ChangeLog b/dev-util/d-feet/ChangeLog
new file mode 100644
index 000000000000..483b3a54c456
--- /dev/null
+++ b/dev-util/d-feet/ChangeLog
@@ -0,0 +1,25 @@
+# ChangeLog for dev-util/d-feet
+# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-util/d-feet/ChangeLog,v 1.1 2007/12/13 20:41:12 cardoe Exp $
+
+*d-feet-0.1.4 (13 Dec 2007)
+
+ 13 Dec 2007; Doug Klima <cardoe@gentoo.org>
+ +files/d-feet-0.1.4-show-properties.patch, +metadata.xml,
+ +d-feet-0.1.4.ebuild:
+ add d-feet to the tree
+
+ 10 Dec 2007; Doug Goldstein <doug@gentoo.org>
+ +files/d-feet-0.1.4-show-properties.patch, d-feet-0.1.4.ebuild:
+ Show properties patch from Marcel Holtmann <marcel@holtmann.org>. Previous
+ python cleanup patch was incorrect, fixed.
+
+ 10 Dec 2007; Doug Klima <cardoe@gentoo.org> d-feet-0.1.4.ebuild:
+ properly clean up python compiled files. Florian Steinel
+ <bugs@08.2006.gentoo.org.flonet.net>
+
+*d-feet-0.1.4.ebuild (08 Dec 2007)
+
+ 08 Dec 2007; Doug Klima <cardoe@gentoo.org> +d-feet-0.1.4.ebuild:
+ Adding d-feet ebuild submitted by Ed Catmur <ed@catmur.co.uk> in
+ bug #201639
diff --git a/dev-util/d-feet/Manifest b/dev-util/d-feet/Manifest
new file mode 100644
index 000000000000..39db095bf462
--- /dev/null
+++ b/dev-util/d-feet/Manifest
@@ -0,0 +1,20 @@
+AUX d-feet-0.1.4-show-properties.patch 6064 RMD160 8d6e6191030a2f7d7b76b3cb432d4064da4de761 SHA1 0501ebe8764ceee8df7569dc5b99cb98dabf2086 SHA256 490c3d58d6325f4ee1c7b2abb49eef6b03f823864da599c5e8739d6996413755
+MD5 fa036bb7fbb8ba1e1d9c302f45b38a93 files/d-feet-0.1.4-show-properties.patch 6064
+RMD160 8d6e6191030a2f7d7b76b3cb432d4064da4de761 files/d-feet-0.1.4-show-properties.patch 6064
+SHA256 490c3d58d6325f4ee1c7b2abb49eef6b03f823864da599c5e8739d6996413755 files/d-feet-0.1.4-show-properties.patch 6064
+DIST d-feet-0.1.4.tar.gz 26881 RMD160 c223b6652cb7b8d588e8d73c02c0c8a20ba3af65 SHA1 9f29b28062ced165eb5d264ea0db7fef9f80cbfb SHA256 69dc91e50996d698572d951d82d3608fba2768f904c86753d89a28e806691436
+EBUILD d-feet-0.1.4.ebuild 680 RMD160 23af9b7526b1afa350b58b97666d72d943434b47 SHA1 f55de5867dd26ddefddd0bb47fbfa381ef467f0f SHA256 42d399ea6aef744f6d005efe703410650e9a4b415d0d90a56c6cff7f9d53b5f0
+MD5 d70bf535d8a12f29776b72e5c487800b d-feet-0.1.4.ebuild 680
+RMD160 23af9b7526b1afa350b58b97666d72d943434b47 d-feet-0.1.4.ebuild 680
+SHA256 42d399ea6aef744f6d005efe703410650e9a4b415d0d90a56c6cff7f9d53b5f0 d-feet-0.1.4.ebuild 680
+MISC ChangeLog 889 RMD160 4dd56563a84a0cbbe1c98e265c8d107c39fd00b9 SHA1 8ec7be667fe7ca46010e68b279a35fee19d79fbe SHA256 9bd4481b7837655fe9cca51064ee33e5407d0bb776681cf3cbbdbc2b728cff81
+MD5 f4aa5145c279e80fb2d7d41477a86d3e ChangeLog 889
+RMD160 4dd56563a84a0cbbe1c98e265c8d107c39fd00b9 ChangeLog 889
+SHA256 9bd4481b7837655fe9cca51064ee33e5407d0bb776681cf3cbbdbc2b728cff81 ChangeLog 889
+MISC metadata.xml 223 RMD160 ca8850c4808c8972fe9995c456578ff23cb4b3fb SHA1 28aa498172fa4c6f437adb79913ae16f4deb0c0c SHA256 49dd14861ed993df9f3509f82bb7f77e524b4b6c0e137677bb9f873d9cd8541d
+MD5 885e3073744523eaf2450514a311758b metadata.xml 223
+RMD160 ca8850c4808c8972fe9995c456578ff23cb4b3fb metadata.xml 223
+SHA256 49dd14861ed993df9f3509f82bb7f77e524b4b6c0e137677bb9f873d9cd8541d metadata.xml 223
+MD5 d09142ff60bd6f7f04b6325421b869f0 files/digest-d-feet-0.1.4 235
+RMD160 2a2595887f0971ea15bb725469dd81bf568afcc3 files/digest-d-feet-0.1.4 235
+SHA256 b76ae7f3973cecc5455489ec634c35deb396ec520db82f14e18fa5a5a739254d files/digest-d-feet-0.1.4 235
diff --git a/dev-util/d-feet/d-feet-0.1.4.ebuild b/dev-util/d-feet/d-feet-0.1.4.ebuild
new file mode 100644
index 000000000000..d2a7dee4e907
--- /dev/null
+++ b/dev-util/d-feet/d-feet-0.1.4.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-util/d-feet/d-feet-0.1.4.ebuild,v 1.1 2007/12/13 20:41:12 cardoe Exp $
+
+inherit distutils gnome2-utils
+
+DESCRIPTION="D-Feet is a powerful D-Bus debugger"
+HOMEPAGE="http://hosted.fedoraproject.org/projects/d-feet/"
+SRC_URI="http://johnp.fedorapeople.org/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND=">=sys-apps/dbus-1.0
+ >=dev-python/dbus-python-0.82.3
+ dev-python/pygtk
+ >=dev-lang/python-2.5"
+
+pkg_setup() {
+ PYTHON_MODNAME="dfeet"
+}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ epatch "${FILESDIR}"/${P}-show-properties.patch
+}
+
+pkg_postinst()
+{
+ distutils_pkg_postinst
+ gnome2_icon_cache_update
+}
diff --git a/dev-util/d-feet/files/d-feet-0.1.4-show-properties.patch b/dev-util/d-feet/files/d-feet-0.1.4-show-properties.patch
new file mode 100644
index 000000000000..6c394c09a832
--- /dev/null
+++ b/dev-util/d-feet/files/d-feet-0.1.4-show-properties.patch
@@ -0,0 +1,158 @@
+diff --git a/dfeet/_introspect_parser.py b/dfeet/_introspect_parser.py
+index 370d9e7..656f672 100644
+--- a/dfeet/_introspect_parser.py
++++ b/dfeet/_introspect_parser.py
+@@ -26,6 +26,8 @@ class _Parser(object):
+ __slots__ = ('map',
+ 'in_iface',
+ 'in_method',
++ 'in_signal',
++ 'in_property',
+ 'in_sig',
+ 'out_sig',
+ 'node_level',
+@@ -35,6 +37,7 @@ class _Parser(object):
+ self.in_iface = ''
+ self.in_method = ''
+ self.in_signal = ''
++ self.in_property = ''
+ self.in_sig = ''
+ self.out_sig = ''
+ self.node_level = 0
+@@ -68,6 +71,10 @@ class _Parser(object):
+ elif (self.in_signal and name == 'arg'):
+ if attributes.get('direction', 'in') == 'in':
+ self.in_sig += attributes['type']
++ elif (not self.in_property and name == 'property'):
++ self.in_property = attributes['name']
++ self.in_sig = attributes['type']
++ self.out_sig = attributes['access']
+
+
+ def EndElementHandler(self, name):
+@@ -78,7 +85,7 @@ class _Parser(object):
+ self.in_iface = ''
+ elif (self.in_method and name == 'method'):
+ if not self.map['interfaces'].has_key(self.in_iface):
+- self.map['interfaces'][self.in_iface]={'methods':{}, 'signals':{}}
++ self.map['interfaces'][self.in_iface]={'methods':{}, 'signals':{}, 'properties':{}}
+
+ if self.map['interfaces'][self.in_iface]['methods'].has_key(self.in_method):
+ print "ERROR: Some clever service is trying to be cute and has the same method name in the same interface"
+@@ -90,16 +97,28 @@ class _Parser(object):
+ self.out_sig = ''
+ elif (self.in_signal and name == 'signal'):
+ if not self.map['interfaces'].has_key(self.in_iface):
+- self.map['interfaces'][self.in_iface]={'methods':{}, 'signals':{}}
++ self.map['interfaces'][self.in_iface]={'methods':{}, 'signals':{}, 'properties':{}}
+
+ if self.map['interfaces'][self.in_iface]['signals'].has_key(self.in_signal):
+ print "ERROR: Some clever service is trying to be cute and has the same signal name in the same interface"
+ else:
+ self.map['interfaces'][self.in_iface]['signals'][self.in_signal] = (self.in_sig, self.out_sig)
+
+-
+ self.in_signal = ''
+ self.in_sig = ''
++ self.out_sig = ''
++ elif (self.in_property and name == 'property'):
++ if not self.map['interfaces'].has_key(self.in_iface):
++ self.map['interfaces'][self.in_iface]={'methods':{}, 'signals':{}, 'properties':{}}
++
++ if self.map['interfaces'][self.in_iface]['properties'].has_key(self.in_property):
++ print "ERROR: Some clever service is trying to be cute and has the same property name in the same interface"
++ else:
++ self.map['interfaces'][self.in_iface]['properties'][self.in_property] = (self.in_sig, self.out_sig)
++
++ self.in_property = ''
++ self.in_sig = ''
++ self.out_sig = ''
+
+
+ def process_introspection_data(data):
+diff --git a/dfeet/introspect_data.py b/dfeet/introspect_data.py
+index 5540b9a..e4dac89 100644
+--- a/dfeet/introspect_data.py
++++ b/dfeet/introspect_data.py
+@@ -234,6 +234,25 @@ class Signal(Node):
+
+ return result
+
++class Property(Node):
++ # tree path = (0,x,0,y,2,z)
++ def __init__(self, model, parent, property, insig):
++ self.property = property
++ self.insig = insig
++
++ Node.__init__(self, model, parent)
++
++ def dbus_call(self, bus, name, *args):
++ # for testing out properties
++ # this is not implemented yet
++ pass
++
++ def __str__(self):
++ result = self.property + '('
++ result += dbus_utils.sig_to_string(self.insig) + ')'
++
++ return result
++
+ class MethodLabel(Node):
+ # tree path = (0,x,0,y,0)
+ def __init__(self, model, parent):
+@@ -274,6 +293,26 @@ class SignalLabel(Node):
+ def __str__(self):
+ return self._label
+
++class PropertyLabel(Node):
++ # tree path = (0,x,0,y,2)
++ def __init__(self, model, parent):
++ Node.__init__(self, model, parent)
++ self.set_expanded(True)
++ self._label = 'Properties'
++
++ def add(self, data):
++ property_list = data.keys()
++ property_list.sort()
++ for property_name in property_list:
++ property = Property(self.model, self, property_name, data[property_name])
++ self._add_child(property, None)
++
++ def to_markup_str(self):
++ return '<b>' + gobject.markup_escape_text(self._label) + '</b>'
++
++ def __str__(self):
++ return self._label
++
+ class Interface(Node):
+ # tree path = (0,x,0,y)
+ def __init__(self, model, parent, interface):
+@@ -283,6 +322,7 @@ class Interface(Node):
+ def add(self, data):
+ method_data = data['methods']
+ signal_data = data['signals']
++ property_data = data['properties']
+
+ methods = MethodLabel(self.model, self)
+ self._add_child(methods, method_data)
+@@ -290,6 +330,9 @@ class Interface(Node):
+ signals = SignalLabel(self.model, self)
+ self._add_child(signals, signal_data)
+
++ properties = PropertyLabel(self.model, self)
++ self._add_child(properties, property_data)
++
+ def __str__(self):
+ return self.iface
+
+@@ -367,8 +410,10 @@ class IntrospectData(gtk.GenericTreeModel):
+ (0,x,0,y) - interface
+ (0,x,0,y,0) - "Methods"
+ (0,x,0,y,1) - "Signals"
++ (0,x,0,y,2) - "Properties"
+ (0,x,0,y,0,z) - method signature
+ (0,x,0,y,1,z) - signal signature
++ (0,x,0,y,1,z) - property signature
+
+ """
+
diff --git a/dev-util/d-feet/files/digest-d-feet-0.1.4 b/dev-util/d-feet/files/digest-d-feet-0.1.4
new file mode 100644
index 000000000000..e30cb8a3d65e
--- /dev/null
+++ b/dev-util/d-feet/files/digest-d-feet-0.1.4
@@ -0,0 +1,3 @@
+MD5 f8e3a02bf72dee34f8fa8fb3838eb02f d-feet-0.1.4.tar.gz 26881
+RMD160 c223b6652cb7b8d588e8d73c02c0c8a20ba3af65 d-feet-0.1.4.tar.gz 26881
+SHA256 69dc91e50996d698572d951d82d3608fba2768f904c86753d89a28e806691436 d-feet-0.1.4.tar.gz 26881
diff --git a/dev-util/d-feet/metadata.xml b/dev-util/d-feet/metadata.xml
new file mode 100644
index 000000000000..c9a2849e775f
--- /dev/null
+++ b/dev-util/d-feet/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>gentopia</herd>
+<maintainer>
+ <email>cardoe@gentoo.org</email>
+</maintainer>
+</pkgmetadata>