diff options
author | prspkt <prspkt@protonmail.com> | 2019-06-07 21:58:16 +0300 |
---|---|---|
committer | prspkt <prspkt@protonmail.com> | 2019-06-08 16:18:06 +0300 |
commit | 4860e891a3099f3bc8017b2aa4e3a62b74fd356d (patch) | |
tree | 47f89d6c899688b7c4adefea4ea430bb85d1f5d0 /testing/py3-sphinxcontrib-bitbucket | |
parent | 9c08c7c151e0ed614e93cecabf79b5c5582f1e1c (diff) | |
download | aports-4860e891a3099f3bc8017b2aa4e3a62b74fd356d.tar.bz2 aports-4860e891a3099f3bc8017b2aa4e3a62b74fd356d.tar.xz |
testing/py-sphinxcontrib-bitbucket: upgrade to python3
Diffstat (limited to 'testing/py3-sphinxcontrib-bitbucket')
-rw-r--r-- | testing/py3-sphinxcontrib-bitbucket/APKBUILD | 44 | ||||
-rw-r--r-- | testing/py3-sphinxcontrib-bitbucket/fix-python3.patch | 30 |
2 files changed, 74 insertions, 0 deletions
diff --git a/testing/py3-sphinxcontrib-bitbucket/APKBUILD b/testing/py3-sphinxcontrib-bitbucket/APKBUILD new file mode 100644 index 0000000000..0cdc105ee8 --- /dev/null +++ b/testing/py3-sphinxcontrib-bitbucket/APKBUILD @@ -0,0 +1,44 @@ +# Contributor: Fabian Affolter <fabian@affolter-engineering.ch> +# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch> +pkgname=py3-sphinxcontrib-bitbucket +_pkgname=sphinxcontrib-bitbucket +pkgver=1.0 +pkgrel=0 +pkgdesc="Sphinx BitBucket extension" +url="https://pypi.python.org/pypi/sphinxcontrib-bitbucket" +arch="noarch" +license="BSD" +depends="py3-sphinx" +depends_dev="" +makedepends="py3-setuptools" +install="" +subpackages="" +source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz + fix-python3.patch" + +_builddir="$srcdir"/$_pkgname-$pkgver +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +replaces="py-sphinxcontrib-bitbucket" # Backwards compatibility +provides="py-sphinxcontrib-bitbucket=$pkgver-r$pkgrel" # Backwards compatibility + +build() { + cd "$_builddir" + python3 setup.py build || return 1 +} + +package() { + cd "$_builddir" + python3 setup.py install --prefix=/usr --root="$pkgdir" || return 1 +} + +sha512sums="e018fceecc24b7a9656d57a9855c824665948f877394b7ca6b0f22473bf83492d4155a9c9960cf18e9b10268f2928d0762a4ad48ffee2ebb819275d563751e18 sphinxcontrib-bitbucket-1.0.tar.gz +4e98838a71d14f6b5b4ad1780617a2fd91470c8952e7ec9507dbc6ebb48bf4830d0f21bdca4aded10cf7979e6bd772113df326e9a9df4778176d1786cba999e2 fix-python3.patch" diff --git a/testing/py3-sphinxcontrib-bitbucket/fix-python3.patch b/testing/py3-sphinxcontrib-bitbucket/fix-python3.patch new file mode 100644 index 0000000000..dc32986fe8 --- /dev/null +++ b/testing/py3-sphinxcontrib-bitbucket/fix-python3.patch @@ -0,0 +1,30 @@ +--- a/setup.py ++++ b/setup.py +@@ -1,9 +1,5 @@ + # -*- coding: utf-8 -*- + +-# Bootstrap installation of Distribute +-import distribute_setup +-distribute_setup.use_setuptools() +- + from setuptools import setup, find_packages + + try: +@@ -43,5 +39,4 @@ + include_package_data=True, + install_requires=requires, + namespace_packages=['sphinxcontrib'], +- py_modules = [ 'distribute_setup' ], + ) +Only in src/: sphinxcontrib-bitbucket-1.0/setup.py.orig +--- a/sphinxcontrib/bitbucket.py ++++ b/sphinxcontrib/bitbucket.py +@@ -23,7 +23,7 @@ + base = app.config.bitbucket_project_url + if not base: + raise AttributeError +- except AttributeError, err: ++ except AttributeError as err: + raise ValueError('bitbucket_project_url configuration value is not set (%s)' % str(err)) + # + slash = '/' if base[-1] != '/' else '' |