diff options
author | Bartłomiej Piotrowski <b@bpiotrowski.pl> | 2016-07-19 21:18:14 +0200 |
---|---|---|
committer | Bartłomiej Piotrowski <b@bpiotrowski.pl> | 2016-07-19 21:19:12 +0200 |
commit | dc68aa66166cf7b1f9492f7b9c18b281f2c9079b (patch) | |
tree | dee89dfc633a6ad3663cfc746997986caab95f7f /main/python3 | |
parent | 2a646d10483c54df814756f08a28ebe79dc05faf (diff) | |
download | aports-dc68aa66166cf7b1f9492f7b9c18b281f2c9079b.tar.bz2 aports-dc68aa66166cf7b1f9492f7b9c18b281f2c9079b.tar.xz |
main/python3: upgrade to 3.5.2
Additionally claim maintainership and make some style changes.
Diffstat (limited to 'main/python3')
-rw-r--r-- | main/python3/APKBUILD | 48 |
1 files changed, 25 insertions, 23 deletions
diff --git a/main/python3/APKBUILD b/main/python3/APKBUILD index 5e3a067b23..96df014b45 100644 --- a/main/python3/APKBUILD +++ b/main/python3/APKBUILD @@ -1,10 +1,9 @@ -# Maintainer: +# Maintainer: Bartłomiej Piotrowski <bpiotrowski@alpinelinux.org> # Contributor: Kiyoshi Aman <kiyoshi.aman@gmail.com> -# Contributor: Bartłomiej Piotrowski <bpiotrowski@alpinelinux.org> pkgname=python3 -pkgver=3.5.1 -pkgrel=3 +pkgver=3.5.2 +pkgrel=0 pkgdesc="A high-level scripting language" url="http://www.python.org" arch="all" @@ -15,15 +14,12 @@ makedepends="expat-dev openssl-dev zlib-dev ncurses-dev bzip2-dev xz-dev sqlite-dev libffi-dev tcl-dev linux-headers gdbm-dev readline-dev" source="http://www.python.org/ftp/python/$pkgver/Python-$pkgver.tar.xz" -_builddir="$srcdir"/Python-$pkgver +builddir="$srcdir"/Python-$pkgver + prepare() { - cd "$_builddir" - for i in $source; do - case $i in - *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; - esac - done + default_prepare || return 1 + cd "$builddir" # force system libs rm -r Modules/expat \ Modules/zlib \ @@ -33,28 +29,33 @@ prepare() { } build() { - cd "$_builddir" + cd "$builddir" + ./configure \ --prefix=/usr \ - --enable-shared \ + --disable-rpath \ --enable-ipv6 \ + --enable-loadable-sqlite-extensions \ + --enable-shared \ --with-computed-gotos \ - --with-threads \ - --with-system-ffi \ - --with-system-expat \ --with-dbmliborder=gdbm:ndbm \ - --enable-loadable-sqlite-extensions \ - --disable-rpath \ + --with-system-expat \ + --with-system-ffi \ + --with-threads \ || return 1 + make EXTRA_CFLAGS="$CFLAGS" || return 1 } package() { - cd "$_builddir" + cd "$builddir" make -j1 DESTDIR="$pkgdir" EXTRA_CFLAGS="$CFLAGS" install maninstall \ || return 1 - mv "$pkgdir"/usr/bin/2to3 "$pkgdir"/usr/bin/2to3-3.3 install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE + + local _basever="${pkgver%.*}" + ln -sf ../../libpython${_basever}m.so \ + "${pkgdir}/usr/lib/python${_basever}/config-${_basever}m/libpython${_basever}m.so" } _mv_files() { @@ -79,10 +80,11 @@ dev() { tests() { pkgdesc="The test modules from the main python package" arch="noarch" + cd "$pkgdir" _mv_files } -md5sums="e9ea6f2623fffcdd871b7b19113fde80 Python-3.5.1.tar.xz" -sha256sums="c6d57c0c366d9060ab6c0cdf889ebf3d92711d466cc0119c441dbf2746f725c9 Python-3.5.1.tar.xz" -sha512sums="261c9e42ae351853c718707a8887817e308b3ba7a37e9463a0bc8f50ee9be9ac1a011b2891f8877ecdb40beab99279bcfa8e04f813b8998fcf6cefb7fd52d850 Python-3.5.1.tar.xz" +md5sums="8906efbacfcdc7c3c9198aeefafd159e Python-3.5.2.tar.xz" +sha256sums="0010f56100b9b74259ebcd5d4b295a32324b58b517403a10d1a2aa7cb22bca40 Python-3.5.2.tar.xz" +sha512sums="c07c3366f1c81e214241444bb9da6db9d11da32ad66bfa29cdad5a3b2e34e4d870bda6d4ce3c3910b582942e91f1d8c8a1c1a7b9464cc147b83c9e0007012742 Python-3.5.2.tar.xz" |