summaryrefslogtreecommitdiff
path: root/community/diacanvas
diff options
context:
space:
mode:
Diffstat (limited to 'community/diacanvas')
-rw-r--r--community/diacanvas/ChangeLog3
-rw-r--r--community/diacanvas/PKGBUILD25
-rw-r--r--community/diacanvas/override-fix.patch59
3 files changed, 87 insertions, 0 deletions
diff --git a/community/diacanvas/ChangeLog b/community/diacanvas/ChangeLog
new file mode 100644
index 000000000..914eb7af0
--- /dev/null
+++ b/community/diacanvas/ChangeLog
@@ -0,0 +1,3 @@
+2007-06-27 tardo <tardo@nagi-fanboi.net>
+* Built for x86_64
+* Added override fix patch
diff --git a/community/diacanvas/PKGBUILD b/community/diacanvas/PKGBUILD
new file mode 100644
index 000000000..06b34d4e1
--- /dev/null
+++ b/community/diacanvas/PKGBUILD
@@ -0,0 +1,25 @@
+# $Id: PKGBUILD 29281 2010-10-12 16:17:20Z foutrelis $
+# Contributor: Andrea Scarpino <bash.lnx@gmail.com>
+# Contributor: William Rea <sillywilly@gmail.com>
+
+pkgname=diacanvas
+pkgver=0.15.4
+pkgrel=6
+pkgdesc="Library for drawing diagrams"
+arch=('i686' 'x86_64')
+url="http://sourceforge.net/projects/diacanvas"
+license=('LGPL')
+depends=('libgnomecanvas' 'libgnomeprint' 'gnome-python')
+makedepends=('libgnomeprintui')
+options=('!libtool')
+source=(http://downloads.sourceforge.net/$pkgname/${pkgname}2_$pkgver.tar.gz
+ 'override-fix.patch')
+md5sums=('2fc8a3447eb92636a7c73e240431e00a' '02c2f6cb7e1dfa43555eb1f5ce0fd0cd')
+
+build() {
+ cd "$srcdir/${pkgname}2-$pkgver"
+ patch -Np1 -i ../override-fix.patch
+ ./configure --prefix=/usr --enable-python=yes
+ make
+ make DESTDIR="$pkgdir" install
+}
diff --git a/community/diacanvas/override-fix.patch b/community/diacanvas/override-fix.patch
new file mode 100644
index 000000000..afb0810b9
--- /dev/null
+++ b/community/diacanvas/override-fix.patch
@@ -0,0 +1,59 @@
+diff -Naur diacanvas2-0.14.4.orig/python/diacanvas.override diacanvas2-0.14.4.new/python/diacanvas.override
+--- diacanvas2-0.14.4.orig/python/diacanvas.override 2004-10-26 03:54:46.000000000 -0400
++++ diacanvas2-0.14.4.new/python/diacanvas.override 2007-06-27 13:13:31.000000000 -0400
+@@ -182,55 +182,6 @@
+ return create_canvas_item (self, args, kwargs, DIA_TYPE_CANVAS_TEXT);
+ }
+ %%
+-override dia_canvas_item_new kwargs
+-static int
+-_wrap_dia_canvas_item_new (PyGObject *self, PyObject *args, PyObject *kwargs)
+-{
+- return create_canvas_item (self, args, kwargs, DIA_TYPE_CANVAS_ITEM);
+-}
+-%%
+-override dia_canvas_group_new kwargs
+-static int
+-_wrap_dia_canvas_group_new (PyGObject *self, PyObject *args, PyObject *kwargs)
+-{
+- return create_canvas_item (self, args, kwargs, DIA_TYPE_CANVAS_GROUP);
+-}
+-%%
+-override dia_canvas_element_new kwargs
+-static int
+-_wrap_dia_canvas_element_new (PyGObject *self, PyObject *args, PyObject *kwargs)
+-{
+- return create_canvas_item (self, args, kwargs, DIA_TYPE_CANVAS_ELEMENT);
+-}
+-%%
+-override dia_canvas_line_new kwargs
+-static int
+-_wrap_dia_canvas_line_new (PyGObject *self, PyObject *args, PyObject *kwargs)
+-{
+- return create_canvas_item (self, args, kwargs, DIA_TYPE_CANVAS_LINE);
+-}
+-%%
+-override dia_canvas_box_new kwargs
+-static int
+-_wrap_dia_canvas_box_new (PyGObject *self, PyObject *args, PyObject *kwargs)
+-{
+- return create_canvas_item (self, args, kwargs, DIA_TYPE_CANVAS_BOX);
+-}
+-%%
+-override dia_canvas_image_new kwargs
+-static int
+-_wrap_dia_canvas_image_new (PyGObject *self, PyObject *args, PyObject *kwargs)
+-{
+- return create_canvas_item (self, args, kwargs, DIA_TYPE_CANVAS_IMAGE);
+-}
+-%%
+-override dia_canvas_text_new kwargs
+-static int
+-_wrap_dia_canvas_text_new (PyGObject *self, PyObject *args, PyObject *kwargs)
+-{
+- return create_canvas_item (self, args, kwargs, DIA_TYPE_CANVAS_TEXT);
+-}
+-%%
+ override dia_canvas_get_pango_layout noargs
+ static PyObject *
+ _wrap_dia_canvas_get_pango_layout(PyGObject *self)