[Midnightbsd-cvs] mports [18604] trunk/devel: add gtkparasite
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Fri Apr 10 07:43:30 EDT 2015
Revision: 18604
http://svnweb.midnightbsd.org/mports/?rev=18604
Author: laffer1
Date: 2015-04-10 07:43:30 -0400 (Fri, 10 Apr 2015)
Log Message:
-----------
add gtkparasite
Modified Paths:
--------------
trunk/devel/Makefile
Added Paths:
-----------
trunk/devel/gtkparasite/
trunk/devel/gtkparasite/Makefile
trunk/devel/gtkparasite/distinfo
trunk/devel/gtkparasite/files/
trunk/devel/gtkparasite/files/patch-USAGE
trunk/devel/gtkparasite/pkg-descr
Modified: trunk/devel/Makefile
===================================================================
--- trunk/devel/Makefile 2015-04-10 11:41:47 UTC (rev 18603)
+++ trunk/devel/Makefile 2015-04-10 11:43:30 UTC (rev 18604)
@@ -117,6 +117,7 @@
SUBDIR += gstreamer-plugins-gconf
SUBDIR += gstreamer-plugins-gio
SUBDIR += gstreamer-plugins-gnomevfs
+SUBDIR += gtkparasite
SUBDIR += gvfs
SUBDIR += highlighterkit
SUBDIR += hs-haddock
Added: trunk/devel/gtkparasite/Makefile
===================================================================
--- trunk/devel/gtkparasite/Makefile (rev 0)
+++ trunk/devel/gtkparasite/Makefile 2015-04-10 11:43:30 UTC (rev 18604)
@@ -0,0 +1,32 @@
+# $MidnightBSD$
+
+PORTNAME= gtkparasite
+PORTVERSION= 20090819
+CATEGORIES= devel
+MASTER_SITES= ${MASTER_SITE_FREEBSD_LOCAL}
+MASTER_SITE_SUBDIR= pav
+
+MAINTAINER= ports at MidnightBSD.org
+COMMENT= GTK+ UI debugging tool
+
+LICENSE= mit
+LICENSE_FILE= ${WRKSRC}/COPYING
+
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS= --disable-static
+INSTALL_TARGET= install-strip
+USES= libtool pkgconfig python
+USE_AUTOTOOLS= libtoolize aclocal autoconf autoheader automake
+AUTOMAKE_ARGS= -a -c -f
+USE_GNOME= gtk20 pygtk2
+WRKSRC= ${WRKDIR}/chipx86-gtkparasite-a3d862d4a91ea27222e4273a6797f3e47efe6e83
+PORTDOCS= USAGE
+PLIST_FILES= lib/gtk-2.0/modules/libgtkparasite.so
+
+OPTIONS_DEFINE= DOCS
+
+post-install:
+ ${MKDIR} ${DOCSDIR}
+ ${INSTALL_MAN} ${WRKSRC}/USAGE ${DOCSDIR}
+
+.include <bsd.port.mk>
Property changes on: trunk/devel/gtkparasite/Makefile
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/devel/gtkparasite/distinfo
===================================================================
--- trunk/devel/gtkparasite/distinfo (rev 0)
+++ trunk/devel/gtkparasite/distinfo 2015-04-10 11:43:30 UTC (rev 18604)
@@ -0,0 +1,2 @@
+SHA256 (gtkparasite-20090819.tar.gz) = 7517b25cae2f6e5a15e60c1bd8f1d87b496e912b0d0ee3a4afb7eb75957a7e11
+SIZE (gtkparasite-20090819.tar.gz) = 28486
Property changes on: trunk/devel/gtkparasite/distinfo
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/devel/gtkparasite/files/patch-USAGE
===================================================================
--- trunk/devel/gtkparasite/files/patch-USAGE (rev 0)
+++ trunk/devel/gtkparasite/files/patch-USAGE 2015-04-10 11:43:30 UTC (rev 18604)
@@ -0,0 +1,29 @@
+
+$FreeBSD: head/devel/gtkparasite/files/patch-USAGE 340725 2014-01-22 17:40:44Z mat $
+
+--- USAGE.orig
++++ USAGE
+@@ -0,0 +1,23 @@
++Parasite is pretty easy to use. Start off by launching with an application by doing the following:
++
++$ GTK_MODULES=gtkparasite appname
++
++The Parasite window will pop up immediately, followed by the application window.
++
++Click the "Inspect" button and then click anywhere in your application's UI to load the widget tree for that window and focus in on the selected widget. You should then be able to browse around the widget tree.
++
++The properties for the selected widget appear on the right-hand side of the Parasite window. Many properties can be modified (nearly anything other than pointer addresses) by clicking on the property value. You'll either be able to type in a new value, or select from a pop-up list.
++
++Toggle "Show Graphic Updates" to see debug rectangles any time part of your UI redraws. This can be used to help optimize drawing performance of a widget.
++
++The Python shell is located at the bottom of the screen. It works like a standard Python shell. You can import modules you need (such as "gtk") and write code to manipulate the widgets.
++
++A special "parasite" module is imported for you that provides a "gobj" function for converting a pointer address for a widget into something you can use in the Python shell. For example:
++
++>>> widget = parasite.gobj(0xDEADBEEF)
++
++
++You can get the pointer addresses from the "Pointer Address" column in the widget tree, or from right-clicking an item in the widget tree and choosing "Send Widget to Shell."
++
++You can then use any PyGTK functions on the widget.
++
Property changes on: trunk/devel/gtkparasite/files/patch-USAGE
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/devel/gtkparasite/pkg-descr
===================================================================
--- trunk/devel/gtkparasite/pkg-descr (rev 0)
+++ trunk/devel/gtkparasite/pkg-descr 2015-04-10 11:43:30 UTC (rev 18604)
@@ -0,0 +1,20 @@
+Developing and debugging UIs can be a pain. When something
+goes wrong, it's not always obvious why. You can waste hours
+writing logging statements only to find out that a widget is
+in the wrong container, or an attribute wasn't set correctly.
+
+Developing isn't much better either. Ever spend time writing
+temporary code just to test a new feature, code you know you're
+going to throw away in an hour, and yet you end up spending the
+next 20 minutes debugging your temporary code? Sucks, doesn't
+it?
+
+What your program really needs is a good Parasite infestation.
+
+Parasite is a debugging and development tool that runs inside
+your GTK+ application's process. It can inspect your application,
+giving you detailed information on your UI, such as the hierarchy,
+X window IDs, widget properties, and more. You can modify properties
+on the fly in order to experiment with the look of your UI.
+
+WWW: http://chipx86.github.com/gtkparasite/
Property changes on: trunk/devel/gtkparasite/pkg-descr
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
More information about the Midnightbsd-cvs
mailing list