[arch-commits] Commit in python-pygments/repos/community-any (3 files)

Evangelos Foutras foutrelis at archlinux.org
Mon Mar 9 06:16:05 UTC 2020


    Date: Monday, March 9, 2020 @ 06:16:04
  Author: foutrelis
Revision: 592748

archrelease: copy trunk to community-any

Added:
  python-pygments/repos/community-any/PKGBUILD
    (from rev 592747, python-pygments/trunk/PKGBUILD)
Deleted:
  python-pygments/repos/community-any/PKGBUILD
  python-pygments/repos/community-any/python2-pygments.install

--------------------------+
 PKGBUILD                 |   72 ++++++++++++++++++++++++++-------------------
 python2-pygments.install |    7 ----
 2 files changed, 43 insertions(+), 36 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-03-09 06:16:00 UTC (rev 592747)
+++ PKGBUILD	2020-03-09 06:16:04 UTC (rev 592748)
@@ -1,29 +0,0 @@
-# Maintainer: Evangelos Foutras <evangelos at foutrelis.com>
-# Contributor: Timm Preetz <timm at preetz.us>
-
-pkgname=python-pygments
-pkgver=2.6.1
-pkgrel=1
-pkgdesc="Python syntax highlighter"
-arch=('any')
-url="http://pygments.org/"
-license=('BSD')
-depends=('python-setuptools')
-provides=('pygmentize')
-conflicts=('pygmentize')
-replaces=('pygmentize')
-source=(https://pypi.org/packages/source/P/Pygments/Pygments-$pkgver.tar.gz)
-sha256sums=('647344a061c249a3b74e230c739f434d7ea4d8b1d5f3721bc0f3558049b38f44')
-
-package() {
-  depends=('python-setuptools')
-
-  cd "$srcdir/Pygments-$pkgver"
-
-  python3 setup.py install --root="$pkgdir" -O1
-  install -Dm644 external/pygments.bashcomp \
-    "$pkgdir/usr/share/bash-completion/completions/pygmentize"
-  install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
-}
-
-# vim:set ts=2 sw=2 et:

Copied: python-pygments/repos/community-any/PKGBUILD (from rev 592747, python-pygments/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-03-09 06:16:04 UTC (rev 592748)
@@ -0,0 +1,43 @@
+# Maintainer: Evangelos Foutras <evangelos at foutrelis.com>
+# Contributor: Timm Preetz <timm at preetz.us>
+
+pkgname=python-pygments
+pkgver=2.6.1
+pkgrel=2
+pkgdesc="Python syntax highlighter"
+arch=('any')
+url="https://pygments.org/"
+license=('BSD')
+depends=('python-setuptools')
+makedepends=('python-sphinx')
+checkdepends=('python-pytest')
+provides=('pygmentize')
+conflicts=('pygmentize')
+replaces=('pygmentize')
+source=(https://pypi.org/packages/source/P/Pygments/Pygments-$pkgver.tar.gz)
+sha256sums=('647344a061c249a3b74e230c739f434d7ea4d8b1d5f3721bc0f3558049b38f44')
+
+build() {
+  cd "$srcdir/Pygments-$pkgver"
+  make -C doc html
+}
+
+check() {
+  cd "$srcdir/Pygments-$pkgver"
+  pytest
+}
+
+package() {
+  cd "$srcdir/Pygments-$pkgver"
+
+  python3 setup.py install --root="$pkgdir" -O1
+  install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
+
+  mkdir -p "$pkgdir/usr/share/doc"
+  cp -rT doc/_build/html "$pkgdir/usr/share/doc/$pkgname"
+  install -Dm644 doc/pygmentize.1 -t "$pkgdir/usr/share/man/man1"
+  install -Dm644 external/pygments.bashcomp \
+    "$pkgdir/usr/share/bash-completion/completions/pygmentize"
+}
+
+# vim:set ts=2 sw=2 et:

Deleted: python2-pygments.install
===================================================================
--- python2-pygments.install	2020-03-09 06:16:00 UTC (rev 592747)
+++ python2-pygments.install	2020-03-09 06:16:04 UTC (rev 592748)
@@ -1,7 +0,0 @@
-post_upgrade() {
-  if (($(vercmp $2 2.0.2-2) < 0)); then
-    echo ':: /usr/bin/pygmentize has been moved to the pygmentize package'
-  fi
-}
-
-# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list