head 1.18; access; symbols pkgsrc-2024Q1:1.18.0.18 pkgsrc-2024Q1-base:1.18 pkgsrc-2023Q4:1.18.0.16 pkgsrc-2023Q4-base:1.18 pkgsrc-2023Q3:1.18.0.14 pkgsrc-2023Q3-base:1.18 pkgsrc-2023Q2:1.18.0.12 pkgsrc-2023Q2-base:1.18 pkgsrc-2023Q1:1.18.0.10 pkgsrc-2023Q1-base:1.18 pkgsrc-2022Q4:1.18.0.8 pkgsrc-2022Q4-base:1.18 pkgsrc-2022Q3:1.18.0.6 pkgsrc-2022Q3-base:1.18 pkgsrc-2022Q2:1.18.0.4 pkgsrc-2022Q2-base:1.18 pkgsrc-2022Q1:1.18.0.2 pkgsrc-2022Q1-base:1.18 pkgsrc-2021Q4:1.16.0.10 pkgsrc-2021Q4-base:1.16 pkgsrc-2021Q3:1.16.0.8 pkgsrc-2021Q3-base:1.16 pkgsrc-2021Q2:1.16.0.6 pkgsrc-2021Q2-base:1.16 pkgsrc-2021Q1:1.16.0.4 pkgsrc-2021Q1-base:1.16 pkgsrc-2020Q4:1.16.0.2 pkgsrc-2020Q4-base:1.16 pkgsrc-2020Q3:1.14.0.8 pkgsrc-2020Q3-base:1.14 pkgsrc-2020Q2:1.14.0.6 pkgsrc-2020Q2-base:1.14 pkgsrc-2020Q1:1.14.0.2 pkgsrc-2020Q1-base:1.14 pkgsrc-2019Q4:1.14.0.4 pkgsrc-2019Q4-base:1.14 pkgsrc-2019Q3:1.12.0.2 pkgsrc-2019Q3-base:1.12 pkgsrc-2019Q2:1.11.0.46 pkgsrc-2019Q2-base:1.11 pkgsrc-2019Q1:1.11.0.44 pkgsrc-2019Q1-base:1.11 pkgsrc-2018Q4:1.11.0.42 pkgsrc-2018Q4-base:1.11 pkgsrc-2018Q3:1.11.0.40 pkgsrc-2018Q3-base:1.11 pkgsrc-2018Q2:1.11.0.38 pkgsrc-2018Q2-base:1.11 pkgsrc-2018Q1:1.11.0.36 pkgsrc-2018Q1-base:1.11 pkgsrc-2017Q4:1.11.0.34 pkgsrc-2017Q4-base:1.11 pkgsrc-2017Q3:1.11.0.32 pkgsrc-2017Q3-base:1.11 pkgsrc-2017Q2:1.11.0.28 pkgsrc-2017Q2-base:1.11 pkgsrc-2017Q1:1.11.0.26 pkgsrc-2017Q1-base:1.11 pkgsrc-2016Q4:1.11.0.24 pkgsrc-2016Q4-base:1.11 pkgsrc-2016Q3:1.11.0.22 pkgsrc-2016Q3-base:1.11 pkgsrc-2016Q2:1.11.0.20 pkgsrc-2016Q2-base:1.11 pkgsrc-2016Q1:1.11.0.18 pkgsrc-2016Q1-base:1.11 pkgsrc-2015Q4:1.11.0.16 pkgsrc-2015Q4-base:1.11 pkgsrc-2015Q3:1.11.0.14 pkgsrc-2015Q3-base:1.11 pkgsrc-2015Q2:1.11.0.12 pkgsrc-2015Q2-base:1.11 pkgsrc-2015Q1:1.11.0.10 pkgsrc-2015Q1-base:1.11 pkgsrc-2014Q4:1.11.0.8 pkgsrc-2014Q4-base:1.11 pkgsrc-2014Q3:1.11.0.6 pkgsrc-2014Q3-base:1.11 pkgsrc-2014Q2:1.11.0.4 pkgsrc-2014Q2-base:1.11 pkgsrc-2014Q1:1.11.0.2 pkgsrc-2014Q1-base:1.11 pkgsrc-2013Q4:1.10.0.10 pkgsrc-2013Q4-base:1.10 pkgsrc-2013Q3:1.10.0.8 pkgsrc-2013Q3-base:1.10 pkgsrc-2013Q2:1.10.0.6 pkgsrc-2013Q2-base:1.10 pkgsrc-2013Q1:1.10.0.4 pkgsrc-2013Q1-base:1.10 pkgsrc-2012Q4:1.10.0.2 pkgsrc-2012Q4-base:1.10 pkgsrc-2012Q3:1.8.0.4 pkgsrc-2012Q3-base:1.8 pkgsrc-2012Q2:1.8.0.2 pkgsrc-2012Q2-base:1.8 pkgsrc-2012Q1:1.7.0.4 pkgsrc-2012Q1-base:1.7 pkgsrc-2011Q4:1.7.0.2 pkgsrc-2011Q4-base:1.7 pkgsrc-2011Q3:1.6.0.2 pkgsrc-2011Q3-base:1.6 pkgsrc-2011Q2:1.5.0.8 pkgsrc-2011Q2-base:1.5 pkgsrc-2011Q1:1.5.0.6 pkgsrc-2011Q1-base:1.5 pkgsrc-2010Q4:1.5.0.4 pkgsrc-2010Q4-base:1.5 pkgsrc-2010Q3:1.5.0.2 pkgsrc-2010Q3-base:1.5 pkgsrc-2010Q2:1.4.0.22 pkgsrc-2010Q2-base:1.4 pkgsrc-2010Q1:1.4.0.20 pkgsrc-2010Q1-base:1.4 pkgsrc-2009Q4:1.4.0.18 pkgsrc-2009Q4-base:1.4 pkgsrc-2009Q3:1.4.0.16 pkgsrc-2009Q3-base:1.4 pkgsrc-2009Q2:1.4.0.14 pkgsrc-2009Q2-base:1.4 pkgsrc-2009Q1:1.4.0.12 pkgsrc-2009Q1-base:1.4 pkgsrc-2008Q4:1.4.0.10 pkgsrc-2008Q4-base:1.4 pkgsrc-2008Q3:1.4.0.8 pkgsrc-2008Q3-base:1.4 cube-native-xorg:1.4.0.6 cube-native-xorg-base:1.4 pkgsrc-2008Q2:1.4.0.4 pkgsrc-2008Q2-base:1.4 cwrapper:1.4.0.2 pkgsrc-2008Q1:1.3.0.18 pkgsrc-2008Q1-base:1.3 pkgsrc-2007Q4:1.3.0.16 pkgsrc-2007Q4-base:1.3 pkgsrc-2007Q3:1.3.0.14 pkgsrc-2007Q3-base:1.3 pkgsrc-2007Q2:1.3.0.12 pkgsrc-2007Q2-base:1.3 pkgsrc-2007Q1:1.3.0.10 pkgsrc-2007Q1-base:1.3 pkgsrc-2006Q4:1.3.0.8 pkgsrc-2006Q4-base:1.3 pkgsrc-2006Q3:1.3.0.6 pkgsrc-2006Q3-base:1.3 pkgsrc-2006Q2:1.3.0.4 pkgsrc-2006Q2-base:1.3 pkgsrc-2006Q1:1.3.0.2 pkgsrc-2006Q1-base:1.3 pkgsrc-2005Q4:1.2.0.6 pkgsrc-2005Q4-base:1.2 pkgsrc-2005Q3:1.2.0.4 pkgsrc-2005Q3-base:1.2 pkgsrc-2005Q2:1.2.0.2 pkgsrc-2005Q2-base:1.2 pkgsrc-2005Q1:1.1.1.1.0.6 pkgsrc-2005Q1-base:1.1.1.1 pkgsrc-2004Q4:1.1.1.1.0.4 pkgsrc-2004Q4-base:1.1.1.1 pkgsrc-2004Q3:1.1.1.1.0.2 pkgsrc-2004Q3-base:1.1.1.1 pkgsrc-base:1.1.1.1 TNF:1.1.1; locks; strict; comment @# @; 1.18 date 2022.01.13.19.31.25; author wiz; state Exp; branches; next 1.17; commitid o03xQdIEki5GAvoD; 1.17 date 2022.01.04.20.55.40; author wiz; state Exp; branches; next 1.16; commitid CYyhdK9qtoffkmnD; 1.16 date 2020.12.19.16.56.34; author prlw1; state Exp; branches; next 1.15; commitid 3yRKkIRFdVqKgnAC; 1.15 date 2020.10.01.12.01.50; author prlw1; state Exp; branches; next 1.14; commitid 7sU8zdrRQC90bcqC; 1.14 date 2019.11.03.09.14.14; author rillig; state Exp; branches; next 1.13; commitid nN7SqjIWSmrcXnJB; 1.13 date 2019.10.02.16.13.48; author prlw1; state Exp; branches; next 1.12; commitid iDYPBQ3N1hD0jjFB; 1.12 date 2019.08.05.12.26.15; author prlw1; state Exp; branches; next 1.11; commitid 0NxSmzNciKgETPxB; 1.11 date 2014.01.25.10.30.31; author wiz; state Exp; branches; next 1.10; commitid VOWgk3vYhVXj8umx; 1.10 date 2012.10.29.05.06.44; author asau; state Exp; branches; next 1.9; 1.9 date 2012.10.03.22.14.03; author wiz; state Exp; branches; next 1.8; 1.8 date 2012.04.08.19.09.18; author wiz; state Exp; branches; next 1.7; 1.7 date 2011.12.03.00.02.17; author joerg; state Exp; branches; next 1.6; 1.6 date 2011.08.22.12.18.18; author wiz; state Exp; branches; next 1.5; 1.5 date 2010.08.07.05.06.33; author obache; state Exp; branches; next 1.4; 1.4 date 2008.06.12.02.14.57; author joerg; state Exp; branches; next 1.3; 1.3 date 2006.02.05.23.11.41; author joerg; state Exp; branches; next 1.2; 1.2 date 2005.04.11.21.48.12; author tv; state Exp; branches; next 1.1; 1.1 date 2004.08.17.15.30.43; author minskim; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2004.08.17.15.30.43; author minskim; state Exp; branches; next ; desc @@ 1.18 log @*: setuptools_scm: switch to versioned_dependencies @ text @# $NetBSD: Makefile,v 1.17 2022/01/04 20:55:40 wiz Exp $ DISTNAME= python-xlib-0.29 PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/python-x/X/} PKGREVISION= 1 CATEGORIES= x11 MASTER_SITES= ${MASTER_SITE_GITHUB:=python-xlib/} GITHUB_PROJECT= python-xlib GITHUB_RELEASE= ${PKGVERSION_NOREV} EXTRACT_SUFX= .tar.bz2 MAINTAINER= prlw1@@cam.ac.uk HOMEPAGE= https://github.com/python-xlib/python-xlib/ COMMENT= XLib in pure Python LICENSE= gnu-lgpl-v2.1 USE_LANGUAGES= # none DEPENDS+= ${PYPKGPREFIX}-six-[0-9]*:../../lang/py-six PYTHON_VERSIONED_DEPENDENCIES= setuptools_scm .include "../../lang/python/egg.mk" .include "../../lang/python/versioned_dependencies.mk" .include "../../mk/bsd.pkg.mk" @ 1.17 log @*: bump PKGREVISION for egg.mk users They now have a tool dependency on py-setuptools instead of a DEPENDS @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.16 2020/12/19 16:56:34 prlw1 Exp $ a18 1 DEPENDS+= ${PYPKGPREFIX}-setuptools_scm-[0-9]*:../../devel/py-setuptools_scm d21 2 d24 1 @ 1.16 log @Update py-Xlib to 0.29 Extensions -------------------- - Drawable & XInput: Avoid using array.array.tostring() which wiil be removed in Python 3.9 (thanks @@t-wissmann). @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.15 2020/10/01 12:01:50 prlw1 Exp $ d5 1 @ 1.15 log @Update py-Xlib to 0.28 Version 0.28 ============ Extensions ---------- - DPMS: Display Power Management Signaling (by @@thiagokokada) --- Version 0.27 ============ Bug Fixes --------- - fix TypeError in socket.error exception handling for Python 3.x (by @@t-wissmann) Extensions ---------- - NV-CONTROL: set offset for all perf levels (by @@Sporif) --- Version 0.26 ============ Bug Fixes --------- - support legacy X servers like RealVNC's one (by @@Gerardwx) Extensions ---------- - enrich XFixes extension with XFixesSelectionNotify events (by @@acrisci) - add example xfixes-selection-notify.py (by @@acrisci) - fix two issues in NV-CONTROL extension (by @@leinardi) - add method get_clock_info into NV-CONTROL extension (by @@leinardi) - add default client version into Composite extension (by @@jakogut) - add Damage extension with the example (by @@mgarg1 and @@jakogut) @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.14 2019/11/03 09:14:14 rillig Exp $ d3 1 a3 1 DISTNAME= python-xlib-0.28 @ 1.14 log @x11: align variable assignments pkglint -Wall -F --only aligned --only indent -r No manual corrections. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.13 2019/10/02 16:13:48 prlw1 Exp $ d3 1 a3 1 DISTNAME= python-xlib-0.25 a4 1 PKGREVISION= 1 @ 1.13 log @Fix build @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.12 2019/08/05 12:26:15 prlw1 Exp $ d19 1 a19 1 DEPENDS+= ${PYPKGPREFIX}-setuptools_scm-[0-9]*:../../devel/py-setuptools_scm @ 1.12 log @Update python-xlib to 0.25 Take maintaintership Version 0.25 Bug Fixes * fix increasing memory usage on display instantiation NV-CONTROL extension * add first implementation by Roberto Leinardi (@@leinardi) __________________________________________________________________ Version 0.24 Bug Fixes * fix protocol handling: correctly support explicit Unix connections and fix support fox macOS * improve Python 3 support: fix events sub-code handling and possible crashes when unpacking text data * add support for error handlers to the Composite extension Misc * fix xfixes example * fix a bunch of typos in the code / documentation __________________________________________________________________ Version 0.23 Bug Fixes * fix strings decoding: use Latin-1 __________________________________________________________________ Version 0.22 Bug Fixes * fix Display.change_pointer_control implementation * fix Drawable.put_pil_image implementation __________________________________________________________________ Version 0.21 Bug Fixes * fix use under Windows Subsystem for Linux: when DISPLAY does not specify a protocol, and the implicit Unix socket connection fails, fallback to TCP (mimicking XCB's behavior). Misc * don't bundle a copy of texi2html to build the HTML documentation, but use the currently installed version instead. __________________________________________________________________ Version 0.20 Bug Fixes * fix unclosed file in Xauth implementation * fix support for Window.set_wm_transient_for * fix support for Drawable.put_image / Drawable.get_image * use ASCII for decoding strings in Python 3 (same as Python 2) * fix Python 3 warnings about array.tostring() (deprecated) Misc Improve response processing performance: reduce the number of socket.recv calls needed to receive a full response. __________________________________________________________________ Version 0.19 Bug Fixes * don't throw an exception if $XAUTHFILE / ~/.Xauthority is missing * fix authentication work-around for SSH forwarding under Python 3 * improve $DISPLAY handling: support optional protocol prefix, and correctly handle unix:0.0 as :0.0 __________________________________________________________________ Version 0.18 Bug Fixes * fix Python 3 buffer abstraction * fix interrupted select handling for Python 3.3/3.4 * fix Unix socket support when only an abstract address is available __________________________________________________________________ Version 0.17 Bug Fixes * fix Xauth handling when using Python 2 and DISPLAY contains a remote IP * fix String16 request field handling when using Python 3 * fix RECORD extension and example when using Python 3 * fix handling of properties: use byte strings for all X11 8-bits strings, as not all of them are text properties (the window getters/setters for wm_name, wm_icon_name, wm_class, and wm_client_machine still return/expect Unicode strings) API Changes Core: * new window getter/setter for text properties: get_full_text_property and change_text_property; with automatic conversion to/from Unicode when the property type encoding is supported (STRING and UTF8_STRING) Composite extension: * support for GetOverlayWindow request __________________________________________________________________ Version 0.16 Licensing The project is now licensed under the GNU Lesser General Public License v2.1 or later (see the LICENSE file for details). Compatibility Support for Python versions older than 2.7 has been dropped. Support for Python 3 (3.3, 3.4 and 3.5) has been added. Note that Python-Xlib now depends on the six package (>=1.10) for combined Python 2 / 3 support. API Changes With the change of license, and no way to contact the original author of the SHAPE extension, the code had to be rewritten from scratch. This resulted in a few minor API changes (see examples/shapewin.py). Partial support for the SECURITY. XInput, and XFIXES extensions has been added. Bug Fixes * fix RECORD extension * fixed OS X socket path * fix handling of generic events * fix handling of KeymapNotify events * several fixes for the RandR extension __________________________________________________________________ Version 0.15rc1 - 14 Nov 2009 Improved support for newer versions of Mac OS X, a couple of new extensions, and several bugfixes. Composite extension Support for the composite extension, used to implement a composition manager (added for plcm work in plwm). By itself this extension is not very useful, it is intended to be used together with the DAMAGE and XFIXES extensions. Typically you would also need RENDER or glX or some similar method of creating fancy graphics. XF86 special function keysyms Keysym definitions for special function keys found on modern keyboards, e.g. raise and lower volume, start specific applications, etc. Have a look in Xlib/keysymdef/xf86.py to see what there are and experiment with xev to see what your keyboard generates. These definitions aren't brought in by default, so you must do this after importing Xlib.XK: Xlib.XK.load_keysym_group('xf86') RANDR extension The RANDR extension complements XINERAMA as a way of getting data about the physical screens making up a virtual screen in X. An example of usage can be found in examples/xrandr.py. @ text @d1 1 a1 1 # $NetBSD$ d5 1 d19 2 a20 2 post-extract: ${CHMOD} 644 ${WRKSRC}/python_xlib.egg-info/* d22 1 a22 1 .include "../../lang/python/distutils.mk" @ 1.11 log @Mark packages as not ready for python-3.x where applicable; either because they themselves are not ready or because a dependency isn't. This is annotated by PYTHON_VERSIONS_INCOMPATIBLE= 33 # not yet ported as of x.y.z or PYTHON_VERSIONS_INCOMPATIBLE= 33 # py-foo, py-bar respectively, please use the same style for other packages, and check during updates. Use versioned_dependencies.mk where applicable. Use REPLACE_PYTHON instead of handcoded alternatives, where applicable. Reorder Makefile sections into standard order, where applicable. Remove PYTHON_VERSIONS_INCLUDE_3X lines since that will be default with the next commit. Whitespace cleanups and other nits corrected, where necessary. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.10 2012/10/29 05:06:44 asau Exp $ d3 2 a4 2 DISTNAME= python-xlib-0.14 PKGNAME= ${PYPKGPREFIX}-Xlib-0.14 d6 4 a9 1 MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=python-xlib/} d11 4 a14 4 MAINTAINER= ccatrian@@eml.cc HOMEPAGE= http://python-xlib.sourceforge.net/ COMMENT= Functional X client library for Python LICENSE= gnu-gpl-v2 d16 4 a19 1 EGG_NAME= python_xlib-0.12 @ 1.10 log @Drop superfluous PKG_DESTDIR_SUPPORT, "user-destdir" is default these days. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.9 2012/10/03 22:14:03 wiz Exp $ a12 2 PYTHON_VERSIONS_INCLUDE_3X= yes @ 1.9 log @Update for python25 removal. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.8 2012/04/08 19:09:18 wiz Exp $ a12 2 PKG_DESTDIR_SUPPORT= user-destdir @ 1.8 log @Remove python24 and all traces of it from pkgsrc. Remove devel/py-ctypes (only needed by and supporting python24). Remove PYTHON_VERSIONS_ACCEPTED and PYTHON_VERSIONS_INCOMPATIBLE lines that just mirror defaults now. Miscellaneous cleanup while editing all these files. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.7 2011/12/03 00:02:17 joerg Exp $ a16 2 PYTHON_VERSIONS_INCOMPATIBLE= 25 @ 1.7 log @Tag the 28 locations that result in a Python 3.1 package as supporting so. Remove it from the default list for the rest. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.6 2011/08/22 12:18:18 wiz Exp $ d17 1 a17 1 PYTHON_VERSIONS_INCOMPATIBLE= 24 25 @ 1.6 log @Fix for python-3.x. Mark as not-for 2.4 and 2.5. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.5 2010/08/07 05:06:33 obache Exp $ d15 2 @ 1.5 log @Update py-Xlib to 0.14. * Version 0.14 1 Oct 2007 (trialed as 0.14rc1 on 10 Jun 2007) A couple of new extensions, a Python 2.5 fix and a couple of aliases (Display.get_atom() now uses the internal cache and added Window.raise_window()). Tabs converted to spaces (SF id: 1559082). ** RECORD extension (SF id: 1538663) Alex Badea contributed a RECORD extension module, allowing Python Xlib programs to capture mouse and keyboard events (or all other core or extension events) easily. A demo is in the examples directory. See http://refspecs.freestandards.org/X11/recordlib.pdf for more information. ** XINERAMA extension Mike Meyer contributed a Xinerama extension module, allowing Python Xlib programs to interrogate the X server about positions and sizes of multiple screens. Specifications are a bit tricky to find - http://sourceforge.net/projects/xinerama/ has some older specs and the source code of the xorg project (libs & server code) has "definitive" information. ** Python 2.5 fix (SF id: 1623900) Bugfix to correct handling of XAuthority file parsing under Python 2.5 causing failed authentication. * Version 0.13 6 Aug 2006 (trialed as 0.13pre1 on 22 Jul 2006) A small release to incorporate a number of minor corrections and bug fixes, including small changes to keysym handling, .Xauthority parsing, several fixes to sending/receiving/flushing data, addition of WithdrawnState to WMHints. petli completed documentation for Display objects. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.4 2008/06/12 02:14:57 joerg Exp $ d15 2 @ 1.4 log @Add DESTDIR support. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.3 2006/02/05 23:11:41 joerg Exp $ d3 2 a4 3 DISTNAME= python-xlib-0.12 PKGNAME= ${PYPKGPREFIX}-Xlib-0.12 PKGREVISION= 1 d11 1 d15 1 a15 1 PYDISTUTILSPKG= yes d17 1 a17 1 .include "../../lang/python/extension.mk" @ 1.3 log @Recursive revision bump / recommended bump for gettext ABI change. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.2 2005/04/11 21:48:12 tv Exp $ d13 1 @ 1.2 log @Remove USE_BUILDLINK3 and NO_BUILDLINK; these are no longer used. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.1.1.1 2004/08/17 15:30:43 minskim Exp $ d5 1 @ 1.1 log @Initial revision @ text @d1 1 a1 1 # $NetBSD$ a11 1 USE_BUILDLINK3= yes @ 1.1.1.1 log @Import py-Xlib from pkgsrc-wip. Packaged by César Catrián C. and slightly modified by me. The Python X Library is intended to be a fully functional X client library for Python programs. It is written entirely in Python, in contrast to earlier X libraries for Python (the ancient X extension and the newer plxlib) which were interfaces to the C Xlib. @ text @@