[arch-commits] Commit in python-cairo/repos (4 files)
Jan de Groot
jgc at archlinux.org
Sat May 20 21:55:27 UTC 2017
Date: Saturday, May 20, 2017 @ 21:55:26
Author: jgc
Revision: 296345
archrelease: copy trunk to extra-i686, extra-x86_64
Added:
python-cairo/repos/extra-i686/PKGBUILD
(from rev 296344, python-cairo/trunk/PKGBUILD)
python-cairo/repos/extra-x86_64/PKGBUILD
(from rev 296344, python-cairo/trunk/PKGBUILD)
Deleted:
python-cairo/repos/extra-i686/PKGBUILD
python-cairo/repos/extra-x86_64/PKGBUILD
-----------------------+
/PKGBUILD | 86 ++++++++++++++++++++++++++++++++++++++++++++++++
extra-i686/PKGBUILD | 49 ---------------------------
extra-x86_64/PKGBUILD | 49 ---------------------------
3 files changed, 86 insertions(+), 98 deletions(-)
Deleted: extra-i686/PKGBUILD
===================================================================
--- extra-i686/PKGBUILD 2017-05-20 21:55:21 UTC (rev 296344)
+++ extra-i686/PKGBUILD 2017-05-20 21:55:26 UTC (rev 296345)
@@ -1,49 +0,0 @@
-# $Id$
-# Maintainer: Angel Velasquez <angvp at archlinux.org>
-# Maintainer: Jan de Groot <jgc at archlinux.org>
-
-pkgname=python-cairo
-pkgver=1.10.0
-_waf_version=1.9.7
-pkgrel=8
-pkgdesc="Python bindings for the cairo graphics library"
-arch=('i686' 'x86_64')
-url="https://www.cairographics.org/pycairo"
-license=('LGPL3')
-depends=('python' 'cairo')
-source=(https://www.cairographics.org/releases/pycairo-${pkgver}.tar.bz2
- https://waf.io/waf-${_waf_version})
-md5sums=('e6fd3f2f1e6a72e0db0868c4985669c5'
- '36161654a112bd6a721835dc005ea069')
-sha1sums=('b4283aa1cc9aafd12fd72ad371303a486da1d014'
- 'f0b47d139d837eb247320495a535ba3aa24d0e3c')
-
-prepare() {
- cd pycairo-${pkgver}
-
- # use newer waf
- cp "$srcdir/waf-$_waf_version" ./waf
-
- # fix compatibility with newer waf
- # http://cgit.freedesktop.org/pycairo/commit/?id=c57cd129407c904f8c2f752a59d0183df7b01a5e
- sed -e "s/ctx.\(tool_options\|check_tool\)(/ctx.load(/" \
- -e "s/\bcompiler_cc\b/compiler_c/g" \
- -i wscript
-}
-
-build() {
- cd pycairo-${pkgver}
- # Ensure that ./waf has created the cached unpacked version
- # of the wafadmin source tree.
- # This will be created to a subdirectory like
- # .waf3-1.5.18-a7b91e2a913ce55fa6ecdf310df95752
- python3 ./waf --version
-
- ./waf configure --prefix=/usr --libdir=/usr/lib
- ./waf build
-}
-
-package() {
- cd pycairo-${pkgver}
- ./waf install --destdir="${pkgdir}"
-}
Copied: python-cairo/repos/extra-i686/PKGBUILD (from rev 296344, python-cairo/trunk/PKGBUILD)
===================================================================
--- extra-i686/PKGBUILD (rev 0)
+++ extra-i686/PKGBUILD 2017-05-20 21:55:26 UTC (rev 296345)
@@ -0,0 +1,43 @@
+# $Id$
+# Maintainer: Angel Velasquez <angvp at archlinux.org>
+# Maintainer: Jan de Groot <jgc at archlinux.org>
+
+pkgbase=python-cairo
+pkgname=(python-cairo python2-cairo)
+pkgver=1.13.1
+pkgrel=1
+pkgdesc="Python bindings for the cairo graphics library"
+arch=('i686' 'x86_64')
+url="https://pycairo.readthedocs.io/en/latest/"
+license=('LGPL2.1' 'MPL')
+makedepends=(python python2 cairo git)
+_commit=aeed942c9b2017a058ad9ee8a6b5f7f3a4204999 # tags/v1.13.1
+source=("git+https://github.com/pygobject/pycairo/#commit=$_commit")
+sha256sums=('SKIP')
+
+pkgver() {
+ cd pycairo
+ git describe --tags | sed 's/^v//;s/-/+/g'
+}
+
+
+build() {
+ cd pycairo
+ python2 setup.py build
+ python setup.py build
+}
+
+package_python2-cairo() {
+ depends=('cairo' 'python2')
+ pkgdesc="Python2 bindings for the cairo graphics library"
+
+ cd pycairo
+ python2 setup.py install --skip-build --root="${pkgdir}" --optimize='1'
+}
+
+package_python-cairo() {
+ depends=('cairo' 'python')
+
+ cd pycairo
+ python setup.py install --skip-build --root="${pkgdir}" --optimize='1'
+}
Deleted: extra-x86_64/PKGBUILD
===================================================================
--- extra-x86_64/PKGBUILD 2017-05-20 21:55:21 UTC (rev 296344)
+++ extra-x86_64/PKGBUILD 2017-05-20 21:55:26 UTC (rev 296345)
@@ -1,49 +0,0 @@
-# $Id$
-# Maintainer: Angel Velasquez <angvp at archlinux.org>
-# Maintainer: Jan de Groot <jgc at archlinux.org>
-
-pkgname=python-cairo
-pkgver=1.10.0
-_waf_version=1.9.7
-pkgrel=8
-pkgdesc="Python bindings for the cairo graphics library"
-arch=('i686' 'x86_64')
-url="https://www.cairographics.org/pycairo"
-license=('LGPL3')
-depends=('python' 'cairo')
-source=(https://www.cairographics.org/releases/pycairo-${pkgver}.tar.bz2
- https://waf.io/waf-${_waf_version})
-md5sums=('e6fd3f2f1e6a72e0db0868c4985669c5'
- '36161654a112bd6a721835dc005ea069')
-sha1sums=('b4283aa1cc9aafd12fd72ad371303a486da1d014'
- 'f0b47d139d837eb247320495a535ba3aa24d0e3c')
-
-prepare() {
- cd pycairo-${pkgver}
-
- # use newer waf
- cp "$srcdir/waf-$_waf_version" ./waf
-
- # fix compatibility with newer waf
- # http://cgit.freedesktop.org/pycairo/commit/?id=c57cd129407c904f8c2f752a59d0183df7b01a5e
- sed -e "s/ctx.\(tool_options\|check_tool\)(/ctx.load(/" \
- -e "s/\bcompiler_cc\b/compiler_c/g" \
- -i wscript
-}
-
-build() {
- cd pycairo-${pkgver}
- # Ensure that ./waf has created the cached unpacked version
- # of the wafadmin source tree.
- # This will be created to a subdirectory like
- # .waf3-1.5.18-a7b91e2a913ce55fa6ecdf310df95752
- python3 ./waf --version
-
- ./waf configure --prefix=/usr --libdir=/usr/lib
- ./waf build
-}
-
-package() {
- cd pycairo-${pkgver}
- ./waf install --destdir="${pkgdir}"
-}
Copied: python-cairo/repos/extra-x86_64/PKGBUILD (from rev 296344, python-cairo/trunk/PKGBUILD)
===================================================================
--- extra-x86_64/PKGBUILD (rev 0)
+++ extra-x86_64/PKGBUILD 2017-05-20 21:55:26 UTC (rev 296345)
@@ -0,0 +1,43 @@
+# $Id$
+# Maintainer: Angel Velasquez <angvp at archlinux.org>
+# Maintainer: Jan de Groot <jgc at archlinux.org>
+
+pkgbase=python-cairo
+pkgname=(python-cairo python2-cairo)
+pkgver=1.13.1
+pkgrel=1
+pkgdesc="Python bindings for the cairo graphics library"
+arch=('i686' 'x86_64')
+url="https://pycairo.readthedocs.io/en/latest/"
+license=('LGPL2.1' 'MPL')
+makedepends=(python python2 cairo git)
+_commit=aeed942c9b2017a058ad9ee8a6b5f7f3a4204999 # tags/v1.13.1
+source=("git+https://github.com/pygobject/pycairo/#commit=$_commit")
+sha256sums=('SKIP')
+
+pkgver() {
+ cd pycairo
+ git describe --tags | sed 's/^v//;s/-/+/g'
+}
+
+
+build() {
+ cd pycairo
+ python2 setup.py build
+ python setup.py build
+}
+
+package_python2-cairo() {
+ depends=('cairo' 'python2')
+ pkgdesc="Python2 bindings for the cairo graphics library"
+
+ cd pycairo
+ python2 setup.py install --skip-build --root="${pkgdir}" --optimize='1'
+}
+
+package_python-cairo() {
+ depends=('cairo' 'python')
+
+ cd pycairo
+ python setup.py install --skip-build --root="${pkgdir}" --optimize='1'
+}
More information about the arch-commits
mailing list