summaryrefslogtreecommitdiff
path: root/pcr/python-renpy
diff options
context:
space:
mode:
Diffstat (limited to 'pcr/python-renpy')
-rw-r--r--pcr/python-renpy/ChangeLog32
-rw-r--r--pcr/python-renpy/PKGBUILD41
-rw-r--r--pcr/python-renpy/python2.diff8
-rw-r--r--pcr/python-renpy/renpy.diff20
4 files changed, 101 insertions, 0 deletions
diff --git a/pcr/python-renpy/ChangeLog b/pcr/python-renpy/ChangeLog
new file mode 100644
index 000000000..0a357d3db
--- /dev/null
+++ b/pcr/python-renpy/ChangeLog
@@ -0,0 +1,32 @@
+2012-28-07 AlexanderR <alexanderr at gmx dot com>
+
+ * 6.14.1-1 :
+ new upstream release.
+ added renpy.diff.
+
+2012-22-07 AlexanderR <alexanderr at gmx dot com>
+
+ * 6.13.12-3 :
+ fixed build with latest ffmpeg at cost of sound.
+
+2012-26-04 AlexanderR <alexanderr at gmx dot com>
+
+ * 6.13.12-2 :
+ moved python-pygame from makedepends to depends.
+
+2012-20-04 AlexanderR <alexanderr at gmx dot com>
+
+ * 6.13.12-1 :
+ new upstream release.
+
+2012-07-04 AlexanderR <alexanderr at gmx dot com>
+
+ * 6.13.11-1 :
+ new upstream release.
+ moved python-pygame dependency form renpy to python-renpy.
+
+2011-22-03 AlexanderR <alexanderr at gmx dot com>
+
+ * 16.13.9-2 :
+ added ChangeLog.
+ fixed corrupted images, caused by gcc optimization.
diff --git a/pcr/python-renpy/PKGBUILD b/pcr/python-renpy/PKGBUILD
new file mode 100644
index 000000000..f7c16e9b9
--- /dev/null
+++ b/pcr/python-renpy/PKGBUILD
@@ -0,0 +1,41 @@
+# Maintainer: AlexanderR <rvacheva at nxt dot ru>
+# Contributor: zhn <zhangn1985 AT gmail com>
+# Maintainer (Parabola): André Silva <emulatorman@lavabit.com>
+
+pkgname=python-renpy
+pkgver=6.14.1
+pkgrel=2
+pkgdesc="Platform-dependant Ren'Py libraries."
+arch=('i686' 'x86_64' 'mips64el')
+license=('MIT')
+url='http://www.renpy.org/'
+depends=('ffmpeg' 'fribidi' 'glew' 'python2-pygame' 'mesa')
+options=(!buildflags)
+conflicts=("renpy<$pkgver" 'renpy64' 'renpy-bin')
+# python-argparse is part of distribution since 2.7
+makedepends=('python2>=2.7' 'cython')
+changelog=ChangeLog
+source=("http://www.renpy.org/dl/$pkgver/renpy-${pkgver}-source.tar.bz2"
+ python2.diff
+ renpy.diff)
+
+md5sums=('16814530ba9ce1f2968bb8c8c785651b'
+ '19b861f4d934bfea817c161bf3ea1142'
+ '14f789d847dbd4278a2d5d74ab551e2d')
+
+build() {
+ cd "$srcdir"/renpy-${pkgver}-source
+
+ #patch -p1 < ../python2.diff
+ patch -Rp1 < ../renpy.diff
+
+ CFLAGS=-Os python2 module/setup.py build
+}
+
+package(){
+ cd "$srcdir"/renpy-${pkgver}-source
+
+ # install python-renpy
+ CFLAGS=-Os python2 module/setup.py install --root="$pkgdir/" --prefix=/usr --optimize=1
+ install -D -m644 'LICENSE.txt' "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
diff --git a/pcr/python-renpy/python2.diff b/pcr/python-renpy/python2.diff
new file mode 100644
index 000000000..c1e68d87e
--- /dev/null
+++ b/pcr/python-renpy/python2.diff
@@ -0,0 +1,8 @@
+--- a/module/setup.py.orig 2011-09-06 07:50:08.000000000 +0800
++++ b/module/setup.py 2011-09-16 18:38:42.187110252 +0800
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python
++#!/usr/bin/env python2
+
+ import platform
+ import sys
diff --git a/pcr/python-renpy/renpy.diff b/pcr/python-renpy/renpy.diff
new file mode 100644
index 000000000..89a6b8c05
--- /dev/null
+++ b/pcr/python-renpy/renpy.diff
@@ -0,0 +1,20 @@
+diff -aur renpy-6.14.1-source.new/module/ffdecode.c renpy-6.14.1-source/module/ffdecode.c
+--- renpy-6.14.1-source.new/module/ffdecode.c 2012-08-28 16:49:27.217523406 +1100
++++ renpy-6.14.1-source/module/ffdecode.c 2012-08-26 15:28:30.000000000 +1100
+@@ -1152,6 +1152,7 @@
+ AVFormatContext *ic;
+ int err, i, ret, video_index, audio_index;
+ AVPacket pkt1, *pkt = &pkt1;
++ AVFormatParameters params, *ap = &params;
+ int codecs_locked = 0;
+
+ // url_set_interrupt_cb(decode_interrupt_cb);
+@@ -1161,6 +1162,8 @@
+ is->video_stream = -1;
+ is->audio_stream = -1;
+
++ memset(ap, 0, sizeof(*ap));
++
+ is->io_context = rwops_open(is->rwops);
+
+ codecs_locked = 1;