[arch-commits] Commit in python-cssutils/repos/community-any (PKGBUILD PKGBUILD)

Jelle van der Waa jelle at archlinux.org
Mon Oct 19 19:23:00 UTC 2015


    Date: Monday, October 19, 2015 @ 21:23:00
  Author: jelle
Revision: 144385

archrelease: copy trunk to community-any

Added:
  python-cssutils/repos/community-any/PKGBUILD
    (from rev 144384, python-cssutils/trunk/PKGBUILD)
Deleted:
  python-cssutils/repos/community-any/PKGBUILD

----------+
 PKGBUILD |  136 ++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 69 insertions(+), 67 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2015-10-19 19:22:53 UTC (rev 144384)
+++ PKGBUILD	2015-10-19 19:23:00 UTC (rev 144385)
@@ -1,67 +0,0 @@
-# $Id$
-# Maintainer: Giovanni Scafora <giovanni at archlinux.org>
-# Contributor: Simon Sapin <simon dot sapin at exyr dot org>
-# Contributor: Michal Marek <reqamst at gmail dot com>
-# Contributor: Rick W. Chena <stuffcorpse at archlinux.us>
-# Contributor: Andrea Fagiani <andfagiani _at_ gmail dot com>
-
-pkgbase=python-cssutils
-pkgname=('python2-cssutils' 'python-cssutils')
-pkgver=1.0
-pkgrel=3
-pkgdesc="A CSS Cascading Style Sheets library for Python"
-arch=('any')
-url="http://cthedot.de/cssutils/"
-license=('LGPL3')
-makedepends=('python2-setuptools' 'python-setuptools')
-# We need to include mock as a check dependency due to the following pbr bug:
-# https://bugs.launchpad.net/pbr/+bug/1493735
-checkdepends=('python2-mock')
-source=("http://pypi.python.org/packages/source/c/cssutils/cssutils-${pkgver}.zip")
-md5sums=('0c0b9df329ec1461c732d0f3cba05e93')
-
-build() {
-  cd "${srcdir}"
-
-  # Create python2 build dir
-  cp -a cssutils-${pkgver} cssutils-py2-${pkgver}
-
-  # Use #!/usr/bin/python3 
-  cd cssutils-${pkgver}/src
-  find . -maxdepth 2 -mindepth 1 -type f -iname '*.py' -exec sed -i 's/env python/python3/' '{}' \;
-
-  cd "${srcdir}/cssutils-py2-${pkgver}"
-  find . -maxdepth 2 -mindepth 1 -type f -iname '*.py' -exec sed -i -e 's:#!/usr/bin/env python:#!/usr/bin/env python2:g' '{}' \;
-}
-
-package_python2-cssutils() {
-  depends=('python2')
-
-  cd "${srcdir}/cssutils-py2-${pkgver}"
-
-  python2 setup.py install --root="${pkgdir}/" --optimize=1
-
-  # Don't install tests (FS#27567)
-  rm -rf "${pkgdir}/usr/lib/python2.7/site-packages/tests"
-}
-
-package_python-cssutils() {
-  depends=('python')
-
-  cd "${srcdir}/cssutils-${pkgver}"
-
-  python3 setup.py install --root="${pkgdir}/" --optimize=1
-
-  # Avoid a conflict: only keep the Py2 executables.
-  rm -rf "${pkgdir}/usr/bin"
-
-  # Don't install tests (FS#27567)
-  rm -rf "${pkgdir}/usr/lib/python3.3/site-packages/tests"
-}
-
-check() {
-  cd "${srcdir}/cssutils-${pkgver}"
-  # Currently broken..
-#  python3 setup.py test
-  python2 setup.py test
-}

Copied: python-cssutils/repos/community-any/PKGBUILD (from rev 144384, python-cssutils/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2015-10-19 19:23:00 UTC (rev 144385)
@@ -0,0 +1,69 @@
+# $Id$
+# Maintainer: Giovanni Scafora <giovanni at archlinux.org>
+# Contributor: Simon Sapin <simon dot sapin at exyr dot org>
+# Contributor: Michal Marek <reqamst at gmail dot com>
+# Contributor: Rick W. Chena <stuffcorpse at archlinux.us>
+# Contributor: Andrea Fagiani <andfagiani _at_ gmail dot com>
+
+pkgbase=python-cssutils
+pkgname=('python2-cssutils' 'python-cssutils')
+pkgver=1.0.1
+pkgrel=1
+pkgdesc="A CSS Cascading Style Sheets library for Python"
+arch=('any')
+url="http://cthedot.de/cssutils/"
+license=('LGPL3')
+makedepends=('python2-setuptools' 'python-setuptools')
+# We need to include mock as a check dependency due to the following pbr bug:
+# https://bugs.launchpad.net/pbr/+bug/1493735
+checkdepends=('python2-mock')
+source=("http://pypi.python.org/packages/source/c/cssutils/cssutils-${pkgver}.tar.gz")
+md5sums=('7fcdf2c3e9f053136af1990146eb361d')
+
+build() {
+  cd "${srcdir}"
+
+  # Create python2 build dir
+  cp -a cssutils-${pkgver} cssutils-py2-${pkgver}
+
+  # Use #!/usr/bin/python3 
+  cd cssutils-${pkgver}/src
+  find . -maxdepth 2 -mindepth 1 -type f -iname '*.py' -exec sed -i 's/env python/python3/' '{}' \;
+
+  cd "${srcdir}/cssutils-py2-${pkgver}"
+  find . -maxdepth 2 -mindepth 1 -type f -iname '*.py' -exec sed -i -e 's:#!/usr/bin/env python:#!/usr/bin/env python2:g' '{}' \;
+}
+
+package_python2-cssutils() {
+  depends=('python2')
+
+  cd "${srcdir}/cssutils-py2-${pkgver}"
+
+  python2 setup.py install --root="${pkgdir}/" --optimize=1
+
+  # Don't install tests (FS#27567)
+  rm -rf "${pkgdir}/usr/lib/python2.7/site-packages/tests"
+}
+
+package_python-cssutils() {
+  depends=('python')
+
+  cd "${srcdir}/cssutils-${pkgver}"
+
+  python3 setup.py install --root="${pkgdir}/" --optimize=1
+
+  # Avoid a conflict: only keep the Py2 executables.
+  rm -rf "${pkgdir}/usr/bin"
+
+  # Don't install tests (FS#27567)
+  rm -rf "${pkgdir}/usr/lib/python3.3/site-packages/tests"
+}
+
+check() {
+  cd "${srcdir}/cssutils-${pkgver}"
+  2to3 --no-diffs -nw src
+  python3 setup.py test
+
+  cd "${srcdir}/cssutils-py2-${pkgver}"
+  python2 setup.py test
+}



More information about the arch-commits mailing list