diff options
author | prspkt <prspkt@protonmail.com> | 2019-06-14 19:09:33 +0300 |
---|---|---|
committer | prspkt <prspkt@protonmail.com> | 2019-06-14 19:35:43 +0300 |
commit | 3ab42e8f340a658b2ddcbfc754524f43036f7bb3 (patch) | |
tree | 48a1d8cfb75223422c51ebccaaddf51ad4bff3ce | |
parent | fddab0c7e5919d8093ded0dae882a6896ada7433 (diff) | |
download | aports-3ab42e8f340a658b2ddcbfc754524f43036f7bb3.tar.bz2 aports-3ab42e8f340a658b2ddcbfc754524f43036f7bb3.tar.xz |
testing/py-pelican: drop python2
* Remove version specific pelican scripts.
-rw-r--r-- | testing/pelican/APKBUILD | 64 | ||||
-rw-r--r-- | testing/pelican/pelican | 11 | ||||
-rw-r--r-- | testing/pelican/pelican-import | 11 | ||||
-rw-r--r-- | testing/pelican/pelican-quickstart | 11 | ||||
-rw-r--r-- | testing/pelican/pelican-themes | 11 | ||||
-rw-r--r-- | testing/py3-pelican/APKBUILD | 29 | ||||
-rw-r--r-- | testing/py3-pelican/use-django-feedgenerator.patch (renamed from testing/pelican/use-django-feedgenerator.patch) | 0 |
7 files changed, 29 insertions, 108 deletions
diff --git a/testing/pelican/APKBUILD b/testing/pelican/APKBUILD deleted file mode 100644 index 98e32942a0..0000000000 --- a/testing/pelican/APKBUILD +++ /dev/null @@ -1,64 +0,0 @@ -# Contributor: Danilo Falcão <danilo@falcao.org> -# Maintainer: Danilo Falcão <danilo@falcao.org> -pkgname=pelican -_pkgname=pelican -pkgver=3.7.1 -pkgrel=1 -pkgdesc="A tool to generate a static blog from reStructuredText or Markdown input files." -url="https://pypi.python.org/pypi/pelican/" -arch="noarch" -license="AGPL-3.0" -depends="bash py-feedgenerator py-pygments py-docutils py-blinker py-unidecode - py-markdown py-jinja2 py-dateutil" -makedepends="python2-dev py-setuptools python3-dev" -subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3" -source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz - pelican - pelican-import - pelican-quickstart - pelican-themes -" -builddir="$srcdir"/$_pkgname-$pkgver - -build() { - cd "$builddir" - python2 setup.py build || return 1 - python3 setup.py build || return 1 -} - -package() { - mkdir -p "$pkgdir" -} - -_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" - - install -Dm755 "$srcdir"/pelican "$pkgdir"/usr/bin/pelican || return 1 - install -Dm755 "$srcdir"/pelican-import "$pkgdir"/usr/bin/pelican-import || return 1 - install -Dm755 "$srcdir"/pelican-quickstart "$pkgdir"/usr/bin/pelican-quickstart || return 1 - install -Dm755 "$srcdir"/pelican-themes "$pkgdir"/usr/bin/pelican-themes || return 1 -} - - -sha512sums="bb378ac5103d402e7955a7852c190ff7faece12b1f48c5583552ad64e47e06af886267da8d54be6123ee5ba0231f8fff4a3ef5130a45e95d9a8f907a20ec9851 pelican-3.7.1.tar.gz -430260ecf616254ebd402caa0fc39a220748e95460f670bf43ab50922cdff3ba142aacc12f862ce8b12b069b8218fe24b8387723911e3b3acc83960d05cfafff pelican -f7638795328ca5e103d8e0fa41b3b559f0657d75465fd88ca64be3514ecbc6ef0566ffc687a8869291d6b80b57fa7695ab454c33f014934eebda7ae00ec92763 pelican-import -7fb3002ee7cee43bc8f216d6df67c8144059090598a25a676880eeccc36d8d0d7063eac3792115843c3d9a5c3d859ad63bae5c9eeb858878f921fe95e0d43c95 pelican-quickstart -132fb5cd6a09f2d5c9d7759240b3621808d3447d30f14a27722add6e5d8f95e9547043a144ad1f98dc74844fdadf0cbd66011d7f6bde7d087bde11284c9eb105 pelican-themes" diff --git a/testing/pelican/pelican b/testing/pelican/pelican deleted file mode 100644 index ab80f5414e..0000000000 --- a/testing/pelican/pelican +++ /dev/null @@ -1,11 +0,0 @@ -#!/usr/bin/env python - -# -*- coding: utf-8 -*- -import re -import sys - -from pelican import main - -if __name__ == '__main__': - sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) - sys.exit(main()) diff --git a/testing/pelican/pelican-import b/testing/pelican/pelican-import deleted file mode 100644 index acb0cbf42d..0000000000 --- a/testing/pelican/pelican-import +++ /dev/null @@ -1,11 +0,0 @@ -#!/usr/bin/env python - -# -*- coding: utf-8 -*- -import re -import sys - -from pelican.tools.pelican_import import main - -if __name__ == '__main__': - sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) - sys.exit(main()) diff --git a/testing/pelican/pelican-quickstart b/testing/pelican/pelican-quickstart deleted file mode 100644 index 51395402e2..0000000000 --- a/testing/pelican/pelican-quickstart +++ /dev/null @@ -1,11 +0,0 @@ -#!/usr/bin/env python - -# -*- coding: utf-8 -*- -import re -import sys - -from pelican.tools.pelican_quickstart import main - -if __name__ == '__main__': - sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) - sys.exit(main()) diff --git a/testing/pelican/pelican-themes b/testing/pelican/pelican-themes deleted file mode 100644 index 5b0fbb65dd..0000000000 --- a/testing/pelican/pelican-themes +++ /dev/null @@ -1,11 +0,0 @@ -#!/usr/bin/env python - -# -*- coding: utf-8 -*- -import re -import sys - -from pelican.tools.pelican_themes import main - -if __name__ == '__main__': - sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) - sys.exit(main()) diff --git a/testing/py3-pelican/APKBUILD b/testing/py3-pelican/APKBUILD new file mode 100644 index 0000000000..9ea32a4305 --- /dev/null +++ b/testing/py3-pelican/APKBUILD @@ -0,0 +1,29 @@ +# Contributor: Danilo Falcão <danilo@falcao.org> +# Maintainer: Danilo Falcão <danilo@falcao.org> +pkgname=py3-pelican +_pkgname=pelican +pkgver=3.7.1 +pkgrel=1 +pkgdesc="A tool to generate a static blog from reStructuredText or Markdown input files." +url="https://pypi.python.org/pypi/pelican/" +arch="noarch" +license="AGPL-3.0" +depends="py3-blinker py3-dateutil py3-docutils py3-feedgenerator py3-jinja2 + py3-pygments py3-setuptools py3-six py3-tz py3-unidecode" +source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" +builddir="$srcdir"/$_pkgname-$pkgver + +replaces="pelican" # Backwards compatibility +provides="pelican=$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" +} + +sha512sums="bb378ac5103d402e7955a7852c190ff7faece12b1f48c5583552ad64e47e06af886267da8d54be6123ee5ba0231f8fff4a3ef5130a45e95d9a8f907a20ec9851 pelican-3.7.1.tar.gz" diff --git a/testing/pelican/use-django-feedgenerator.patch b/testing/py3-pelican/use-django-feedgenerator.patch index 9cd80d2ad5..9cd80d2ad5 100644 --- a/testing/pelican/use-django-feedgenerator.patch +++ b/testing/py3-pelican/use-django-feedgenerator.patch |