diff options
author | Leo <thinkabit.ukim@gmail.com> | 2019-09-09 11:08:10 -0300 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2019-09-09 12:36:57 -0300 |
commit | c2fbad37637db450b37dccca09536cbcf7e1446a (patch) | |
tree | 8f139cb71eca313ae0c14ac22099df5ba02606ee /community | |
parent | 1363abf13eeef790cd8293399ce86da2d36e260f (diff) | |
download | aports-c2fbad37637db450b37dccca09536cbcf7e1446a.tar.bz2 aports-c2fbad37637db450b37dccca09536cbcf7e1446a.tar.xz |
community/py3-markdown: drop py2
Diffstat (limited to 'community')
-rw-r--r-- | community/py3-markdown/APKBUILD | 38 |
1 files changed, 9 insertions, 29 deletions
diff --git a/community/py3-markdown/APKBUILD b/community/py3-markdown/APKBUILD index 96c4a832e0..23b47bed83 100644 --- a/community/py3-markdown/APKBUILD +++ b/community/py3-markdown/APKBUILD @@ -1,21 +1,23 @@ # Contributor: Fabian Affolter <fabian@affolter-engineering.ch> # Maintainer: Fabian Affolter <fabian@affolter-engineering.ch> -pkgname=py-markdown +pkgname=py3-markdown _pkgname=Markdown pkgver=3.1.1 -pkgrel=0 -pkgdesc="A Python implementation of Markdown" +pkgrel=1 +pkgdesc="Python3 implementation of Markdown" url="https://python-markdown.github.io/" arch="noarch" license="BSD-3-Clause" -makedepends="py-setuptools py3-setuptools" +depends="python3" +makedepends="py3-setuptools" checkdepends="py3-coverage py3-yaml" -subpackages="py3-${pkgname#py-}:_py3 py2-${pkgname#py-}:_py2" source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" builddir="$srcdir/$_pkgname-$pkgver" +replaces="py-markdown" # Backwards compatibility +provides="py-markdown=$pkgver-r$pkgrel" # Backwards compatibility + build() { - python2 setup.py build python3 setup.py build } @@ -24,29 +26,7 @@ check() { } package() { - python2 setup.py install --root=$pkgdir/ --optimize=1 - python3 setup.py install --root=$pkgdir/ --optimize=1 -} - - -_py() { - local python=$1 - pkgdesc="$pkgdesc - $python" - depends="$depends $python" - install_if="$pkgname=$pkgver-r$pkgrel $python" - local dir=$($python -c 'import sysconfig; print(sysconfig.get_path("stdlib"))') - - mkdir -p "$subpkgdir"${dir} - mv "$pkgdir"${dir}/* "$subpkgdir"${dir} -} - -_py2() { - replaces="$pkgname" - _py python2 -} - -_py3() { - _py python3 + python3 setup.py install --root="$pkgdir" } sha512sums="78f089f2eef5c73d683ac96fd20c87145e243d12b0f230b9b0228b995035fbb084dde40be788679c63637f05956487ad520cc9dd61d133926bf13521aa600090 Markdown-3.1.1.tar.gz" |