summaryrefslogtreecommitdiffstats
path: root/abs/core/python_modules/python-nose/PKGBUILD
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2012-08-07 18:23:48 (GMT)
committerJames Meyer <james.meyer@operamail.com>2012-08-07 18:23:48 (GMT)
commit65be01bf377eb5aaf0164940661b6a88735661c6 (patch)
tree9e879ed78faa25f5480bf369df50636d680373d4 /abs/core/python_modules/python-nose/PKGBUILD
parentebeaee292a5a8e7dc402b0d21840cda1cc3d04ac (diff)
downloadlinhes_pkgbuild-65be01bf377eb5aaf0164940661b6a88735661c6.zip
linhes_pkgbuild-65be01bf377eb5aaf0164940661b6a88735661c6.tar.gz
linhes_pkgbuild-65be01bf377eb5aaf0164940661b6a88735661c6.tar.bz2
python_modules: updated a bunch
Diffstat (limited to 'abs/core/python_modules/python-nose/PKGBUILD')
-rw-r--r--abs/core/python_modules/python-nose/PKGBUILD43
1 files changed, 31 insertions, 12 deletions
diff --git a/abs/core/python_modules/python-nose/PKGBUILD b/abs/core/python_modules/python-nose/PKGBUILD
index e48c434..5d36e01 100644
--- a/abs/core/python_modules/python-nose/PKGBUILD
+++ b/abs/core/python_modules/python-nose/PKGBUILD
@@ -1,26 +1,45 @@
-# $Id: $
-# Maintainer:
+# $Id: PKGBUILD 144082 2011-12-03 05:50:51Z angvp $
+# Maintainer: Angel Velasquez <angvp@archlinux.org>
# Contributor: Douglas Soares de Andrade <douglas@archlinux.org>
# Contributor: Cilyan Olowen <gaknar@gmail.com>
-
-pkgname=python-nose
-pkgver=0.11.3
+pkgbase=python-nose
+pkgname=('python2-nose' )
+pkgver=1.1.2
pkgrel=3
pkgdesc="A discovery-based unittest extension"
arch=('any')
url="http://www.somethingaboutorange.com/mrl/projects/nose/"
license=('LGPL2')
-depends=('setuptools')
-source=("http://www.somethingaboutorange.com/mrl/projects/nose/nose-${pkgver}.tar.gz")
-md5sums=('7f1dc53750811f78bedef9e14a4bc5a5')
+source=("http://pypi.python.org/packages/source/n/nose/nose-${pkgver}.tar.gz")
+makedepends=( 'python2' 'python2-distribute' )
+md5sums=('144f237b615e23f21f6a50b2183aa817')
build() {
- cd "${srcdir}/nose-${pkgver}"
+ 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"
+ python setup.py install --prefix=/usr --root=${pkgdir}
+ mv "$pkgdir/usr/bin/nosetests" "$pkgdir/usr/bin/nosetests3"
}
-package() {
- cd "${srcdir}/nose-${pkgver}"
- python2 setup.py install --prefix=/usr --root=${pkgdir} || return 1
+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 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"
+}