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
commitf064b0a6700dca56e6b23af1b6342457c4a1e341 (patch)
tree5eb5e56bb74fb72fa720517179dd7559490820bf /dev-util/d-feet
parentFix for bugs #134202 and #156159 (diff)
downloadhistorical-f064b0a6700dca56e6b23af1b6342457c4a1e341.tar.gz
historical-f064b0a6700dca56e6b23af1b6342457c4a1e341.tar.bz2
historical-f064b0a6700dca56e6b23af1b6342457c4a1e341.zip
add d-feet to the tree
Package-Manager: portage-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/Manifest30
-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, 260 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..81b4dc4b2a86
--- /dev/null
+++ b/dev-util/d-feet/Manifest
@@ -0,0 +1,30 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+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 777 RMD160 8588e5bdac86c57a2d3fd8be7377cf5cffcd4c18 SHA1 84ad523d4ee0ac33cd59e260cda264223dea75cd SHA256 5ed957afcab0e34ba3627374db697f890426807eabbcd95d50103394bee8d761
+MD5 af487dd7223e1813d2528de90e539c66 d-feet-0.1.4.ebuild 777
+RMD160 8588e5bdac86c57a2d3fd8be7377cf5cffcd4c18 d-feet-0.1.4.ebuild 777
+SHA256 5ed957afcab0e34ba3627374db697f890426807eabbcd95d50103394bee8d761 d-feet-0.1.4.ebuild 777
+MISC ChangeLog 976 RMD160 8a01e34c18b71df0a679ba7e2c25101bd7921032 SHA1 615be864f606ea10968f6c89a4d28c9430fd04c6 SHA256 f96d7f2f89bd58199dfa025ca0d06e543447f0265adf8230e649540c19b8c688
+MD5 f32fd6098e1dce17d13bf143c09a7caf ChangeLog 976
+RMD160 8a01e34c18b71df0a679ba7e2c25101bd7921032 ChangeLog 976
+SHA256 f96d7f2f89bd58199dfa025ca0d06e543447f0265adf8230e649540c19b8c688 ChangeLog 976
+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
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.7 (GNU/Linux)
+
+iD8DBQFHYZjxoeSe8B0zEfwRAvXTAJ0eA6ZUWVdbmrA68/vaYNJuSy1V8QCfRrep
+zYGQ9ZcR2fFAh8miZmVKEjw=
+=ZbPF
+-----END PGP SIGNATURE-----
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>