[arch-commits] Commit in python-nose/repos (staging-any staging-any/PKGBUILD)

Dan McGee dan at archlinux.org
Sun Sep 30 17:33:20 UTC 2012


    Date: Sunday, September 30, 2012 @ 13:33:19
  Author: dan
Revision: 167299

archrelease: copy trunk to staging-any

Added:
  python-nose/repos/staging-any/
  python-nose/repos/staging-any/PKGBUILD
    (from rev 167298, python-nose/trunk/PKGBUILD)

----------+
 PKGBUILD |   47 +++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 47 insertions(+)

Copied: python-nose/repos/staging-any/PKGBUILD (from rev 167298, python-nose/trunk/PKGBUILD)
===================================================================
--- staging-any/PKGBUILD	                        (rev 0)
+++ staging-any/PKGBUILD	2012-09-30 17:33:19 UTC (rev 167299)
@@ -0,0 +1,47 @@
+# $Id$
+# Maintainer: Dan McGee <dan at archlinux.org>
+# Contributor: Angel Velasquez <angvp at archlinux.org>
+# Contributor: Douglas Soares de Andrade <douglas at archlinux.org>
+# Contributor: Cilyan Olowen <gaknar at gmail.com>
+
+pkgbase=python-nose
+pkgname=('python-nose' 'python2-nose' 'python-nose-doc')
+pkgver=1.2.1
+pkgrel=2
+pkgdesc="A discovery-based unittest extension"
+arch=('any')
+url='http://readthedocs.org/docs/nose/'
+license=('LGPL2.1')
+makedepends=('python' 'python-distribute' 'python2' 'python2-distribute' 'python2-sphinx')
+source=("http://pypi.python.org/packages/source/n/nose/nose-${pkgver}.tar.gz")
+md5sums=('735e3f1ce8b07e70ee1b742a8a53585a')
+
+build() {
+  cd "$srcdir/nose-$pkgver"
+  sed -i -e "s:man/man1:share/man/man1:g" setup.py
+  cp -R "$srcdir/nose-$pkgver" "$srcdir/nose2-$pkgver"
+}
+
+package_python-nose() {
+  depends=('python' 'python-distribute')
+  cd "$srcdir/nose-$pkgver"
+  python3 setup.py install --prefix=/usr --root="${pkgdir}"
+  mv "$pkgdir/usr/bin/nosetests" "$pkgdir/usr/bin/nosetests3"
+}
+
+package_python2-nose() {
+  depends=('python2' 'python2-distribute')
+  cd "$srcdir/nose2-$pkgver"
+  python2 setup.py install --prefix=/usr --root="${pkgdir}"
+  mv "$pkgdir/usr/bin/nosetests" "$pkgdir/usr/bin/nosetests2"
+  rm -rf "$pkgdir/usr/share"
+}
+
+package_python-nose-doc(){
+  pkgdesc="Nose documentation and examples"
+  cd "$srcdir/nose-$pkgver/doc"
+  make SPHINXBUILD=sphinx-build2 html
+  mkdir -p "$pkgdir/usr/share/doc/python-nose"
+  cp -r .build/html "$pkgdir/usr/share/doc/python-nose"
+  cp -r ../examples "$pkgdir/usr/share/doc/python-nose"
+}




More information about the arch-commits mailing list