[arch-commits] Commit in python-markdown/repos/community-any (PKGBUILD PKGBUILD)

Kyle Keen kkeen at archlinux.org
Mon May 27 03:13:38 UTC 2019


    Date: Monday, May 27, 2019 @ 03:13:37
  Author: kkeen
Revision: 470868

archrelease: copy trunk to community-any

Added:
  python-markdown/repos/community-any/PKGBUILD
    (from rev 470867, python-markdown/trunk/PKGBUILD)
Deleted:
  python-markdown/repos/community-any/PKGBUILD

----------+
 PKGBUILD |  142 ++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 71 insertions(+), 71 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2019-05-27 03:13:22 UTC (rev 470867)
+++ PKGBUILD	2019-05-27 03:13:37 UTC (rev 470868)
@@ -1,71 +0,0 @@
-# Maintainer: Kyle Keen <keenerd at gmail.com>
-# Contributor: Angel Velasquez <angvp at archlinux.org>
-# Contributor: Andrew Antle <andrew dot antle at gmail dot com>
-# Contributor: Thomas Dziedzic < gostrc at gmail >
-# Contributor: Chaiwat Suttipongsakul <cwt at bashell dot com>
-
-pkgbase=python-markdown
-pkgname=('python-markdown' 'python2-markdown')
-_pkgbasename=Markdown
-pkgver=3.1.1
-pkgrel=1
-pkgdesc="Python implementation of John Gruber's Markdown."
-arch=('any')
-url='https://python-markdown.github.io/'
-license=('BSD')
-depends=('python' 'python-setuptools')
-makedepends=('python' 'python2' 'python-setuptools' 'python2-setuptools')
-checkdepends=('python-yaml' 'python2-yaml')
-source=("https://files.pythonhosted.org/packages/source/M/$_pkgbasename/$_pkgbasename-$pkgver.tar.gz")
-md5sums=('d84732ecc65b3a1bff693d9d4c24277f')
-
-prepare() {
-  # bug in 2.4, some DOS line endings slipped in
-  find "$_pkgbasename-$pkgver/" -name '*py' -exec sed -i 's|\r||g' {} +
-
-  # ImportError: No module named pkg_resources
-  sed -i 's/^from pkg_resources.*$/import packaging.version/' "$_pkgbasename-$pkgver/markdown/__init__.py"
-
-  cp -r $_pkgbasename-$pkgver "$srcdir/python2-markdown"
-  cd "$srcdir/python2-markdown"
-  find "$srcdir/python2-markdown" -name '*py' -exec sed -i 's|#!/usr/bin/env python$|&2|' {} +
-}
-
-build() {
-  cd "$srcdir/$_pkgbasename-$pkgver"
-  python setup.py build
-  cd "$srcdir/python2-markdown"
-  python2 setup.py build
-}
-
-check() {
-  cd "$srcdir/$_pkgbasename-$pkgver"
-  python -m unittest discover tests
-  cd "$srcdir/python2-markdown"
-  python2 -m unittest discover tests
-}
-
-package_python-markdown() {
-  depends=('python')
-  cd "$srcdir/$_pkgbasename-$pkgver"
-  python3 setup.py install --root="$pkgdir" --optimize=0
-  install -Dm644 LICENSE.md "$pkgdir/usr/share/licenses/python-markdown/LICENSE"
-}
-
-package_python2-markdown() {
-  depends=('python2' 'python2-setuptools')
-  cd "$srcdir/python2-markdown"
-  python2 setup.py install --root="$pkgdir" --optimize=0
-  mv "$pkgdir/usr/bin/markdown_py" "$pkgdir/usr/bin/markdown_py2"
-  install -Dm644 LICENSE.md "$pkgdir/usr/share/licenses/python2-markdown/LICENSE"
-}
-
-check_python-markdown() {
-  [[ $(python -c "import markdown; print(markdown.version)") == "$pkgver" ]]
-  [[ $(python -c "import markdown; print(markdown.markdown('*test*'))") == "<p><em>test</em></p>" ]]
-}
-
-check_python2-markdown() {
-  [[ $(python2 -c "import markdown; print(markdown.version)") == "$pkgver" ]]
-  [[ $(python2 -c "import markdown; print(markdown.markdown('*test*'))") == "<p><em>test</em></p>" ]]
-}

Copied: python-markdown/repos/community-any/PKGBUILD (from rev 470867, python-markdown/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2019-05-27 03:13:37 UTC (rev 470868)
@@ -0,0 +1,71 @@
+# Maintainer: Kyle Keen <keenerd at gmail.com>
+# Contributor: Angel Velasquez <angvp at archlinux.org>
+# Contributor: Andrew Antle <andrew dot antle at gmail dot com>
+# Contributor: Thomas Dziedzic < gostrc at gmail >
+# Contributor: Chaiwat Suttipongsakul <cwt at bashell dot com>
+
+pkgbase=python-markdown
+pkgname=('python-markdown' 'python2-markdown')
+_pkgbasename=Markdown
+pkgver=3.1.1
+pkgrel=2
+pkgdesc="Python implementation of John Gruber's Markdown."
+arch=('any')
+url='https://python-markdown.github.io/'
+license=('BSD')
+depends=('python' 'python-setuptools')
+makedepends=('python' 'python2' 'python-setuptools' 'python2-setuptools')
+checkdepends=('python-yaml' 'python2-yaml')
+source=("https://files.pythonhosted.org/packages/source/M/$_pkgbasename/$_pkgbasename-$pkgver.tar.gz")
+md5sums=('d84732ecc65b3a1bff693d9d4c24277f')
+
+prepare() {
+  # bug in 2.4, some DOS line endings slipped in
+  find "$_pkgbasename-$pkgver/" -name '*py' -exec sed -i 's|\r||g' {} +
+
+  # ImportError: No module named pkg_resources
+  sed -i 's/^from pkg_resources.*$/import packaging.version/' "$_pkgbasename-$pkgver/markdown/__init__.py"
+
+  cp -r $_pkgbasename-$pkgver "$srcdir/python2-markdown"
+  cd "$srcdir/python2-markdown"
+  find "$srcdir/python2-markdown" -name '*py' -exec sed -i 's|#!/usr/bin/env python$|&2|' {} +
+}
+
+build() {
+  cd "$srcdir/$_pkgbasename-$pkgver"
+  python setup.py build
+  cd "$srcdir/python2-markdown"
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir/$_pkgbasename-$pkgver"
+  python -m unittest discover tests
+  cd "$srcdir/python2-markdown"
+  python2 -m unittest discover tests
+}
+
+package_python-markdown() {
+  depends=('python' 'python-setuptools')
+  cd "$srcdir/$_pkgbasename-$pkgver"
+  python3 setup.py install --root="$pkgdir" --optimize=0
+  install -Dm644 LICENSE.md "$pkgdir/usr/share/licenses/python-markdown/LICENSE"
+}
+
+package_python2-markdown() {
+  depends=('python2' 'python2-setuptools')
+  cd "$srcdir/python2-markdown"
+  python2 setup.py install --root="$pkgdir" --optimize=0
+  mv "$pkgdir/usr/bin/markdown_py" "$pkgdir/usr/bin/markdown_py2"
+  install -Dm644 LICENSE.md "$pkgdir/usr/share/licenses/python2-markdown/LICENSE"
+}
+
+check_python-markdown() {
+  [[ $(python -c "import markdown; print(markdown.version)") == "$pkgver" ]]
+  [[ $(python -c "import markdown; print(markdown.markdown('*test*'))") == "<p><em>test</em></p>" ]]
+}
+
+check_python2-markdown() {
+  [[ $(python2 -c "import markdown; print(markdown.version)") == "$pkgver" ]]
+  [[ $(python2 -c "import markdown; print(markdown.markdown('*test*'))") == "<p><em>test</em></p>" ]]
+}



More information about the arch-commits mailing list