1
0
forked from ports/contrib

python-xlib: NEW port - Took over maintainership from opt

This commit is contained in:
James Mills 2007-03-25 00:51:31 +10:00
parent 665f383fbd
commit fe7961255a
5 changed files with 155 additions and 0 deletions

111
python-xlib/.footprint Normal file
View File

@ -0,0 +1,111 @@
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/lib/
drwxr-xr-x root/root usr/lib/python2.5/
drwxr-xr-x root/root usr/lib/python2.5/site-packages/
drwxr-xr-x root/root usr/lib/python2.5/site-packages/Xlib/
-rw-r--r-- root/root usr/lib/python2.5/site-packages/Xlib/X.py
-rw-r--r-- root/root usr/lib/python2.5/site-packages/Xlib/X.pyc
-rw-r--r-- root/root usr/lib/python2.5/site-packages/Xlib/XK.py
-rw-r--r-- root/root usr/lib/python2.5/site-packages/Xlib/XK.pyc
-rw-r--r-- root/root usr/lib/python2.5/site-packages/Xlib/Xatom.py
-rw-r--r-- root/root usr/lib/python2.5/site-packages/Xlib/Xatom.pyc
-rw-r--r-- root/root usr/lib/python2.5/site-packages/Xlib/Xcursorfont.py
-rw-r--r-- root/root usr/lib/python2.5/site-packages/Xlib/Xcursorfont.pyc
-rw-r--r-- root/root usr/lib/python2.5/site-packages/Xlib/Xutil.py
-rw-r--r-- root/root usr/lib/python2.5/site-packages/Xlib/Xutil.pyc
-rw-r--r-- root/root usr/lib/python2.5/site-packages/Xlib/__init__.py
-rw-r--r-- root/root usr/lib/python2.5/site-packages/Xlib/__init__.pyc
-rw-r--r-- root/root usr/lib/python2.5/site-packages/Xlib/display.py
-rw-r--r-- root/root usr/lib/python2.5/site-packages/Xlib/display.pyc
-rw-r--r-- root/root usr/lib/python2.5/site-packages/Xlib/error.py
-rw-r--r-- root/root usr/lib/python2.5/site-packages/Xlib/error.pyc
drwxr-xr-x root/root usr/lib/python2.5/site-packages/Xlib/ext/
-rw-r--r-- root/root usr/lib/python2.5/site-packages/Xlib/ext/__init__.py
-rw-r--r-- root/root usr/lib/python2.5/site-packages/Xlib/ext/__init__.pyc
-rw-r--r-- root/root usr/lib/python2.5/site-packages/Xlib/ext/shape.py
-rw-r--r-- root/root usr/lib/python2.5/site-packages/Xlib/ext/shape.pyc
-rw-r--r-- root/root usr/lib/python2.5/site-packages/Xlib/ext/xtest.py
-rw-r--r-- root/root usr/lib/python2.5/site-packages/Xlib/ext/xtest.pyc
drwxr-xr-x root/root usr/lib/python2.5/site-packages/Xlib/keysymdef/
-rw-r--r-- root/root usr/lib/python2.5/site-packages/Xlib/keysymdef/__init__.py
-rw-r--r-- root/root usr/lib/python2.5/site-packages/Xlib/keysymdef/__init__.pyc
-rw-r--r-- root/root usr/lib/python2.5/site-packages/Xlib/keysymdef/apl.py
-rw-r--r-- root/root usr/lib/python2.5/site-packages/Xlib/keysymdef/apl.pyc
-rw-r--r-- root/root usr/lib/python2.5/site-packages/Xlib/keysymdef/arabic.py
-rw-r--r-- root/root usr/lib/python2.5/site-packages/Xlib/keysymdef/arabic.pyc
-rw-r--r-- root/root usr/lib/python2.5/site-packages/Xlib/keysymdef/cyrillic.py
-rw-r--r-- root/root usr/lib/python2.5/site-packages/Xlib/keysymdef/cyrillic.pyc
-rw-r--r-- root/root usr/lib/python2.5/site-packages/Xlib/keysymdef/greek.py
-rw-r--r-- root/root usr/lib/python2.5/site-packages/Xlib/keysymdef/greek.pyc
-rw-r--r-- root/root usr/lib/python2.5/site-packages/Xlib/keysymdef/hebrew.py
-rw-r--r-- root/root usr/lib/python2.5/site-packages/Xlib/keysymdef/hebrew.pyc
-rw-r--r-- root/root usr/lib/python2.5/site-packages/Xlib/keysymdef/katakana.py
-rw-r--r-- root/root usr/lib/python2.5/site-packages/Xlib/keysymdef/katakana.pyc
-rw-r--r-- root/root usr/lib/python2.5/site-packages/Xlib/keysymdef/korean.py
-rw-r--r-- root/root usr/lib/python2.5/site-packages/Xlib/keysymdef/korean.pyc
-rw-r--r-- root/root usr/lib/python2.5/site-packages/Xlib/keysymdef/latin1.py
-rw-r--r-- root/root usr/lib/python2.5/site-packages/Xlib/keysymdef/latin1.pyc
-rw-r--r-- root/root usr/lib/python2.5/site-packages/Xlib/keysymdef/latin2.py
-rw-r--r-- root/root usr/lib/python2.5/site-packages/Xlib/keysymdef/latin2.pyc
-rw-r--r-- root/root usr/lib/python2.5/site-packages/Xlib/keysymdef/latin3.py
-rw-r--r-- root/root usr/lib/python2.5/site-packages/Xlib/keysymdef/latin3.pyc
-rw-r--r-- root/root usr/lib/python2.5/site-packages/Xlib/keysymdef/latin4.py
-rw-r--r-- root/root usr/lib/python2.5/site-packages/Xlib/keysymdef/latin4.pyc
-rw-r--r-- root/root usr/lib/python2.5/site-packages/Xlib/keysymdef/miscellany.py
-rw-r--r-- root/root usr/lib/python2.5/site-packages/Xlib/keysymdef/miscellany.pyc
-rw-r--r-- root/root usr/lib/python2.5/site-packages/Xlib/keysymdef/publishing.py
-rw-r--r-- root/root usr/lib/python2.5/site-packages/Xlib/keysymdef/publishing.pyc
-rw-r--r-- root/root usr/lib/python2.5/site-packages/Xlib/keysymdef/special.py
-rw-r--r-- root/root usr/lib/python2.5/site-packages/Xlib/keysymdef/special.pyc
-rw-r--r-- root/root usr/lib/python2.5/site-packages/Xlib/keysymdef/technical.py
-rw-r--r-- root/root usr/lib/python2.5/site-packages/Xlib/keysymdef/technical.pyc
-rw-r--r-- root/root usr/lib/python2.5/site-packages/Xlib/keysymdef/thai.py
-rw-r--r-- root/root usr/lib/python2.5/site-packages/Xlib/keysymdef/thai.pyc
-rw-r--r-- root/root usr/lib/python2.5/site-packages/Xlib/keysymdef/xk3270.py
-rw-r--r-- root/root usr/lib/python2.5/site-packages/Xlib/keysymdef/xk3270.pyc
-rw-r--r-- root/root usr/lib/python2.5/site-packages/Xlib/keysymdef/xkb.py
-rw-r--r-- root/root usr/lib/python2.5/site-packages/Xlib/keysymdef/xkb.pyc
drwxr-xr-x root/root usr/lib/python2.5/site-packages/Xlib/protocol/
-rw-r--r-- root/root usr/lib/python2.5/site-packages/Xlib/protocol/__init__.py
-rw-r--r-- root/root usr/lib/python2.5/site-packages/Xlib/protocol/__init__.pyc
-rw-r--r-- root/root usr/lib/python2.5/site-packages/Xlib/protocol/display.py
-rw-r--r-- root/root usr/lib/python2.5/site-packages/Xlib/protocol/display.pyc
-rw-r--r-- root/root usr/lib/python2.5/site-packages/Xlib/protocol/event.py
-rw-r--r-- root/root usr/lib/python2.5/site-packages/Xlib/protocol/event.pyc
-rw-r--r-- root/root usr/lib/python2.5/site-packages/Xlib/protocol/request.py
-rw-r--r-- root/root usr/lib/python2.5/site-packages/Xlib/protocol/request.pyc
-rw-r--r-- root/root usr/lib/python2.5/site-packages/Xlib/protocol/rq.py
-rw-r--r-- root/root usr/lib/python2.5/site-packages/Xlib/protocol/rq.pyc
-rw-r--r-- root/root usr/lib/python2.5/site-packages/Xlib/protocol/structs.py
-rw-r--r-- root/root usr/lib/python2.5/site-packages/Xlib/protocol/structs.pyc
-rw-r--r-- root/root usr/lib/python2.5/site-packages/Xlib/rdb.py
-rw-r--r-- root/root usr/lib/python2.5/site-packages/Xlib/rdb.pyc
drwxr-xr-x root/root usr/lib/python2.5/site-packages/Xlib/support/
-rw-r--r-- root/root usr/lib/python2.5/site-packages/Xlib/support/__init__.py
-rw-r--r-- root/root usr/lib/python2.5/site-packages/Xlib/support/__init__.pyc
-rw-r--r-- root/root usr/lib/python2.5/site-packages/Xlib/support/connect.py
-rw-r--r-- root/root usr/lib/python2.5/site-packages/Xlib/support/connect.pyc
-rw-r--r-- root/root usr/lib/python2.5/site-packages/Xlib/support/lock.py
-rw-r--r-- root/root usr/lib/python2.5/site-packages/Xlib/support/lock.pyc
-rw-r--r-- root/root usr/lib/python2.5/site-packages/Xlib/support/unix_connect.py
-rw-r--r-- root/root usr/lib/python2.5/site-packages/Xlib/support/unix_connect.pyc
-rw-r--r-- root/root usr/lib/python2.5/site-packages/Xlib/support/vms_connect.py
-rw-r--r-- root/root usr/lib/python2.5/site-packages/Xlib/support/vms_connect.pyc
-rw-r--r-- root/root usr/lib/python2.5/site-packages/Xlib/threaded.py
-rw-r--r-- root/root usr/lib/python2.5/site-packages/Xlib/threaded.pyc
drwxr-xr-x root/root usr/lib/python2.5/site-packages/Xlib/xobject/
-rw-r--r-- root/root usr/lib/python2.5/site-packages/Xlib/xobject/__init__.py
-rw-r--r-- root/root usr/lib/python2.5/site-packages/Xlib/xobject/__init__.pyc
-rw-r--r-- root/root usr/lib/python2.5/site-packages/Xlib/xobject/colormap.py
-rw-r--r-- root/root usr/lib/python2.5/site-packages/Xlib/xobject/colormap.pyc
-rw-r--r-- root/root usr/lib/python2.5/site-packages/Xlib/xobject/cursor.py
-rw-r--r-- root/root usr/lib/python2.5/site-packages/Xlib/xobject/cursor.pyc
-rw-r--r-- root/root usr/lib/python2.5/site-packages/Xlib/xobject/drawable.py
-rw-r--r-- root/root usr/lib/python2.5/site-packages/Xlib/xobject/drawable.pyc
-rw-r--r-- root/root usr/lib/python2.5/site-packages/Xlib/xobject/fontable.py
-rw-r--r-- root/root usr/lib/python2.5/site-packages/Xlib/xobject/fontable.pyc
-rw-r--r-- root/root usr/lib/python2.5/site-packages/Xlib/xobject/icccm.py
-rw-r--r-- root/root usr/lib/python2.5/site-packages/Xlib/xobject/icccm.pyc
-rw-r--r-- root/root usr/lib/python2.5/site-packages/Xlib/xobject/resource.py
-rw-r--r-- root/root usr/lib/python2.5/site-packages/Xlib/xobject/resource.pyc
-rw-r--r-- root/root usr/lib/python2.5/site-packages/python_xlib-0.12-py2.5.egg-info

3
python-xlib/.md5sum Normal file
View File

@ -0,0 +1,3 @@
c192421d6c88c72e1b3736971956988e display.py-encoding.diff
4dfbefa2a135ba60ef31eb726a967ba3 python-xlib-0.12-attr-err.diff
83b294f34876c06b1a7697227249cb83 python-xlib-0.12.tar.gz

20
python-xlib/Pkgfile Normal file
View File

@ -0,0 +1,20 @@
# Description: Python interface to xlib
# URL: http://python-xlib.sourceforge.net
# Maintainer: James Mills, prologic at shortcircuit dot net dot au
# Packager: Johannes Winkelmann, jw at tks6 dot net
#
# Depends on: python, x11
name=python-xlib
version=0.12
release=3
source=(http://dl.sourceforge.net/sourceforge/python-xlib/$name-$version.tar.gz\
display.py-encoding.diff python-xlib-0.12-attr-err.diff)
build() {
cd $name-$version
patch Xlib/protocol/display.py $SRC/display.py-encoding.diff
patch -p1 < $SRC/python-xlib-0.12-attr-err.diff
python setup.py install --root=$PKG --prefix=/usr
chown -R root:root $PKG
}

View File

@ -0,0 +1,10 @@
# must. add. comment. to. fool. stupid. cvs
--- display.py.orig 2005-05-20 17:12:24.211812496 +0200
+++ display.py 2005-05-20 17:13:07.607215392 +0200
@@ -1,4 +1,5 @@
# $Id: display.py,v 1.17 2002/02/25 11:09:23 petli Exp $
+# -*- coding: utf-8 -*-
#
# Xlib.protocol.display -- core display communication
#

View File

@ -0,0 +1,11 @@
--- python-xlib-0.12/Xlib/protocol/display.py.orig 2005-06-24 16:55:40.762074352 +0200
+++ python-xlib-0.12/Xlib/protocol/display.py 2005-06-24 16:55:48.512896048 +0200
@@ -527,7 +527,7 @@
# We're the recieving thread, parse the data
if recieving:
try:
- recv = self.socket.recv(2048)
+ recv = self.socket.recv(4096)
except socket.error, err:
self.close_internal('server: %s' % err[1])
raise self.socket_error