diff options
author | Fabian Affolter <fabian@affolter-engineering.ch> | 2016-11-07 17:03:32 +0000 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2016-11-22 02:42:18 +0100 |
commit | 11972e148804da9780d422f6c64b1837e433b2b9 (patch) | |
tree | 33513c76c36b9024f6e4127f9589a7f2852df04b /testing/py-m2crypto | |
parent | 3c3f2b98432734b33225e4a3f8299bfa9abdd25b (diff) | |
download | aports-11972e148804da9780d422f6c64b1837e433b2b9.tar.bz2 aports-11972e148804da9780d422f6c64b1837e433b2b9.tar.xz |
testing/py-m2crypto: upgrade to 0.25.1 and add py2 submodule
Diffstat (limited to 'testing/py-m2crypto')
-rw-r--r-- | testing/py-m2crypto/APKBUILD | 49 |
1 files changed, 33 insertions, 16 deletions
diff --git a/testing/py-m2crypto/APKBUILD b/testing/py-m2crypto/APKBUILD index 1a6e64e31e..ac7a63e939 100644 --- a/testing/py-m2crypto/APKBUILD +++ b/testing/py-m2crypto/APKBUILD @@ -2,30 +2,47 @@ # Maintainer: Fabian Affolter <fabian@affolter-engineering.ch> pkgname=py-m2crypto _pkgname=M2Crypto -pkgver=0.23.0 -pkgrel=1 +pkgver=0.25.1 +pkgrel=0 pkgdesc="A crypto and SSL toolkit for Python" -url="http://chandlerproject.org/bin/view/Projects/MeTooCrypto" +url="https://pypi.python.org/pypi/M2Crypto/" arch="all" license="BSD" -depends="" -depends_dev= -makedepends="python2-dev swig libressl-dev py-setuptools" -install="" -subpackages="" +makedepends="python2-dev py-setuptools libressl-dev swig" +# Note: This library is not compatible with Python 3 yet, +# see https://gitlab.com/m2crypto/m2crypto/issues/114. +subpackages="py2-${pkgname#py-}:_py2" 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" - python2 setup.py build || return 1 + cd "$builddir" + python2 setup.py build } package() { - cd "$_builddir" - python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1 + mkdir -p "$pkgdir" } -md5sums="89557730e245294a6cab06de8ad4fb42 M2Crypto-0.23.0.tar.gz" -sha256sums="1ac3b6eafa5ff7e2a0796675316d7569b28aada45a7ab74042ad089d15a9567f M2Crypto-0.23.0.tar.gz" -sha512sums="b1c57328c60cb82fdc196c491d9518d58a996fbae35e32b0bd20d3d38ec8f72d0981ba7dde154f7684224ce9ee38e69460328f1bd8931b16210233c8199e6c51 M2Crypto-0.23.0.tar.gz" +_py2() { + depends="py2-typing" + replaces="$pkgname" + _py python2 +} + +_py3() { + _py python3 +} + +_py() { + local python="$1" + pkgdesc="$pkgdesc (for $python)" + install_if="$pkgname=$pkgver-r$pkgrel $python" + + cd "$builddir" + $python setup.py install --prefix=/usr --root="$subpkgdir" +} + +md5sums="040234289fbef5bed4029f0f7d1dae35 M2Crypto-0.25.1.tar.gz" +sha256sums="ac303a1881307a51c85ee8b1d87844d9866ee823b4fdbc52f7e79187c2d9acef M2Crypto-0.25.1.tar.gz" +sha512sums="096d414efd5558f9ca4cebf46a297fa39f799e35c4325e031ee816689345e041370f2129650a10db66ebfcfe64309a7c7b49082306567baaf003b88ed9d60bda M2Crypto-0.25.1.tar.gz" |