From 9d0aa2e4ae70204b7adab248c718efec007ad43c Mon Sep 17 00:00:00 2001 From: Hunter Sezen Date: Thu, 15 Mar 2018 21:01:45 +0000 Subject: [PATCH] python/python-xlib: Updated for version 0.21 + new maintainer. Signed-off-by: David Spencer --- python/python-xlib/README | 21 +++++++++++---- python/python-xlib/python-xlib.SlackBuild | 30 ++++++++++++++-------- python/python-xlib/python-xlib.info | 14 +++++----- python/python-xlib/setup.patch.gz | Bin 0 -> 685 bytes python/python-xlib/slack-desc | 16 ++++++------ 5 files changed, 51 insertions(+), 30 deletions(-) create mode 100644 python/python-xlib/setup.patch.gz diff --git a/python/python-xlib/README b/python/python-xlib/README index 49962b13a9..0f8c15d1ee 100644 --- a/python/python-xlib/README +++ b/python/python-xlib/README @@ -1,6 +1,17 @@ -The Python X library is intended to be a fully functional X client for Python -programs. It is written entirely in Python, in ontrast to earlier X libraries -for Python. This is possible to do since X client programs communicate with -the X server via the X protocol. The communication takes over TCP/IP, Unix -sockets, or any other streaming network protocol. +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 which were interfaces to +the C Xlib. +This is possible to do since X client programs communicate with the X +server via the X protocol. The communication takes place over TCP/IP, +Unix sockets, DECnet or any other streaming network protocol. The C +Xlib is merely an interface to this protocol, providing functions +suitable for a C environment. + +Python3 is an optional dependency and python3-six is required if built +with python3 support. + +setuptools-scm is only required as a build dependency and can be +skipped if you would rather have it automatically grabbed from +pypi.python.org during the build process. diff --git a/python/python-xlib/python-xlib.SlackBuild b/python/python-xlib/python-xlib.SlackBuild index a5dd319029..341666f5ee 100644 --- a/python/python-xlib/python-xlib.SlackBuild +++ b/python/python-xlib/python-xlib.SlackBuild @@ -1,12 +1,12 @@ #!/bin/sh # Slackware build script for python-xlib -# Written by Vasilis Papavasileiou -# Modified by the SlackBuilds.org project +# Written by Vasilis Papavasileiou +# Copyright 2018 Hunter Sezen California, USA PRGNAM=python-xlib -VERSION=${VERSION:-0.14} +VERSION=${VERSION:-0.21} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -23,25 +23,35 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -DOCS="COPYING NEWS PKG-INFO README TODO" +set -eu rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT -cd $TMP || exit 1 +cd $TMP rm -rf $PRGNAM-$VERSION -tar -xzvf $CWD/$PRGNAM-$VERSION.tar.gz || exit 1 -cd $PRGNAM-$VERSION || exit 1 +tar -xvf $CWD/$PRGNAM-$VERSION.tar.bz2 +cd $PRGNAM-$VERSION chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ -o -perm 511 \) -exec chmod 755 {} \; -o \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ - -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -python setup.py install --root $PKG || exit 1 +# Partially revert: fixup metadata +# https://github.com/python-xlib/python-xlib/commit/22a8e1929ad58b8168bcf5d931e8f6067ebdec0a +# https://github.com/python-xlib/python-xlib/issues/106 +zcat $CWD/setup.patch.gz | patch -R -p1 + +python setup.py install --root $PKG + +# Python 3 support. +if python3 -c 'import sys' 2>/dev/null; then + python3 setup.py install --root=$PKG +fi mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION +cp -a CHANGELOG.md LICENSE PKG-INFO README.rst TODO $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install diff --git a/python/python-xlib/python-xlib.info b/python/python-xlib/python-xlib.info index 1bde19e864..cf7eec970b 100644 --- a/python/python-xlib/python-xlib.info +++ b/python/python-xlib/python-xlib.info @@ -1,10 +1,10 @@ PRGNAM="python-xlib" -VERSION="0.14" -HOMEPAGE="http://python-xlib.sourceforge.net/" -DOWNLOAD="http://downloads.sourceforge.net/python-xlib/python-xlib-0.14.tar.gz" -MD5SUM="a038c2f410d8445f3fa8f6dcd45659c5" +VERSION="0.21" +HOMEPAGE="https://github.com/python-xlib/python-xlib" +DOWNLOAD="https://github.com/python-xlib/python-xlib/releases/download/0.21/python-xlib-0.21.tar.bz2" +MD5SUM="cdf342aa145c2be0ccae46cfb7b62551" DOWNLOAD_x86_64="" MD5SUM_x86_64="" -REQUIRES="" -MAINTAINER="Vasilis Papavasileiou" -EMAIL="el03020@mail.ntua.gr" +REQUIRES="setuptools-scm six" +MAINTAINER="Hunter Sezen" +EMAIL="orbea@fredslev.dk" diff --git a/python/python-xlib/setup.patch.gz b/python/python-xlib/setup.patch.gz new file mode 100644 index 0000000000000000000000000000000000000000..8626ec1a797a18051c166d201ee699633609d04f GIT binary patch literal 685 zcmV;e0#f}SiwFo`fT>yn19N3`b#N|lVRU0?0G(7_kDD+MeCJo}8+S?|fpQ-`DOFBw zb&8bsBBduqs!qtjCg-cMscjPS@4JR14eC?Mlf64LyX+1We7%Ms*l-JMWYE@CSnVM@ z9X&1!Y#>YGo7?C<3_oTGOYRV&@%T1LydVh9c-~+zIOk5M5X8ecfk8Zs#xR|F;K5p} z5?Y8=N*Lf}rL^rLln)N~mEf5dI6|Ab@&ceovJxkLwYP6d1`R>{VVBsVHeAVxqlIaD zxTeNxE;ngPs18@4$u+O6!}^O>2UalWnPz%_6f4wD3dM@F)?(tnSzDQh(THaBR%c(?e)=s|%I;}1+ zdFgNm!HVU-*v4VHyLfLSYmfV39K#?=hDqy>KF-vYGsC|Ejmq9Jw|*CY zJYkucBiG}f*HftoGe1E1}EV!xJ99=5~YQuWwti(@BlXu zz(T8{&YfpQl*j}grCQ!sx#e2PmPdpY)qJcf+97ic)5FfBMf#u$c&rPKGDpWa6sCT9 z*m>syhj?DjoTgS=qSF28`wPs`81ldqO4LliqRyx!97)?4lm@|^O|A|$y6(w8Q$gxb zZeY1L7R#;<%&5J}^(bu*PBYkOR+f%1XL3{1svYI<4bdqM?=EC~xD+2=&PXn1++4_* zm6brZ{dV6j^0`a)bbhFc)+{HfP0 T|4VlNfoty%ocn)7Ck6ljv`$lS literal 0 HcmV?d00001 diff --git a/python/python-xlib/slack-desc b/python/python-xlib/slack-desc index bc463e25a8..1a2c266df7 100644 --- a/python/python-xlib/slack-desc +++ b/python/python-xlib/slack-desc @@ -8,12 +8,12 @@ |-----handy-ruler------------------------------------------------------| python-xlib: python-xlib (X Library module for Python) python-xlib: -python-xlib: The Python X library is intended to be a fully functional X -python-xlib: client for Python programs. It is written entirely in Python, in -python-xlib: contrast to earlier X libraries for Python. This is possible to -python-xlib: do since X client programs communicate with the X server via the -python-xlib: X protocol. The communication takes over TCP/IP, Unix sockets, or -python-xlib: any other streaming network protocol. -python-xlib: -python-xlib: Homepage: http://python-xlib.sourceforge.net/ +python-xlib: The Python X Library is intended to be a fully functional X client +python-xlib: library for Python programs. It is written entirely in Python, in +python-xlib: contrast to earlier X libraries for Python which were interfaces to +python-xlib: the C Xlib. The communication takes place over TCP/IP, Unix sockets, +python-xlib: DECnet or any other streaming network protocol. The C Xlib is merely +python-xlib: an interface to this protocol, providing functions suitable for a C +python-xlib: environment. python-xlib: +python-xlib: Homepage: https://github.com/python-xlib/python-xlib