# HG changeset patch # User Christopher Rogers # Date 1307901441 0 # Node ID 6e03663b3fa0307be9054293e6e7c50c758bcf6f # Parent 9cb1952ef61da72186f92cdc3b6853f7f51b84f9 Add dia back in. diff -r 9cb1952ef61d -r 6e03663b3fa0 dia/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/dia/receipt Sun Jun 12 17:57:21 2011 +0000 @@ -0,0 +1,48 @@ +# SliTaz package receipt. + +PACKAGE="dia" +VERSION="0.97.1" +CATEGORY="office" +SHORT_DESC="GTK+ based diagram creation program." +MAINTAINER="pascal.bellard@slitaz.org" +TARBALL="$PACKAGE-$VERSION.tar.bz2" +WEB_SITE="http://projects.gnome.org/dia/" +WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION%.*}/$TARBALL" +TAGS="office diagram creator editor visio" + +DEPENDS="gtk+ libxml2 freetype fontconfig glib atk pango zlib libart_lgpl \ +libxslt popt xorg-libXdamage" +BUILD_DEPENDS="pkg-config gtk+-dev libxml2-dev freetype-dev intltool \ +fontconfig-dev glib-dev atk-dev pango-dev python-pyxml zlib-dev libxslt \ +libart_lgpl-dev libart_lgpl pygtk file libxslt-dev expat-dev python-dev" + +# Rules to configure and make the package. +compile_rules() +{ + cd $src + patch -Np1 -i $stuff/dia-overflow-fix.patch + ./configure --with-python \ + --disable-gnome \ + $CONFIGURE_ARGS && + sed -i 's# data doc tests installer# data tests installer#' Makefile && + make -j 4 && + make DESTDIR=$DESTDIR install +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/lib $fs/usr/share/locale + cp -a $_pkg/usr/lib/dia $fs/usr/lib + cp -a $_pkg/usr/share/dia $fs/usr/share + cp -a $_pkg/usr/share/oaf $fs/usr/share + #cp -a $_pkg/usr/share/omf $fs/usr/share + cp -a $_pkg/usr/share/locale/de $fs/usr/share/locale + cp -a $_pkg/usr/share/locale/fr $fs/usr/share/locale + #cp -a $_pkg/usr/share/help $fs/usr/share + cp -a $_pkg/usr/share/applications $fs/usr/share + cp -a $_pkg/usr/share/mime-info $fs/usr/share + cp -a $_pkg/usr/share/icons/hicolor/16x16/apps/dia.png $fs/usr/share/pixmaps + cp -a $_pkg/usr/bin $fs/usr +} + diff -r 9cb1952ef61d -r 6e03663b3fa0 dia/stuff/dia-overflow-fix.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/dia/stuff/dia-overflow-fix.patch Sun Jun 12 17:57:21 2011 +0000 @@ -0,0 +1,28 @@ +diff -wbBur dia-0.97.1/plug-ins/xfig/xfig-export.c dia-0.97.1.my/plug-ins/xfig/xfig-export.c +--- dia-0.97.1/plug-ins/xfig/xfig-export.c 2009-11-07 17:28:34.000000000 +0300 ++++ dia-0.97.1.my/plug-ins/xfig/xfig-export.c 2010-11-15 17:44:05.640896280 +0300 +@@ -417,6 +417,9 @@ + if (text[i] > 127) { + newlen += 3; + } ++ if (text[i] == '\\') { ++ newlen += 1; ++ } + } + returntext = g_malloc(sizeof(char)*(newlen+1)); + j = 0; +@@ -1085,10 +1088,10 @@ + figtext = figText(renderer, (unsigned char *) text); + /* xfig texts are specials */ + fprintf(renderer->file, "4 %d %d %d 0 %d %s 0.0 6 0.0 0.0 %d %d %s\\001\n", +- figAlignment(renderer, alignment), +- figColor(renderer, color), +- figDepth(renderer), +- figFont(renderer), ++ (int)figAlignment(renderer, alignment), ++ (int)figColor(renderer, color), ++ (int)figDepth(renderer), ++ (int)figFont(renderer), + xfig_dtostr(d_buf, figFontSize(renderer)), + (int)figCoord(renderer, pos->x), + (int)figCoord(renderer, pos->y),