summaryrefslogtreecommitdiff
path: root/~mtjm/python-coverage/PKGBUILD
diff options
context:
space:
mode:
authorMichał Masłowski <mtjm@mtjm.eu>2011-12-20 11:27:17 +0100
committerMichał Masłowski <mtjm@mtjm.eu>2011-12-20 11:27:17 +0100
commit19e128f3f63b8f6fea0fa81326e3dda0a7da2a3e (patch)
tree0cad25ce604e1ae1f235a1c09b63cf75da0e5c08 /~mtjm/python-coverage/PKGBUILD
parenta434563cc5158df44287b43638f2f1bc8ab24ac5 (diff)
downloadabslibre-19e128f3f63b8f6fea0fa81326e3dda0a7da2a3e.tar.gz
abslibre-19e128f3f63b8f6fea0fa81326e3dda0a7da2a3e.tar.bz2
abslibre-19e128f3f63b8f6fea0fa81326e3dda0a7da2a3e.zip
~mtjm/python-coverage-3.5.1-1
Diffstat (limited to '~mtjm/python-coverage/PKGBUILD')
-rw-r--r--~mtjm/python-coverage/PKGBUILD47
1 files changed, 47 insertions, 0 deletions
diff --git a/~mtjm/python-coverage/PKGBUILD b/~mtjm/python-coverage/PKGBUILD
new file mode 100644
index 000000000..f9acc0d94
--- /dev/null
+++ b/~mtjm/python-coverage/PKGBUILD
@@ -0,0 +1,47 @@
+# Maintainer: Michał Masłowski <mtjm@mtjm.eu>
+
+pkgname=(python-coverage python2-coverage)
+pkgver=3.5.1
+pkgrel=1
+pkgdesc="Code coverage measurement for Python"
+arch=('i686' 'x86_64' 'mips64el')
+url="http://nedbatchelder.com/code/coverage/"
+license=('BSD')
+makedepends=('python' 'python2' 'python-distribute' 'python2-distribute')
+provides=()
+conflicts=()
+replaces=()
+backup=()
+options=(!emptydirs)
+install=
+source=("http://pypi.python.org/packages/source/c/coverage/coverage-${pkgver}.tar.gz" LICENSE)
+md5sums=('410d4c8155a4dab222f2bc51212d4a24'
+ 'f86a7dcb9a1bc636cdbcc19a96d19b2c')
+
+# Tests are not run, since upstream removes them from release tarballs.
+
+build() {
+ cd $srcdir
+ cp -r coverage-$pkgver build-py2k
+ cp -r coverage-$pkgver build-py3k
+ cd build-py2k
+ python2 setup.py build
+ cd ../build-py3k
+ python setup.py build
+}
+
+package_python-coverage() {
+ depends=('python' 'python-distribute')
+ cd "$srcdir/build-py3k"
+ python setup.py install --root="$pkgdir/" --optimize=1
+ install -D -m644 $srcdir/LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+package_python2-coverage() {
+ depends=('python2' 'python2-distribute')
+ cd "$srcdir/build-py2k"
+ python2 setup.py install --root="$pkgdir/" --optimize=1
+ # Name the script differently.
+ mv $pkgdir/usr/bin/coverage $pkgdir/usr/bin/coverage2
+ install -D -m644 $srcdir/LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}