diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2011-06-23 20:12:05 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2011-06-23 20:12:05 +0000 |
commit | 01a80be974d3c4034414bdfde057ca2ecd96601d (patch) | |
tree | 1d984fba6f53c25ba9740eca8d784e880c7346f3 /main/python | |
parent | e589ac8a52d7b395765e0c79d77756a319e0ff14 (diff) | |
download | aports-01a80be974d3c4034414bdfde057ca2ecd96601d.tar.bz2 aports-01a80be974d3c4034414bdfde057ca2ecd96601d.tar.xz |
main/python: ship pyconfig.h with main pkg
its needed runtime
Diffstat (limited to 'main/python')
-rw-r--r-- | main/python/APKBUILD | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/main/python/APKBUILD b/main/python/APKBUILD index 8fffcf7792..35ab8ef088 100644 --- a/main/python/APKBUILD +++ b/main/python/APKBUILD @@ -1,11 +1,13 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=python pkgver=2.7.2 -pkgrel=0 +_verbase=${pkgver%.*} +pkgrel=1 pkgdesc="A high-level scripting language" url="http://www.python.org" arch="all" license="custom" +replaces="python-dev" subpackages="$pkgname-dev $pkgname-doc $pkgname-tests py-gdbm:gdbm " @@ -52,6 +54,14 @@ _mv_files() { done } +dev() { + # pyconfig.h is needed runtime so we move it back + default_dev + mkdir -p "$pkgdir"/usr/include/python$_verbase + mv "$subpkgdir"/usr/include/python$_verbase/pyconfig.h \ + "$pkgdir"/usr/include/python$_verbase/ +} + tests() { pkgdesc="The test modules from the main python package" cd "$pkgdir" |