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

Evangelos Foutras foutrelis at archlinux.org
Wed Apr 8 16:02:13 UTC 2015


    Date: Wednesday, April 8, 2015 @ 18:02:13
  Author: foutrelis
Revision: 130929

archrelease: copy trunk to community-staging-any

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

--------------------------+
 PKGBUILD                 |   60 +++++++++++++++++++++++++++++++++++++++++++++
 python2-pygments.install |    7 +++++
 2 files changed, 67 insertions(+)

Copied: python-pygments/repos/community-staging-any/PKGBUILD (from rev 130928, python-pygments/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2015-04-08 16:02:13 UTC (rev 130929)
@@ -0,0 +1,60 @@
+# $Id$
+# Maintainer: Evangelos Foutras <evangelos at foutrelis.com>
+# Contributor: Timm Preetz <timm at preetz.us>
+
+pkgname=('python-pygments' 'python2-pygments' 'pygmentize')
+pkgver=2.0.2
+pkgrel=2
+pkgdesc="Python syntax highlighter"
+arch=('any')
+url="http://pygments.org/"
+license=('BSD')
+makedepends=('python-setuptools' 'python2-setuptools')
+options=('!emptydirs')
+source=(https://pypi.python.org/packages/source/P/Pygments/Pygments-$pkgver.tar.gz)
+sha256sums=('7320919084e6dac8f4540638a46447a3bd730fca172afc17d2c03eed22cf4f51')
+
+package_python-pygments() {
+  depends=('python-setuptools')
+
+  cd "$srcdir/Pygments-$pkgver"
+
+  python3 setup.py install --root="$pkgdir" -O1
+
+  # pygmentize is shipped in its own package
+  rm "$pkgdir/usr/bin/pygmentize"
+
+  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+package_python2-pygments() {
+  depends=('python2-setuptools')
+  install=python2-pygments.install
+
+  cd "$srcdir/Pygments-$pkgver"
+
+  python2 setup.py install --root="$pkgdir" -O1
+
+  # pygmentize is shipped in its own package
+  rm "$pkgdir/usr/bin/pygmentize"
+
+  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+package_pygmentize() {
+  depends=('python-pygments')
+
+  cd "$srcdir/Pygments-$pkgver"
+
+  python3 setup.py install --root="$pkgdir" -O1
+
+  # Remove all files except for usr/bin/pygmentize
+  find "$pkgdir" -type f -not -name pygmentize -delete
+
+  install -Dm644 external/pygments.bashcomp \
+    "$pkgdir/usr/share/bash-completion/completions/pygmentize"
+
+  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+# vim:set ts=2 sw=2 et:

Copied: python-pygments/repos/community-staging-any/python2-pygments.install (from rev 130928, python-pygments/trunk/python2-pygments.install)
===================================================================
--- community-staging-any/python2-pygments.install	                        (rev 0)
+++ community-staging-any/python2-pygments.install	2015-04-08 16:02:13 UTC (rev 130929)
@@ -0,0 +1,7 @@
+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