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

Jelle van der Waa jelle at nymeria.archlinux.org
Fri Sep 20 10:09:09 UTC 2013


    Date: Friday, September 20, 2013 @ 12:09:09
  Author: jelle
Revision: 97447

archrelease: copy trunk to community-staging-any

Added:
  impressive/repos/community-staging-any/
  impressive/repos/community-staging-any/PKGBUILD
    (from rev 97446, impressive/trunk/PKGBUILD)
  impressive/repos/community-staging-any/replace-python-imaging.patch
    (from rev 97446, impressive/trunk/replace-python-imaging.patch)

------------------------------+
 PKGBUILD                     |   46 +++++++++++++++++++++++++++++++++++++++++
 replace-python-imaging.patch |   12 ++++++++++
 2 files changed, 58 insertions(+)

Copied: impressive/repos/community-staging-any/PKGBUILD (from rev 97446, impressive/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2013-09-20 10:09:09 UTC (rev 97447)
@@ -0,0 +1,46 @@
+# $Id$
+# Maintainer: Jaroslav Lichtblau <dragonlord at aur.archlinux.org>
+# Contributor: Geoffroy Carrier <gcarrier at aur.archlinux.org>
+# Contributor: G_Syme <demichan(at)mail(dot)upb(dot)de>
+# Contributor: Daniel J Griffiths <ghost1227 at archlinux.us>
+
+pkgname=impressive
+pkgver=0.10.3
+pkgrel=7
+pkgdesc='A fancy PDF presentation program (previously known as KeyJNote).'
+arch=('any')
+url='http://impressive.sourceforge.net'
+license=('GPL2')
+depends=('python2-pygame' 'python2-opengl' 'python2-pillow' 'ghostscript')
+optdepends=('xdg-utils: for starting web or e-mail hyperlinks from PDF documents'
+            'mplayer: for sound and video playback')
+provides=('keyjnote=0.10.3')
+conflicts=('keyjnote')
+replaces=('keyjnote')
+source=(http://downloads.sourceforge.net/${pkgname}/Impressive-${pkgver}.tar.gz
+        replace-python-imaging.patch)
+md5sums=('1fefb25db71ee322a59353de85ae00b4'
+         '73c6d0125ab5532b1b2892844a805e06')
+
+build() {
+  cd "${srcdir}/Impressive-${pkgver}"
+
+  # replace Import Image with from PIL import Image
+  patch -Np1 -i ${srcdir}/replace-python-imaging.patch
+
+# python2 fix
+  for file in $(find . -name '*.py' -print); do
+      sed -i 's_#!.*/usr/bin/python_#!/usr/bin/python2_' $file
+      sed -i 's_#!.*/usr/bin/env.*python_#!/usr/bin/env python2_' $file
+  done
+}
+
+package() {
+  cd "${srcdir}/Impressive-${pkgver}"
+
+  install -d -m755 "${pkgdir}"/usr/{bin,share/{doc/${pkgname},man/man1}}
+  install -m755 ${pkgname}.py "${pkgdir}/usr/bin/${pkgname}"
+  ln -s ${pkgname} "${pkgdir}/usr/bin/keyjnote"
+  install -m644 ${pkgname}.html demo.pdf changelog.txt "${pkgdir}/usr/share/doc/${pkgname}/"
+  install -m644 ${pkgname}.1 "${pkgdir}/usr/share/man/man1/"
+}

Copied: impressive/repos/community-staging-any/replace-python-imaging.patch (from rev 97446, impressive/trunk/replace-python-imaging.patch)
===================================================================
--- community-staging-any/replace-python-imaging.patch	                        (rev 0)
+++ community-staging-any/replace-python-imaging.patch	2013-09-20 10:09:09 UTC (rev 97447)
@@ -0,0 +1,12 @@
+diff -aur Impressive-0.10.3/impressive.py Impressive-0.10.3.new/impressive.py
+--- Impressive-0.10.3/impressive.py	2013-09-20 09:34:16.477993905 +0000
++++ Impressive-0.10.3.new/impressive.py	2013-09-20 09:33:59.468099703 +0000
+@@ -182,7 +182,7 @@
+     from OpenGL.GL import *
+     import pygame
+     from pygame.locals import *
+-    import Image, ImageDraw, ImageFont, ImageFilter
++    from PIL import Image, ImageDraw, ImageFont, ImageFilter
+     import TiffImagePlugin, BmpImagePlugin, JpegImagePlugin, PngImagePlugin, PpmImagePlugin
+ except (ValueError, ImportError), err:
+     print >>sys.stderr, "Oops! Cannot load necessary modules:", err




More information about the arch-commits mailing list