You are not logged in.
This works for me...I needed this canvas library to run Gaphor, a UML 2.0 compliant drawing tool for use cases.
# $Id: PKGBUILD,v 1.8 2004/07/04 13:22:41 vince Exp $
# Maintainer: vince <vschum1@towson.edu>
pkgname=diacanvas2
pkgver=0.13.0
pkgrel=1
pkgdesc="DiaCanvas2, providing you with a full featured diagramming canvas."
depends=('gtk2' 'libgnomecanvas')
url=http://diacanvas.sourceforge.net
#backup=()
source=(http://aleron.dl.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz
diacanvas-fix.patch)
md5sums=('014b44002ee7a6962da50782cb3fb10b'
'2a9856124df1305955e340c32ce41676')
#install=()
build() {
cd $startdir/src/$pkgname-$pkgver
# This patches for gcc 3.4 (__VERSION__ now treated as a variable)
#patch -Np1 -i $startdir/diacanvas-fix.patch
./configure --prefix=/usr
make || return 1
make prefix=/usr DESTDIR=$startdir/pkg install
#make prefix=$startdir/pkg/usr install
}
You will also need this small patch "diacanvas-fix.patch", don't _FORGET_ to uncomment the patch statement in the above PKGBUILD if you have gcc 3.4.
--- diacanvas2-0.13.0/diacanvas/dia-export-print.orig 2004-07-08 16:54:50.000000000 -0400
+++ diacanvas2-0.13.0/diacanvas/dia-export-print.c 2004-07-08 16:55:27.000000000 -0400
@@ -310,10 +310,10 @@
print_image ((DiaShapeImage *)shape, context);
break;
case DIA_SHAPE_WIDGET:
- g_message (__FUNCTION__": Widget not yet implemented.");
+ g_message ("%s : Widget not yet implemented.", __FUNCTION__);
break;
case DIA_SHAPE_CLIP:
- g_message (__FUNCTION__": Clip not yet implemented.");
+ g_message ("%s : Clip not yet implemented.", __FUNCTION__);
break;
default:
g_message ("Shape with type %d is not (yet) implemented", shape->type);
--- diacanvas2-0.13.0/demos/dia-textbox.orig 2004-07-08 17:07:21.000000000 -0400
+++ diacanvas2-0.13.0/demos/dia-textbox.c 2004-07-08 17:08:01.000000000 -0400
@@ -140,7 +140,7 @@
textbox->text = dia_canvas_item_create (DIA_TYPE_CANVAS_TEXT, NULL);
dia_canvas_item_set_child_of (textbox->text, DIA_CANVAS_ITEM (textbox));
- g_message (__FUNCTION__": %p %p %p %p %p", textbox, textbox->text, textbox->text->parent, DIA_CANVAS_ITEM (textbox)->canvas, textbox->text->canvas);
+ g_message ("%s : %p %p %p %p %p", textbox, textbox->text, textbox->text->parent, DIA_CANVAS_ITEM (textbox)->canvas, textbox->text->canvas, __FUNCTION__);
}
static void
That should do it..
.: lytez :.
Offline