diff options
author | Fabian Affolter <fabian@affolter-engineering.ch> | 2016-11-07 19:30:25 +0000 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2016-12-27 09:53:51 +0200 |
commit | 795fd7778b5c16c9a54d196e5cb0687faacbb633 (patch) | |
tree | fb65348e84b2ff4e9487b37b962aa7b33f391c23 /testing/py-astroid/APKBUILD | |
parent | 158baa89f13464e8d81672d54ca2f7000b17433a (diff) | |
download | aports-795fd7778b5c16c9a54d196e5cb0687faacbb633.tar.bz2 aports-795fd7778b5c16c9a54d196e5cb0687faacbb633.tar.xz |
testing/py-astroid: upgrade to 1.4.8 and enable py3
Diffstat (limited to 'testing/py-astroid/APKBUILD')
-rw-r--r-- | testing/py-astroid/APKBUILD | 46 |
1 files changed, 32 insertions, 14 deletions
diff --git a/testing/py-astroid/APKBUILD b/testing/py-astroid/APKBUILD index 26c6314573..70cfec8e33 100644 --- a/testing/py-astroid/APKBUILD +++ b/testing/py-astroid/APKBUILD @@ -2,32 +2,50 @@ # Maintainer: Fabian Affolter <fabian@affolter-engineering.ch> pkgname=py-astroid _pkgname=astroid -pkgver=1.4.3 +pkgver=1.4.8 pkgrel=0 pkgdesc="A new abstract syntax tree from Python's ast" url="http://www.astroid.org/" arch="noarch" license="LGPL2+" -depends="python2 py-logilab-common" -depends_dev="" +depends="py-logilab-common" replaces="py-logilab-astng" -makedepends="python2-dev py-setuptools py-logilab-common" -install="" -subpackages="" +makedepends="python2-dev python3-dev py-setuptools" +subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3" source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" +builddir="$srcdir"/$_pkgname-$pkgver -_builddir="$srcdir"/"$_pkgname"-$pkgver build() { - cd "$_builddir" + cd "$builddir" python2 setup.py build || return 1 + python3 setup.py build || return 1 } package() { - cd "$_builddir" - python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1 - rm -f "$pkgdir"/usr/lib/python2.?/site-packages/logilab/__init__.* + mkdir -p "$pkgdir" } -md5sums="71a7f3c1d0effab87e83299ef7f244c2 astroid-1.4.3.tar.gz" -sha256sums="8e9ce4e925a17442cec085a7fce05478b99e482c13819c619b7cdd793777bf6b astroid-1.4.3.tar.gz" -sha512sums="a4c607ef16bda0561254fa177c319e6f139de12385a277e780c8db641a4aac3cc49712be3bf9b529609f3e303194d1caa7ba44b564662aaf32c6847aab4808d0 astroid-1.4.3.tar.gz" +_py2() { + replaces="$pkgname" + depends="${depends//py-/py2-}" + _py python2 +} + +_py3() { + depends="${depends//py-/py3-}" + _py python3 +} + +_py() { + local python="$1" + pkgdesc="$pkgdesc (for $python)" + depends="$depends $python" + install_if="$pkgname=$pkgver-r$pkgrel $python" + + cd "$builddir" + $python setup.py install --prefix=/usr --root="$subpkgdir" +} + +md5sums="3def6c80afcd38b4ca4aca6aea71cbde astroid-1.4.8.tar.gz" +sha256sums="5f064785a7e45ed519285f2eb30b795e58a4932a0736b32030da6fef3394ddb3 astroid-1.4.8.tar.gz" +sha512sums="54bb20edf5518b417470a2d63210802b267fe727f9d30e1ac5000db00a7894739b1c4249468fb55df81b55d382f3a5bbe019876141f7ee4d94040fd699dc0c2c astroid-1.4.8.tar.gz" |