diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2009-11-16 10:43:51 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2009-11-16 10:47:18 +0000 |
commit | 5393a9ac78c5f80d04b224e5e028f99edfcdc24a (patch) | |
tree | e60bf6d5cfd017e905d74bbd417f0e05590cf2d8 /testing | |
parent | c379c75a623df4823e0593541edc86be9d6aa379 (diff) | |
download | aports-5393a9ac78c5f80d04b224e5e028f99edfcdc24a.tar.bz2 aports-5393a9ac78c5f80d04b224e5e028f99edfcdc24a.tar.xz |
testing/python26-{setuptools,buildutils}: misc build fix
* avoid fork in global scope
* added python-dev to makedepends
* quote $pkgdir and $srcdir in case someone have spaces in the path
Diffstat (limited to 'testing')
-rw-r--r-- | testing/python26-buildutils/APKBUILD | 16 | ||||
-rw-r--r-- | testing/python26-setuptools/APKBUILD | 18 |
2 files changed, 13 insertions, 21 deletions
diff --git a/testing/python26-buildutils/APKBUILD b/testing/python26-buildutils/APKBUILD index 4bee0caa2b..5db0a6bfb9 100644 --- a/testing/python26-buildutils/APKBUILD +++ b/testing/python26-buildutils/APKBUILD @@ -1,27 +1,23 @@ # Contributor: Andrew Manison <amanison@anselsystems.com> # Maintainer: pkgname=python26-buildutils -_pkgname=`echo $pkgname |sed -e 's,^python26-,,'` +_pkgname=${pkgname#python26-} pkgver=0.3 pkgrel=0 pkgdesc="buildutils is a collection of enhancements to the Python distutils" url="http://pypi.python.org/pypi/buildutils/0.3" license="GPL" depends="python python26-setuptools" -makedepends="" +makedepends="python-dev" install= subpackages="" source="http://pypi.python.org/packages/source/b/$_pkgname/$_pkgname-$pkgver.tar.gz" -# append extra dependencies to -dev subpackage -# remove if not used. -# depends_dev="somepackage-dev" - build() { - cd $srcdir/$_pkgname-$pkgver - mkdir -p $pkgdir/usr/lib/python2.6/site-packages - python setup.py install --root=$pkgdir - echo "/usr/lib/python2.6/site-packages/$_pkgname-$pkgver-py2.6.egg" > $pkgdir/usr/lib/python2.6/site-packages/$_pkgname.pth + cd "$srcdir"/$_pkgname-$pkgver + mkdir -p "$pkgdir"/usr/lib/python2.6/site-packages + python setup.py install --root="$pkgdir" + echo "/usr/lib/python2.6/site-packages/$_pkgname-$pkgver-py2.6.egg" > "$pkgdir"/usr/lib/python2.6/site-packages/$_pkgname.pth } md5sums="fec620dee05f591edad386366b52e17b buildutils-0.3.tar.gz" diff --git a/testing/python26-setuptools/APKBUILD b/testing/python26-setuptools/APKBUILD index 27d956f5b7..e8322dd525 100644 --- a/testing/python26-setuptools/APKBUILD +++ b/testing/python26-setuptools/APKBUILD @@ -1,31 +1,27 @@ # Contributor: Andrew Manison <amanison@anselsystems.com> # Maintainer: pkgname=python26-setuptools -_pkgname=`echo $pkgname |sed -e 's,^python26-,,'` +_pkgname=${pkgname#python26-} pkgver=0.6c11 pkgrel=0 pkgdesc="setuptools is a collection of enhancements to the Python distutils" url="http://pypi.python.org/pypi/setuptools" license="PSF" depends="python" -makedepends="" +makedepends="python-dev" install= subpackages="" source="http://pypi.python.org/packages/source/s/$_pkgname/$_pkgname-$pkgver.tar.gz" -# append extra dependencies to -dev subpackage -# remove if not used. -# depends_dev="somepackage-dev" - build() { - cd $srcdir/$_pkgname-$pkgver - mkdir -p $pkgdir/usr/lib/python2.6/site-packages - python setup.py install --root=$pkgdir - echo "/usr/lib/python2.6/site-packages/$_pkgname-$pkgver-py2.6.egg" > $pkgdir/usr/lib/python2.6/site-packages/$_pkgname.pth + cd "$srcdir"/$_pkgname-$pkgver + mkdir -p "$pkgdir"/usr/lib/python2.6/site-packages + python setup.py install --root="$pkgdir" + echo "/usr/lib/python2.6/site-packages/$_pkgname-$pkgver-py2.6.egg" > "$pkgdir"/usr/lib/python2.6/site-packages/$_pkgname.pth # we don't provide a non-suffixed easy_install echo "Removing non-suffixed easy_install ( $pkgdir/usr/bin/easy_install)" - rm $pkgdir/usr/bin/easy_install + rm "$pkgdir"/usr/bin/easy_install } md5sums="7df2a529a074f613b509fb44feefe74e setuptools-0.6c11.tar.gz" |