From 593cf54c6c5cd88164bfe85441a2a993a09a89e3 Mon Sep 17 00:00:00 2001
From: Britney Fransen <brfransen@gmail.com>
Date: Tue, 29 Apr 2014 23:17:15 +0000
Subject: python-pygments:initial inclusion

---
 abs/core/python_modules/python-pygments/PKGBUILD   | 56 ++++++++++++++++++++++
 .../python_modules/python-pygments/__changelog     |  1 +
 .../python-pygments/python-pygments.install        |  7 +++
 3 files changed, 64 insertions(+)
 create mode 100644 abs/core/python_modules/python-pygments/PKGBUILD
 create mode 100644 abs/core/python_modules/python-pygments/__changelog
 create mode 100644 abs/core/python_modules/python-pygments/python-pygments.install

diff --git a/abs/core/python_modules/python-pygments/PKGBUILD b/abs/core/python_modules/python-pygments/PKGBUILD
new file mode 100644
index 0000000..fa1e572
--- /dev/null
+++ b/abs/core/python_modules/python-pygments/PKGBUILD
@@ -0,0 +1,56 @@
+# $Id$
+# Maintainer: Evangelos Foutras <evangelos@foutrelis.com>
+# Contributor: Timm Preetz <timm@preetz.us>
+
+pkgname=('python2-pygments')
+pkgver=1.6
+pkgrel=3
+pkgdesc="Python syntax highlighter"
+arch=('any')
+url="http://pygments.org/"
+license=('BSD')
+makedepends=('python2-setuptools')
+options=('!emptydirs')
+source=(http://pypi.python.org/packages/source/P/Pygments/Pygments-$pkgver.tar.gz)
+sha256sums=('799ed4caf77516e54440806d8d9cd82a7607dfdf4e4fb643815171a4b5c921c0')
+
+build() {
+  cd "$srcdir"
+
+  rm -rf python{2,3}-build
+  for builddir in python2-build; do
+    cp -r Pygments-$pkgver $builddir
+    pushd $builddir
+    ${builddir%-build} setup.py build
+    popd
+  done
+}
+
+#package_python-pygments() {
+#  depends=('python-setuptools')
+#  install=python-pygments.install
+
+#  cd "$srcdir/python3-build"
+
+#  python3 setup.py install --root="$pkgdir" -O1
+
+  # pygmentize has been moved to the python2-pygments package
+#  rm "$pkgdir/usr/bin/pygmentize"
+
+#  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+#}
+
+package_python2-pygments() {
+  depends=('python2-setuptools')
+
+  cd "$srcdir/python2-build"
+
+  python2 setup.py install --root="$pkgdir" -O1
+
+  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:
diff --git a/abs/core/python_modules/python-pygments/__changelog b/abs/core/python_modules/python-pygments/__changelog
new file mode 100644
index 0000000..488d3cf
--- /dev/null
+++ b/abs/core/python_modules/python-pygments/__changelog
@@ -0,0 +1 @@
+PKGBUILD: rm py 3 stuff
diff --git a/abs/core/python_modules/python-pygments/python-pygments.install b/abs/core/python_modules/python-pygments/python-pygments.install
new file mode 100644
index 0000000..eab5811
--- /dev/null
+++ b/abs/core/python_modules/python-pygments/python-pygments.install
@@ -0,0 +1,7 @@
+post_upgrade() {
+  if (($(vercmp $2 1.4-5) < 0)); then
+    echo '/usr/bin/pygmentize has been moved to the python2-pygments package'
+  fi
+}
+
+# vim:set ts=2 sw=2 et:
-- 
cgit v0.12

