wok rev 10852
Add dia back in.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Sun Jun 12 17:57:21 2011 +0000 (2011-06-12) |
parents | 9cb1952ef61d |
children | 170c0f7957a7 |
files | dia/receipt dia/stuff/dia-overflow-fix.patch |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/dia/receipt Sun Jun 12 17:57:21 2011 +0000 1.3 @@ -0,0 +1,48 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="dia" 1.7 +VERSION="0.97.1" 1.8 +CATEGORY="office" 1.9 +SHORT_DESC="GTK+ based diagram creation program." 1.10 +MAINTAINER="pascal.bellard@slitaz.org" 1.11 +TARBALL="$PACKAGE-$VERSION.tar.bz2" 1.12 +WEB_SITE="http://projects.gnome.org/dia/" 1.13 +WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION%.*}/$TARBALL" 1.14 +TAGS="office diagram creator editor visio" 1.15 + 1.16 +DEPENDS="gtk+ libxml2 freetype fontconfig glib atk pango zlib libart_lgpl \ 1.17 +libxslt popt xorg-libXdamage" 1.18 +BUILD_DEPENDS="pkg-config gtk+-dev libxml2-dev freetype-dev intltool \ 1.19 +fontconfig-dev glib-dev atk-dev pango-dev python-pyxml zlib-dev libxslt \ 1.20 +libart_lgpl-dev libart_lgpl pygtk file libxslt-dev expat-dev python-dev" 1.21 + 1.22 +# Rules to configure and make the package. 1.23 +compile_rules() 1.24 +{ 1.25 + cd $src 1.26 + patch -Np1 -i $stuff/dia-overflow-fix.patch 1.27 + ./configure --with-python \ 1.28 + --disable-gnome \ 1.29 + $CONFIGURE_ARGS && 1.30 + sed -i 's# data doc tests installer# data tests installer#' Makefile && 1.31 + make -j 4 && 1.32 + make DESTDIR=$DESTDIR install 1.33 +} 1.34 + 1.35 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.36 +genpkg_rules() 1.37 +{ 1.38 + mkdir -p $fs/usr/lib $fs/usr/share/locale 1.39 + cp -a $_pkg/usr/lib/dia $fs/usr/lib 1.40 + cp -a $_pkg/usr/share/dia $fs/usr/share 1.41 + cp -a $_pkg/usr/share/oaf $fs/usr/share 1.42 + #cp -a $_pkg/usr/share/omf $fs/usr/share 1.43 + cp -a $_pkg/usr/share/locale/de $fs/usr/share/locale 1.44 + cp -a $_pkg/usr/share/locale/fr $fs/usr/share/locale 1.45 + #cp -a $_pkg/usr/share/help $fs/usr/share 1.46 + cp -a $_pkg/usr/share/applications $fs/usr/share 1.47 + cp -a $_pkg/usr/share/mime-info $fs/usr/share 1.48 + cp -a $_pkg/usr/share/icons/hicolor/16x16/apps/dia.png $fs/usr/share/pixmaps 1.49 + cp -a $_pkg/usr/bin $fs/usr 1.50 +} 1.51 +
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/dia/stuff/dia-overflow-fix.patch Sun Jun 12 17:57:21 2011 +0000 2.3 @@ -0,0 +1,28 @@ 2.4 +diff -wbBur dia-0.97.1/plug-ins/xfig/xfig-export.c dia-0.97.1.my/plug-ins/xfig/xfig-export.c 2.5 +--- dia-0.97.1/plug-ins/xfig/xfig-export.c 2009-11-07 17:28:34.000000000 +0300 2.6 ++++ dia-0.97.1.my/plug-ins/xfig/xfig-export.c 2010-11-15 17:44:05.640896280 +0300 2.7 +@@ -417,6 +417,9 @@ 2.8 + if (text[i] > 127) { 2.9 + newlen += 3; 2.10 + } 2.11 ++ if (text[i] == '\\') { 2.12 ++ newlen += 1; 2.13 ++ } 2.14 + } 2.15 + returntext = g_malloc(sizeof(char)*(newlen+1)); 2.16 + j = 0; 2.17 +@@ -1085,10 +1088,10 @@ 2.18 + figtext = figText(renderer, (unsigned char *) text); 2.19 + /* xfig texts are specials */ 2.20 + fprintf(renderer->file, "4 %d %d %d 0 %d %s 0.0 6 0.0 0.0 %d %d %s\\001\n", 2.21 +- figAlignment(renderer, alignment), 2.22 +- figColor(renderer, color), 2.23 +- figDepth(renderer), 2.24 +- figFont(renderer), 2.25 ++ (int)figAlignment(renderer, alignment), 2.26 ++ (int)figColor(renderer, color), 2.27 ++ (int)figDepth(renderer), 2.28 ++ (int)figFont(renderer), 2.29 + xfig_dtostr(d_buf, figFontSize(renderer)), 2.30 + (int)figCoord(renderer, pos->x), 2.31 + (int)figCoord(renderer, pos->y),