[arch-commits] Commit in python-pygments/trunk (PKGBUILD)

Evangelos Foutras foutrelis at archlinux.org
Mon Mar 9 04:39:34 UTC 2020


    Date: Monday, March 9, 2020 @ 04:39:33
  Author: foutrelis
Revision: 592740

upgpkg: python-pygments 2.6.1-1: New upstream release (drops Python 2).

Modified:
  python-pygments/trunk/PKGBUILD

----------+
 PKGBUILD |   51 +++++++++------------------------------------------
 1 file changed, 9 insertions(+), 42 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-03-09 04:22:43 UTC (rev 592739)
+++ PKGBUILD	2020-03-09 04:39:33 UTC (rev 592740)
@@ -1,62 +1,29 @@
 # Maintainer: Evangelos Foutras <evangelos at foutrelis.com>
 # Contributor: Timm Preetz <timm at preetz.us>
 
-pkgname=('python-pygments' 'python2-pygments' 'pygmentize')
-pkgver=2.5.2
+pkgname=python-pygments
+pkgver=2.6.1
 pkgrel=1
 pkgdesc="Python syntax highlighter"
 arch=('any')
 url="http://pygments.org/"
 license=('BSD')
-makedepends=('python-setuptools' 'python2-setuptools')
-options=('!emptydirs')
+depends=('python-setuptools')
+provides=('pygmentize')
+conflicts=('pygmentize')
+replaces=('pygmentize')
 source=(https://pypi.org/packages/source/P/Pygments/Pygments-$pkgver.tar.gz)
-sha256sums=('98c8aa5a9f778fcd1026a17361ddaf7330d1b7c62ae97c3bb0ae73e0b9b6b0fe')
+sha256sums=('647344a061c249a3b74e230c739f434d7ea4d8b1d5f3721bc0f3558049b38f44')
 
-package_python-pygments() {
+package() {
   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
-
-  # Drop version dependency from console script
-  sed -i "s/Pygments==$pkgver/Pygments/g" "$pkgdir/usr/bin/pygmentize"
-
   install -Dm644 external/pygments.bashcomp \
     "$pkgdir/usr/share/bash-completion/completions/pygmentize"
-
-  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+  install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
 }
 
 # vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list