diff options
author | Bartłomiej Piotrowski <b@bpiotrowski.pl> | 2016-07-18 19:33:46 +0200 |
---|---|---|
committer | Bartłomiej Piotrowski <b@bpiotrowski.pl> | 2016-07-18 19:33:46 +0200 |
commit | 99dd043cd563c7919bb11bd2478a9e0f9a3dd1c0 (patch) | |
tree | 614346077236a57a7c83dab8dfb59d2bdc11474d | |
parent | 2c8afec95a601ac9e6ce0d39e761038970f8c0ec (diff) | |
download | aports-99dd043cd563c7919bb11bd2478a9e0f9a3dd1c0.tar.bz2 aports-99dd043cd563c7919bb11bd2478a9e0f9a3dd1c0.tar.xz |
main/python: rename to python2
-rw-r--r-- | main/python2/APKBUILD (renamed from main/python/APKBUILD) | 13 | ||||
-rw-r--r-- | main/python2/musl-find_library.patch (renamed from main/python/musl-find_library.patch) | 0 | ||||
-rw-r--r-- | main/python2/unchecked-ioctl.patch (renamed from main/python/unchecked-ioctl.patch) | 0 |
3 files changed, 5 insertions, 8 deletions
diff --git a/main/python/APKBUILD b/main/python2/APKBUILD index c4876ce0b7..2ef5515e3a 100644 --- a/main/python/APKBUILD +++ b/main/python2/APKBUILD @@ -1,5 +1,5 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> -pkgname=python +pkgname=python2 pkgver=2.7.12 _verbase=${pkgver%.*} pkgrel=0 @@ -7,7 +7,7 @@ pkgdesc="A high-level scripting language" url="http://www.python.org" arch="all" license="custom" -replaces="python-dev" +provides="python=$pkgver-r$pkgrel" subpackages="$pkgname-dbg $pkgname-dev $pkgname-doc $pkgname-tests py-gdbm:gdbm" depends="" @@ -18,12 +18,7 @@ source="http://www.$pkgname.org/ftp/$pkgname/$pkgver/Python-$pkgver.tar.xz unchecked-ioctl.patch" prepare() { - cd "$srcdir/Python-$pkgver" - for i in $source; do - case $i in - *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1 - esac - done + default_prepare # Make sure we use system libs rm -r Modules/expat Modules/_ctypes/libffi* Modules/zlib || return 1 @@ -73,6 +68,8 @@ _mv_files() { } dev() { + provides="python-dev=$pkgver-r$pkgrel" + # pyconfig.h is needed runtime so we move it back default_dev mkdir -p "$pkgdir"/usr/include/python$_verbase diff --git a/main/python/musl-find_library.patch b/main/python2/musl-find_library.patch index 2d8d19719c..2d8d19719c 100644 --- a/main/python/musl-find_library.patch +++ b/main/python2/musl-find_library.patch diff --git a/main/python/unchecked-ioctl.patch b/main/python2/unchecked-ioctl.patch index 4d5564c2cb..4d5564c2cb 100644 --- a/main/python/unchecked-ioctl.patch +++ b/main/python2/unchecked-ioctl.patch |