pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/x11/xcb-proto import xcb-proto-1.4, from Jeremy C. Ree...
details: https://anonhg.NetBSD.org/pkgsrc/rev/a1609de43035
branches: trunk
changeset: 556900:a1609de43035
user: drochner <drochner%pkgsrc.org@localhost>
date: Mon Apr 06 10:22:12 2009 +0000
description:
import xcb-proto-1.4, from Jeremy C. Reed and Michael Stapelberg
per pkgsrc-wip
diffstat:
x11/xcb-proto/DESCR | 20 +++++++++++++++++
x11/xcb-proto/Makefile | 29 +++++++++++++++++++++++++
x11/xcb-proto/PLIST | 48 ++++++++++++++++++++++++++++++++++++++++++
x11/xcb-proto/buildlink3.mk | 13 +++++++++++
x11/xcb-proto/distinfo | 9 +++++++
x11/xcb-proto/patches/patch-aa | 13 +++++++++++
x11/xcb-proto/patches/patch-ab | 42 ++++++++++++++++++++++++++++++++++++
x11/xcb-proto/patches/patch-ac | 13 +++++++++++
x11/xcb-proto/patches/patch-ad | 13 +++++++++++
9 files changed, 200 insertions(+), 0 deletions(-)
diffs (236 lines):
diff -r 74fe3326418d -r a1609de43035 x11/xcb-proto/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/xcb-proto/DESCR Mon Apr 06 10:22:12 2009 +0000
@@ -0,0 +1,20 @@
+About xcb-proto
+===============
+
+The xcb-proto package provides the XML-XCB (X C Bindings) protocol
+descriptions that libxcb uses to generate the majority of its code and API.
+We provide them separately from libxcb to allow reuse by other projects,
+such as additional language bindings, protocol dissectors, or
+documentation generators.
+
+Separation of XCB's transport and protocol layers simplifies both
+writing extensions and client-side support for extensions.
+By contrast, with the xlib infrastructure, client-side support for
+new extensions requires significant duplication of effort. With XCB and
+the XML-XCB protocol descriptions, client-side support for a new
+extension requires only an XML description of the extension--and not a
+single line of code.
+
+Python libraries: xcb-proto also contains language-independent Python
+libraries that are used to parse an XML description and create objects
+used by Python code generators in individual language bindings.
diff -r 74fe3326418d -r a1609de43035 x11/xcb-proto/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/xcb-proto/Makefile Mon Apr 06 10:22:12 2009 +0000
@@ -0,0 +1,29 @@
+# $NetBSD: Makefile,v 1.1.1.1 2009/04/06 10:22:12 drochner Exp $
+#
+
+DISTNAME= xcb-proto-1.4
+CATEGORIES= x11
+MASTER_SITES= http://xcb.freedesktop.org/dist/
+EXTRACT_SUFX= .tar.bz2
+
+MAINTAINER= reed%reedmedia.net@localhost
+HOMEPAGE= http://xcb.freedesktop.org/
+COMMENT= XCB protocol descriptions (in XML)
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+GNU_CONFIGURE= yes
+USE_TOOLS+= pkg-config
+USE_LANGUAGES= # none
+
+PKGCONFIG_OVERRIDE+= xcb-proto.pc.in
+
+CONFIGURE_ENV+= XMLLLINT=${BUILDLINK_PREFIX.libxml}/bin/xmllint
+PYTHON_FOR_BUILD_ONLY= yes
+PY_PATCHPLIST= yes
+
+.include "../../lang/python/application.mk"
+.include "../../lang/python/extension.mk"
+BUILDLINK_DEPMETHOD.libxml2?= build
+.include "../../textproc/libxml2/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 74fe3326418d -r a1609de43035 x11/xcb-proto/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/xcb-proto/PLIST Mon Apr 06 10:22:12 2009 +0000
@@ -0,0 +1,48 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2009/04/06 10:22:12 drochner Exp $
+lib/pkgconfig/xcb-proto.pc
+${PYSITELIB}/xcbgen/__init__.py
+${PYSITELIB}/xcbgen/__init__.pyc
+${PYSITELIB}/xcbgen/__init__.pyo
+${PYSITELIB}/xcbgen/error.py
+${PYSITELIB}/xcbgen/error.pyc
+${PYSITELIB}/xcbgen/error.pyo
+${PYSITELIB}/xcbgen/expr.py
+${PYSITELIB}/xcbgen/expr.pyc
+${PYSITELIB}/xcbgen/expr.pyo
+${PYSITELIB}/xcbgen/matcher.py
+${PYSITELIB}/xcbgen/matcher.pyc
+${PYSITELIB}/xcbgen/matcher.pyo
+${PYSITELIB}/xcbgen/state.py
+${PYSITELIB}/xcbgen/state.pyc
+${PYSITELIB}/xcbgen/state.pyo
+${PYSITELIB}/xcbgen/xtypes.py
+${PYSITELIB}/xcbgen/xtypes.pyc
+${PYSITELIB}/xcbgen/xtypes.pyo
+share/xcb/bigreq.xml
+share/xcb/composite.xml
+share/xcb/damage.xml
+share/xcb/dpms.xml
+share/xcb/glx.xml
+share/xcb/randr.xml
+share/xcb/record.xml
+share/xcb/render.xml
+share/xcb/res.xml
+share/xcb/screensaver.xml
+share/xcb/shape.xml
+share/xcb/shm.xml
+share/xcb/sync.xml
+share/xcb/xc_misc.xml
+share/xcb/xcb.xsd
+share/xcb/xevie.xml
+share/xcb/xf86dri.xml
+share/xcb/xfixes.xml
+share/xcb/xinerama.xml
+share/xcb/xinput.xml
+share/xcb/xprint.xml
+share/xcb/xproto.xml
+share/xcb/xselinux.xml
+share/xcb/xtest.xml
+share/xcb/xv.xml
+share/xcb/xvmc.xml
+@dirrm share/xcb
+@dirrm ${PYSITELIB}/xcbgen
diff -r 74fe3326418d -r a1609de43035 x11/xcb-proto/buildlink3.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/xcb-proto/buildlink3.mk Mon Apr 06 10:22:12 2009 +0000
@@ -0,0 +1,13 @@
+# $NetBSD: buildlink3.mk,v 1.1.1.1 2009/04/06 10:22:12 drochner Exp $
+
+BUILDLINK_TREE+= xcb-proto
+
+.if !defined(XCB_PROTO_BUILDLINK3_MK)
+XCB_PROTO_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.xcb-proto?= xcb-proto>=1.4
+BUILDLINK_PKGSRCDIR.xcb-proto?= ../../x11/xcb-proto
+BUILDLINK_DEPMETHOD.xcb-proto?= build
+.endif # XCB_PROTO_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -xcb-proto
diff -r 74fe3326418d -r a1609de43035 x11/xcb-proto/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/xcb-proto/distinfo Mon Apr 06 10:22:12 2009 +0000
@@ -0,0 +1,9 @@
+$NetBSD: distinfo,v 1.1.1.1 2009/04/06 10:22:12 drochner Exp $
+
+SHA1 (xcb-proto-1.4.tar.bz2) = ab9bb7c875558a3324673bb749e0502046f31083
+RMD160 (xcb-proto-1.4.tar.bz2) = a344ca302a1cbefd98dcd289abf8704667a4b536
+Size (xcb-proto-1.4.tar.bz2) = 87093 bytes
+SHA1 (patch-aa) = a04e2b8bb3fa6630d47d3febd7d676717ac15907
+SHA1 (patch-ab) = c61982389c86d2a61136aba67ea2a0647cc68da5
+SHA1 (patch-ac) = 39539e6d45e4994df0c291f6c05382c5c00a6aee
+SHA1 (patch-ad) = bb86c889e0520aa98761b01d71d438ca4e71fc6b
diff -r 74fe3326418d -r a1609de43035 x11/xcb-proto/patches/patch-aa
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/xcb-proto/patches/patch-aa Mon Apr 06 10:22:12 2009 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-aa,v 1.1.1.1 2009/04/06 10:22:12 drochner Exp $
+
+--- configure.orig 2009-01-07 13:20:32.000000000 +0100
++++ configure
+@@ -2207,7 +2207,7 @@ echo $ECHO_N "checking whether $PYTHON v
+ prog="import sys, string
+ # split strings by '.' and convert to numeric. Append some zeros
+ # because we need at least 4 digits for the hex conversion.
+-minver = map(int, string.split('2.5', '.')) + [0, 0, 0]
++minver = map(int, string.split('2.4', '.')) + [0, 0, 0]
+ minverhex = 0
+ for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
+ sys.exit(sys.hexversion < minverhex)"
diff -r 74fe3326418d -r a1609de43035 x11/xcb-proto/patches/patch-ab
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/xcb-proto/patches/patch-ab Mon Apr 06 10:22:12 2009 +0000
@@ -0,0 +1,42 @@
+$NetBSD: patch-ab,v 1.1.1.1 2009/04/06 10:22:12 drochner Exp $
+
+--- xcbgen/xtypes.py.orig 2008-09-05 00:49:13.000000000 +0200
++++ xcbgen/xtypes.py
+@@ -160,12 +160,22 @@ class ListType(Type):
+
+ if elt.tag == 'list':
+ elts = list(elt)
+- self.expr = Expression(elts[0] if len(elts) else elt, self)
++ if len(elts):
++ self.expr = Expression(elts[0], self)
++ else:
++ self.expr = Expression(elt, self)
+ elif elt.tag == 'valueparam':
+ self.expr = Expression(elt, self)
+
+- self.size = member.size if member.fixed_size() else None
+- self.nmemb = self.expr.nmemb if self.expr.fixed_size() else None
++ if member.fixed_size():
++ self.size = member.size
++ else:
++ self.size = None
++
++ if self.expr.fixed_size():
++ self.nmemb = self.expr.nmemb
++ else:
++ self.nmemb = None
+
+ def make_member_of(self, module, complex_type, field_type, field_name, visible, wire, auto):
+ if not self.fixed_size():
+@@ -256,7 +266,10 @@ class PadType(SizedPadType):
+ Derived class which represents a padding field of given type.
+ '''
+ def __init__(self, elt):
+- self.nmemb = "1" if (elt == None) else elt.get('bytes')
++ if (elt == None):
++ self.nmemb = "1"
++ else:
++ self.nmemb = elt.get('bytes')
+ SizedPadType.__init__(self, self.nmemb)
+
+ class ComplexType(Type):
diff -r 74fe3326418d -r a1609de43035 x11/xcb-proto/patches/patch-ac
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/xcb-proto/patches/patch-ac Mon Apr 06 10:22:12 2009 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-ac,v 1.1.1.1 2009/04/06 10:22:12 drochner Exp $
+
+--- xcbgen/state.py.orig 2009-04-01 16:05:28.000000000 +0200
++++ xcbgen/state.py
+@@ -2,7 +2,7 @@
+ This module contains the namespace class and the singleton module class.
+ '''
+ from os.path import dirname, basename
+-from xml.etree.cElementTree import parse
++from xml.etree.ElementTree import parse
+
+ import matcher
+ from error import *
diff -r 74fe3326418d -r a1609de43035 x11/xcb-proto/patches/patch-ad
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/xcb-proto/patches/patch-ad Mon Apr 06 10:22:12 2009 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-ad,v 1.1.1.1 2009/04/06 10:22:12 drochner Exp $
+
+--- xcbgen/matcher.py.orig 2009-04-01 16:06:02.000000000 +0200
++++ xcbgen/matcher.py
+@@ -7,7 +7,7 @@ we do not create a new type object, we j
+ '''
+
+ from os.path import join
+-from xml.etree.cElementTree import parse
++from xml.etree.ElementTree import parse
+
+ import state
+ from xtypes import *
Home |
Main Index |
Thread Index |
Old Index