[arch-commits] Commit in python-xcffib/repos (3 files)

Evangelos Foutras foutrelis at archlinux.org
Fri Jul 13 19:48:46 UTC 2018


    Date: Friday, July 13, 2018 @ 19:48:45
  Author: foutrelis
Revision: 358786

archrelease: copy trunk to community-staging-any

Added:
  python-xcffib/repos/community-staging-any/
  python-xcffib/repos/community-staging-any/PKGBUILD
    (from rev 358783, python-xcffib/trunk/PKGBUILD)
  python-xcffib/repos/community-staging-any/optparse-applicative-0.13.patch
    (from rev 358784, python-xcffib/trunk/optparse-applicative-0.13.patch)

---------------------------------+
 PKGBUILD                        |   53 ++++++++++++++++++++++++++++++++++++++
 optparse-applicative-0.13.patch |   39 +++++++++++++++++++++++++++
 2 files changed, 92 insertions(+)

Copied: python-xcffib/repos/community-staging-any/PKGBUILD (from rev 358783, python-xcffib/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2018-07-13 19:48:45 UTC (rev 358786)
@@ -0,0 +1,53 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Roger Duran <rogerduran at gmail.com>
+
+pkgbase=python-xcffib
+pkgname=(python-xcffib python2-xcffib)
+pkgver=0.6.0
+pkgrel=2
+pkgdesc="Python3 drop in replacement for xpyb, an XCB python binding"
+arch=('any')
+url="https://pypi.python.org/pypi/xcffib"
+license=('Apache')
+makedepends=('python-setuptools' 'python2-setuptools' 'python-cffi' 'python2-cffi' 'python-six'
+             'python2-six' 'libxcb' 'haskell-xcffib')
+checkdepends=('python-nose' 'python2-nose' 'xorg-server-xvfb' 'xorg-xeyes')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/tych0/xcffib/archive/v$pkgver.tar.gz")
+sha512sums=('be163991bc68d7e6c08420b97afe227f013014b64a4ab84b44101c01252dbc90778dfc55d1d8a8cc7dc7bdd5209403d4536cddeeac1591be940e915e76daddcf')
+
+prepare() {
+  cp -a xcffib-$pkgver{,-py2}
+}
+
+build() {
+  cd "$srcdir"/xcffib-$pkgver
+  make xcffib GEN=xcffibgen CABAL=true
+  python setup.py build
+
+  cd "$srcdir"/xcffib-$pkgver-py2
+  make xcffib GEN=xcffibgen CABAL=true
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/xcffib-$pkgver
+  nosetests3
+
+  cd "$srcdir"/xcffib-$pkgver-py2
+  nosetests2
+}
+
+package_python-xcffib() {
+  depends=('python-six' 'python-cffi' 'libxcb')
+
+  cd xcffib-$pkgver
+  python setup.py install --root="$pkgdir/" --optimize=1
+}
+
+package_python2-xcffib() {
+  depends=('python2-six' 'python2-cffi' 'libxcb')
+
+  cd xcffib-$pkgver-py2
+  python2 setup.py install --root="$pkgdir/" --optimize=1
+}

Copied: python-xcffib/repos/community-staging-any/optparse-applicative-0.13.patch (from rev 358784, python-xcffib/trunk/optparse-applicative-0.13.patch)
===================================================================
--- community-staging-any/optparse-applicative-0.13.patch	                        (rev 0)
+++ community-staging-any/optparse-applicative-0.13.patch	2018-07-13 19:48:45 UTC (rev 358786)
@@ -0,0 +1,39 @@
+From e0bd193a756235e3186b2b7464ee61025ff3e344 Mon Sep 17 00:00:00 2001
+From: Tycho Andersen <tycho at tycho.ws>
+Date: Sun, 18 Sep 2016 19:30:32 -0600
+Subject: [PATCH] fix build with latest verison of optparse-applicative
+
+Apparently it stopped exporting <>, so let's import that by hand.
+
+Signed-off-by: Tycho Andersen <tycho at tycho.ws>
+---
+ generator/xcffibgen.hs | 1 +
+ xcffib.cabal           | 3 ++-
+ 2 files changed, 3 insertions(+), 1 deletion(-)
+
+diff --git a/generator/xcffibgen.hs b/generator/xcffibgen.hs
+index 52d89a5..bbad4de 100644
+--- a/generator/xcffibgen.hs
++++ b/generator/xcffibgen.hs
+@@ -16,6 +16,7 @@
+ module Main where
+ 
+ 
++import Data.Semigroup
+ import Data.XCB.Types
+ import Data.XCB.Python.Parse
+ 
+diff --git a/xcffib.cabal b/xcffib.cabal
+index 711cae3..8ee3222 100644
+--- a/xcffib.cabal
++++ b/xcffib.cabal
+@@ -54,7 +54,8 @@ executable xcffibgen
+                  containers,
+                  mtl >= 2.1,
+                  attoparsec,
+-                 bytestring
++                 bytestring,
++                 semigroups
+   ghc-options: -Wall
+ 
+ test-suite PyHelpersTests



More information about the arch-commits mailing list