[arch-commits] Commit in docutils/repos/community-any (4 files)

Frederik Schwan freswa at archlinux.org
Wed Oct 7 14:00:26 UTC 2020


    Date: Wednesday, October 7, 2020 @ 14:00:26
  Author: freswa
Revision: 720605

archrelease: copy trunk to community-any

Added:
  docutils/repos/community-any/PKGBUILD
    (from rev 720604, docutils/trunk/PKGBUILD)
  docutils/repos/community-any/python2-docutils.install
    (from rev 720604, docutils/trunk/python2-docutils.install)
Deleted:
  docutils/repos/community-any/PKGBUILD
  docutils/repos/community-any/python2-docutils.install

--------------------------+
 PKGBUILD                 |  154 ++++++++++++++++++++++-----------------------
 python2-docutils.install |   18 ++---
 2 files changed, 86 insertions(+), 86 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-10-07 14:00:22 UTC (rev 720604)
+++ PKGBUILD	2020-10-07 14:00:26 UTC (rev 720605)
@@ -1,77 +0,0 @@
-# Maintainer: Sébastien Luttringer
-# Contributor : Ionut Biru <ibiru at archlinux.org>
-# Contributor: Sergej Pupykin <pupykin.s+arch at gmail.com>
-
-pkgbase=docutils
-pkgname=('python-docutils' 'python2-docutils')
-pkgver=0.16
-pkgrel=1
-pkgdesc='Set of tools for processing plaintext docs into formats such as HTML, XML, or LaTeX'
-arch=('any')
-url='http://docutils.sourceforge.net'
-license=('custom')
-makedepends=('python' 'python2')
-source=("http://downloads.sourceforge.net/$pkgbase/$pkgbase-$pkgver.tar.gz")
-sha512sums=('1a4e1bdedc79388e73dd438ae6d4d2ba67a005c745613452e027c0f6b378058b528f3329d650454fc0d3dd5253a1eb95dc52b35846cbfb4d8618d9bd4c3ad934')
-
-build() {
-  cd $pkgbase-$pkgver
-  msg2 python3
-  python3 setup.py build --build-lib=build/python
-  find build/python -type f -exec \
-    sed -i '1s,^#! \?/usr/bin/\(env \|\)python$,#!/usr/bin/python3,' {} \;
-  msg2 python2
-  python2 setup.py build --build-lib=build/python2
-  find build/python2 -type f -exec \
-    sed -i '1s,^#! \?/usr/bin/\(env \|\)python$,#!/usr/bin/python2,' {} \;
-}
-
-check() {
-  cd $pkgbase-$pkgver
-  # we need utf locale to valid utf8 tests
-  export LANG=en_US.UTF-8
-  # Disable python3 check
-  #msg2 'python checks'
-  #PYTHONPATH="$PWD/build/python/" python3 test3/alltests.py
-  msg2 'python2 checks'
-  PYTHONPATH="$PWD/build/python2/" python2 test/alltests.py
-}
-
-package_python-docutils() {
-  depends=('python')
-
-  cd $pkgbase-$pkgver
-  python setup.py build --build-lib=build/python \
-                  install --root="$pkgdir" --optimize=1
-  # symlink without .py
-  for f in "$pkgdir"/usr/bin/*.py; do
-      ln -s "$(basename $f)" "$pkgdir/usr/bin/$(basename $f .py)"
-  done
-  # setup license
-  install -D -m644 COPYING.txt "$pkgdir/usr/share/licenses/$pkgname/COPYING.txt"
-  install -D -m644 licenses/python* "$pkgdir/usr/share/licenses/$pkgname/"
-}
-
-package_python2-docutils() {
-  depends=('python2')
-  provides=("docutils=$pkgver")
-  replaces=('docutils')
-  install=python2-docutils.install
-
-  cd $pkgbase-$pkgver
-  python2 setup.py build --build-lib=build/python2 \
-                   install --root="$pkgdir" --optimize=1
-  # fix python-docutils conflict
-  for _f in "$pkgdir"/usr/bin/*.py; do
-      mv -v "$_f" "${_f%.py}2.py"
-  done
-  # symlink without .py
-  for _f in "$pkgdir"/usr/bin/*.py; do
-      ln -s "$(basename $_f)" "$pkgdir/usr/bin/$(basename $_f .py)"
-  done
-  # setup license
-  install -D -m644 COPYING.txt "$pkgdir/usr/share/licenses/$pkgname/COPYING.txt"
-  install -D -m644 licenses/python* "$pkgdir/usr/share/licenses/$pkgname/"
-}
-
-# vim:set ts=2 sw=2 et:

Copied: docutils/repos/community-any/PKGBUILD (from rev 720604, docutils/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-10-07 14:00:26 UTC (rev 720605)
@@ -0,0 +1,77 @@
+# Maintainer: Sébastien Luttringer
+# Contributor : Ionut Biru <ibiru at archlinux.org>
+# Contributor: Sergej Pupykin <pupykin.s+arch at gmail.com>
+
+pkgbase=docutils
+pkgname=('python-docutils' 'python2-docutils')
+pkgver=0.16
+pkgrel=2
+pkgdesc='Set of tools for processing plaintext docs into formats such as HTML, XML, or LaTeX'
+arch=('any')
+url='http://docutils.sourceforge.net'
+license=('custom')
+makedepends=('python' 'python2')
+source=("https://downloads.sourceforge.net/$pkgbase/$pkgbase-$pkgver.tar.gz")
+sha512sums=('1a4e1bdedc79388e73dd438ae6d4d2ba67a005c745613452e027c0f6b378058b528f3329d650454fc0d3dd5253a1eb95dc52b35846cbfb4d8618d9bd4c3ad934')
+
+build() {
+  cd $pkgbase-$pkgver
+  msg2 python3
+  python3 setup.py build --build-lib=build/python
+  find build/python -type f -exec \
+    sed -i '1s,^#! \?/usr/bin/\(env \|\)python$,#!/usr/bin/python3,' {} \;
+  msg2 python2
+  python2 setup.py build --build-lib=build/python2
+  find build/python2 -type f -exec \
+    sed -i '1s,^#! \?/usr/bin/\(env \|\)python$,#!/usr/bin/python2,' {} \;
+}
+
+check() {
+  cd $pkgbase-$pkgver
+  # we need utf locale to valid utf8 tests
+  export LANG=en_US.UTF-8
+  # Disable python3 check
+  #msg2 'python checks'
+  #PYTHONPATH="$PWD/build/python/" python3 test3/alltests.py
+  msg2 'python2 checks'
+  PYTHONPATH="$PWD/build/python2/" python2 test/alltests.py
+}
+
+package_python-docutils() {
+  depends=('python')
+
+  cd $pkgbase-$pkgver
+  python setup.py build --build-lib=build/python \
+                  install --root="$pkgdir" --optimize=1
+  # symlink without .py
+  for f in "$pkgdir"/usr/bin/*.py; do
+      ln -s "$(basename $f)" "$pkgdir/usr/bin/$(basename $f .py)"
+  done
+  # setup license
+  install -D -m644 COPYING.txt "$pkgdir/usr/share/licenses/$pkgname/COPYING.txt"
+  install -D -m644 licenses/python* "$pkgdir/usr/share/licenses/$pkgname/"
+}
+
+package_python2-docutils() {
+  depends=('python2')
+  provides=("docutils=$pkgver")
+  replaces=('docutils')
+  install=python2-docutils.install
+
+  cd $pkgbase-$pkgver
+  python2 setup.py build --build-lib=build/python2 \
+                   install --root="$pkgdir" --optimize=1
+  # fix python-docutils conflict
+  for _f in "$pkgdir"/usr/bin/*.py; do
+      mv -v "$_f" "${_f%.py}2.py"
+  done
+  # symlink without .py
+  for _f in "$pkgdir"/usr/bin/*.py; do
+      ln -s "$(basename $_f)" "$pkgdir/usr/bin/$(basename $_f .py)"
+  done
+  # setup license
+  install -D -m644 COPYING.txt "$pkgdir/usr/share/licenses/$pkgname/COPYING.txt"
+  install -D -m644 licenses/python* "$pkgdir/usr/share/licenses/$pkgname/"
+}
+
+# vim:set ts=2 sw=2 et:

Deleted: python2-docutils.install
===================================================================
--- python2-docutils.install	2020-10-07 14:00:22 UTC (rev 720604)
+++ python2-docutils.install	2020-10-07 14:00:26 UTC (rev 720605)
@@ -1,9 +0,0 @@
-post_upgrade() {
-  [ $(vercmp '0.8.1-2' "$2") -gt 0 ] && cat <<EOF || :
-python2-docutils:
-rst* binaries have been renamed to rst*2 to avoid conflict with python-docutils
-remember to update your scripts
-EOF
-}
-
-# vim:set ts=2 sw=2 ft=sh et:

Copied: docutils/repos/community-any/python2-docutils.install (from rev 720604, docutils/trunk/python2-docutils.install)
===================================================================
--- python2-docutils.install	                        (rev 0)
+++ python2-docutils.install	2020-10-07 14:00:26 UTC (rev 720605)
@@ -0,0 +1,9 @@
+post_upgrade() {
+  [ $(vercmp '0.8.1-2' "$2") -gt 0 ] && cat <<EOF || :
+python2-docutils:
+rst* binaries have been renamed to rst*2 to avoid conflict with python-docutils
+remember to update your scripts
+EOF
+}
+
+# vim:set ts=2 sw=2 ft=sh et:


More information about the arch-commits mailing list