wok-undigest rev 318
dia: Fixed.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Fri Jun 10 08:48:35 2011 +0800 (2011-06-10) |
parents | a098db6b7585 |
children | 56e155cef698 |
files | dia/receipt dia/stuff/dia-overflow-fix.patch |
line diff
1.1 --- a/dia/receipt Thu Jun 09 15:11:46 2011 +0200 1.2 +++ b/dia/receipt Fri Jun 10 08:48:35 2011 +0800 1.3 @@ -7,7 +7,8 @@ 1.4 MAINTAINER="pascal.bellard@slitaz.org" 1.5 TARBALL="$PACKAGE-$VERSION.tar.bz2" 1.6 WEB_SITE="http://projects.gnome.org/dia/" 1.7 -WGET_URL="ftp://ftp.gnome.org/pub/gnome/sources/$PACKAGE/${VERSION%.*}/$TARBALL" 1.8 +WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION%.*}/$TARBALL" 1.9 + 1.10 DEPENDS="gtk+ libxml2 freetype fontconfig glib atk pango zlib libart_lgpl \ 1.11 libxslt popt xorg-libXdamage" 1.12 BUILD_DEPENDS="pkg-config gtk+-dev libxml2-dev freetype-dev intltool \ 1.13 @@ -19,10 +20,13 @@ 1.14 compile_rules() 1.15 { 1.16 cd $src 1.17 - ./configure --prefix=/usr --infodir=/usr/share/info \ 1.18 - --with-python --mandir=/usr/share/man $CONFIGURE_ARGS && 1.19 + patch -Np1 -i $stuff/dia-overflow-fix.patch 1.20 + ./configure --with-python \ 1.21 + --disable-gnome \ 1.22 + $CONFIGURE_ARGS && 1.23 + sed -i 's#SUBDIRS = lib objects plug-ins shapes app bindings samples po sheets data doc tests installer#SUBDIRS = lib objects plug-ins shapes app bindings samples po sheets data tests installer#' Makefile && 1.24 make -j 4 && 1.25 - make DESTDIR=$PWD/_pkg install 1.26 + make DESTDIR=$DESTDIR install 1.27 } 1.28 1.29 # Rules to gen a SliTaz package suitable for Tazpkg.
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/dia/stuff/dia-overflow-fix.patch Fri Jun 10 08:48:35 2011 +0800 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),