wok-undigest rev 326

Moved dia and nethack to wok.
author Christopher Rogers <slaxemulator@gmail.com>
date Sun Jun 12 18:02:58 2011 +0000 (2011-06-12)
parents c5170ad21e12
children d726a4af4879
files dia/receipt dia/stuff/dia-overflow-fix.patch nethack/receipt
line diff
     1.1 --- a/dia/receipt	Sun Jun 12 21:22:03 2011 +0100
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,48 +0,0 @@
     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 -
    1.15 -DEPENDS="gtk+ libxml2 freetype fontconfig glib atk pango zlib libart_lgpl \
    1.16 -libxslt popt xorg-libXdamage"
    1.17 -BUILD_DEPENDS="pkg-config gtk+-dev libxml2-dev freetype-dev intltool \
    1.18 -fontconfig-dev glib-dev atk-dev pango-dev python-pyxml zlib-dev libxslt \
    1.19 -libart_lgpl-dev libart_lgpl pygtk file libxslt-dev expat-dev python-dev"
    1.20 -TAGS="office diagram creator editor visio"
    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 --- a/dia/stuff/dia-overflow-fix.patch	Sun Jun 12 21:22:03 2011 +0100
     2.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.3 @@ -1,28 +0,0 @@
     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),
     3.1 --- a/nethack/receipt	Sun Jun 12 21:22:03 2011 +0100
     3.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.3 @@ -1,36 +0,0 @@
     3.4 -# SliTaz package receipt.
     3.5 -
     3.6 -PACKAGE="nethack"
     3.7 -VERSION="3.4.3"
     3.8 -CATEGORY="games"
     3.9 -SHORT_DESC="NetHack is a single player dungeon exploration game."
    3.10 -MAINTAINER="claudinei@slitaz.org"
    3.11 -DEPENDS="ncurses"
    3.12 -BUILD_DEPENDS="ncurses-dev bison flex"
    3.13 -TARBALL="$PACKAGE-343-src.tgz"
    3.14 -WEB_SITE="http://www.nethack.org"
    3.15 -WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
    3.16 -
    3.17 -# Rules to configure and make the package.
    3.18 -compile_rules()
    3.19 -{
    3.20 -	cd $src
    3.21 -	sh sys/unix/setup.sh x
    3.22 -	sed -i "s|\/\* #define LINUX \*\/|#define LINUX|" include/unixconf.h
    3.23 -	sed -i "s|WINTTYLIB = -ltermlib|# WINTTYLIB = -ltermlib|" src/Makefile
    3.24 -	sed -i "s|# WINTTYLIB = -lncurses|WINTTYLIB = -lncurses|" src/Makefile
    3.25 -	sed -i "s|= /usr|= $DESTDIR/usr|" Makefile	
    3.26 -	sed -i "s|= games|= root|" Makefile
    3.27 -	sed -i "s|= bin|= root|" Makefile
    3.28 -	make && make install
    3.29 -}
    3.30 -
    3.31 -# Rules to gen a SliTaz package suitable for Tazpkg.
    3.32 -genpkg_rules()
    3.33 -{
    3.34 -	mkdir -p $fs/usr/lib $fs/usr/bin
    3.35 -	cp -a $install/usr/games/nethack  $fs/usr/bin
    3.36 -	cp -a $install/usr/games/lib/nethackdir $fs/usr/lib
    3.37 -	sed -i "s|$install/usr/games|/usr|" $fs/usr/bin/nethack
    3.38 -}
    3.39 -