summaryrefslogtreecommitdiffstats
path: root/main/python/APKBUILD
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2011-06-22 20:17:43 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2011-06-23 07:53:02 +0000
commit698a77e6affc5887f7b70dc98fe250d8c9bd0404 (patch)
tree8aabb727ebbd44cf59a574cebcc9714634426787 /main/python/APKBUILD
parent0279e159ef9bff424626294ec968b727e18cc291 (diff)
downloadaports-698a77e6affc5887f7b70dc98fe250d8c9bd0404.tar.bz2
aports-698a77e6affc5887f7b70dc98fe250d8c9bd0404.tar.xz
main/python: upgrade to 2.7.2
Diffstat (limited to 'main/python/APKBUILD')
-rw-r--r--main/python/APKBUILD19
1 files changed, 10 insertions, 9 deletions
diff --git a/main/python/APKBUILD b/main/python/APKBUILD
index f672d7441..8fffcf779 100644
--- a/main/python/APKBUILD
+++ b/main/python/APKBUILD
@@ -1,7 +1,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=python
-pkgver=2.6.5
-pkgrel=8
+pkgver=2.7.2
+pkgrel=0
pkgdesc="A high-level scripting language"
url="http://www.python.org"
arch="all"
@@ -13,14 +13,14 @@ depends=
makedepends="expat-dev openssl-dev zlib-dev ncurses-dev bzip2-dev
gdbm-dev sqlite-dev libffi-dev"
source="http://www.$pkgname.org/ftp/$pkgname/$pkgver/Python-$pkgver.tar.bz2
- $pkgname-2.6-internal-expat.patch
"
prepare() {
cd "$srcdir/Python-$pkgver"
- for i in ../*.patch; do
- msg "Apply $i"
- patch -p1 < $i || return 1
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1
+ esac
done
}
@@ -30,6 +30,7 @@ build() {
--enable-shared \
--with-threads \
--with-system-ffi \
+ --with-system-expat \
--enable-unicode=ucs4 \
|| return 1
@@ -54,7 +55,8 @@ _mv_files() {
tests() {
pkgdesc="The test modules from the main python package"
cd "$pkgdir"
- _mv_files $(find usr/lib -type d -name 'test*')
+ _mv_files usr/lib/python*/*/test \
+ usr/lib/python*/test
}
gdbm() {
@@ -63,5 +65,4 @@ gdbm() {
_mv_files $(find usr/lib -name '*gdbm*')
}
-md5sums="6bef0417e71a1a1737ccf5750420fdb3 Python-2.6.5.tar.bz2
-9d64df5e0a6aed149a792c7bff16e3d9 python-2.6-internal-expat.patch"
+md5sums="ba7b2f11ffdbf195ee0d111b9455a5bd Python-2.7.2.tar.bz2"