# HG changeset patch # User Christopher Rogers # Date 1307901778 0 # Node ID 0c864ec3fdbbc5490f3ce5949cd10e5fe90b548d # Parent c5170ad21e127d7ae11144b2118d58ef72791ba4 Moved dia and nethack to wok. diff -r c5170ad21e12 -r 0c864ec3fdbb dia/receipt --- a/dia/receipt Sun Jun 12 21:22:03 2011 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,48 +0,0 @@ -# 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" - -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" -TAGS="office diagram creator editor visio" - -# 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 c5170ad21e12 -r 0c864ec3fdbb dia/stuff/dia-overflow-fix.patch --- a/dia/stuff/dia-overflow-fix.patch Sun Jun 12 21:22:03 2011 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,28 +0,0 @@ -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), diff -r c5170ad21e12 -r 0c864ec3fdbb nethack/receipt --- a/nethack/receipt Sun Jun 12 21:22:03 2011 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,36 +0,0 @@ -# SliTaz package receipt. - -PACKAGE="nethack" -VERSION="3.4.3" -CATEGORY="games" -SHORT_DESC="NetHack is a single player dungeon exploration game." -MAINTAINER="claudinei@slitaz.org" -DEPENDS="ncurses" -BUILD_DEPENDS="ncurses-dev bison flex" -TARBALL="$PACKAGE-343-src.tgz" -WEB_SITE="http://www.nethack.org" -WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" - -# Rules to configure and make the package. -compile_rules() -{ - cd $src - sh sys/unix/setup.sh x - sed -i "s|\/\* #define LINUX \*\/|#define LINUX|" include/unixconf.h - sed -i "s|WINTTYLIB = -ltermlib|# WINTTYLIB = -ltermlib|" src/Makefile - sed -i "s|# WINTTYLIB = -lncurses|WINTTYLIB = -lncurses|" src/Makefile - sed -i "s|= /usr|= $DESTDIR/usr|" Makefile - sed -i "s|= games|= root|" Makefile - sed -i "s|= bin|= root|" Makefile - make && make install -} - -# Rules to gen a SliTaz package suitable for Tazpkg. -genpkg_rules() -{ - mkdir -p $fs/usr/lib $fs/usr/bin - cp -a $install/usr/games/nethack $fs/usr/bin - cp -a $install/usr/games/lib/nethackdir $fs/usr/lib - sed -i "s|$install/usr/games|/usr|" $fs/usr/bin/nethack -} -