wok-undigest rev 145
Add: blackbox
author | Alexander Medvedev <devl547@gmail.com> |
---|---|
date | Sun May 30 04:24:51 2010 +0000 (2010-05-30) |
parents | d9115e382eaa |
children | a2742ad41f0f |
files | blackbox/files/blackbox-0.70.1-gcc-4.3.patch blackbox/receipt |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/blackbox/files/blackbox-0.70.1-gcc-4.3.patch Sun May 30 04:24:51 2010 +0000 1.3 @@ -0,0 +1,106 @@ 1.4 +diff -Naupr blackbox-0.70.1.orig/lib/Image.cc blackbox-0.70.1/lib/Image.cc 1.5 +--- blackbox-0.70.1.orig/lib/Image.cc 2005-04-08 17:41:09.000000000 +0200 1.6 ++++ blackbox-0.70.1/lib/Image.cc 2008-02-24 08:31:28.000000000 +0100 1.7 +@@ -42,8 +42,9 @@ 1.8 + 1.9 + #include <assert.h> 1.10 + #include <math.h> 1.11 +-#include <stdio.h> 1.12 +-#include <stdlib.h> 1.13 ++#include <cstdio> 1.14 ++#include <cstdlib> 1.15 ++#include <cstring> 1.16 + 1.17 + // #define COLORTABLE_DEBUG 1.18 + // #define MITSHM_DEBUG 1.19 +diff -Naupr blackbox-0.70.1.orig/lib/Resource.cc blackbox-0.70.1/lib/Resource.cc 1.20 +--- blackbox-0.70.1.orig/lib/Resource.cc 2005-04-06 23:16:50.000000000 +0200 1.21 ++++ blackbox-0.70.1/lib/Resource.cc 2008-02-24 08:33:11.000000000 +0100 1.22 +@@ -28,7 +28,8 @@ 1.23 + #include <X11/Xlib.h> 1.24 + #include <X11/Xresource.h> 1.25 + 1.26 +-#include <stdio.h> 1.27 ++#include <cstdio> 1.28 ++#include <cstring> 1.29 + 1.30 + 1.31 + bt::Resource::Resource(void) 1.32 +diff -Naupr blackbox-0.70.1.orig/lib/XDG.cc blackbox-0.70.1/lib/XDG.cc 1.33 +--- blackbox-0.70.1.orig/lib/XDG.cc 2005-04-06 16:04:38.000000000 +0200 1.34 ++++ blackbox-0.70.1/lib/XDG.cc 2008-02-24 08:34:11.000000000 +0100 1.35 +@@ -25,7 +25,8 @@ 1.36 + #include "Util.hh" 1.37 + #include "XDG.hh" 1.38 + 1.39 +-#include <stdlib.h> 1.40 ++#include <cstdlib> 1.41 ++#include <algorithm> 1.42 + 1.43 + 1.44 + // make sure directory names end with a slash 1.45 +diff -Naupr blackbox-0.70.1.orig/src/BlackboxResource.cc blackbox-0.70.1/src/BlackboxResource.cc 1.46 +--- blackbox-0.70.1.orig/src/BlackboxResource.cc 2005-10-18 09:34:46.000000000 +0200 1.47 ++++ blackbox-0.70.1/src/BlackboxResource.cc 2008-02-24 08:34:49.000000000 +0100 1.48 +@@ -33,6 +33,8 @@ 1.49 + #include <X11/Xutil.h> 1.50 + #include <X11/cursorfont.h> 1.51 + 1.52 ++#include <cstring> 1.53 ++ 1.54 + 1.55 + BlackboxResource::BlackboxResource(const std::string& rc): rc_file(rc) { 1.56 + screen_resources = 0; 1.57 +diff -Naupr blackbox-0.70.1.orig/src/main.cc blackbox-0.70.1/src/main.cc 1.58 +--- blackbox-0.70.1.orig/src/main.cc 2005-01-03 10:42:57.000000000 +0100 1.59 ++++ blackbox-0.70.1/src/main.cc 2008-02-24 08:37:16.000000000 +0100 1.60 +@@ -34,7 +34,8 @@ 1.61 + #include "blackbox.hh" 1.62 + #include "../version.h" 1.63 + 1.64 +-#include <stdio.h> 1.65 ++#include <cstdio> 1.66 ++#include <cstring> 1.67 + 1.68 + 1.69 + static void showHelp(int exitval) { 1.70 +diff -Naupr blackbox-0.70.1.orig/src/Screen.cc blackbox-0.70.1/src/Screen.cc 1.71 +--- blackbox-0.70.1.orig/src/Screen.cc 2005-10-18 10:07:22.000000000 +0200 1.72 ++++ blackbox-0.70.1/src/Screen.cc 2008-02-24 08:35:46.000000000 +0100 1.73 +@@ -45,8 +45,9 @@ 1.74 + #include <sys/types.h> 1.75 + #include <sys/stat.h> 1.76 + #include <assert.h> 1.77 +-#include <ctype.h> 1.78 + #include <dirent.h> 1.79 ++#include <cctype> 1.80 ++#include <cstring> 1.81 + 1.82 + 1.83 + static bool running = true; 1.84 +diff -Naupr blackbox-0.70.1.orig/src/ScreenResource.cc blackbox-0.70.1/src/ScreenResource.cc 1.85 +--- blackbox-0.70.1.orig/src/ScreenResource.cc 2005-04-13 07:54:08.000000000 +0200 1.86 ++++ blackbox-0.70.1/src/ScreenResource.cc 2008-02-24 08:36:31.000000000 +0100 1.87 +@@ -33,6 +33,8 @@ 1.88 + 1.89 + #include <assert.h> 1.90 + 1.91 ++#include <cstring> 1.92 ++ 1.93 + 1.94 + static const int iconify_width = 9; 1.95 + static const int iconify_height = 9; 1.96 +diff -Naupr blackbox-0.70.1.orig/util/bsetroot.cc blackbox-0.70.1/util/bsetroot.cc 1.97 +--- blackbox-0.70.1.orig/util/bsetroot.cc 2005-03-15 08:01:37.000000000 +0100 1.98 ++++ blackbox-0.70.1/util/bsetroot.cc 2008-02-24 08:38:41.000000000 +0100 1.99 +@@ -30,7 +30,9 @@ 1.100 + #include <cctype> 1.101 + 1.102 + #include <X11/Xatom.h> 1.103 +-#include <stdio.h> 1.104 ++#include <cstdio> 1.105 ++#include <cstdlib> 1.106 ++#include <cstring> 1.107 + 1.108 + 1.109 + // ignore all X errors
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/blackbox/receipt Sun May 30 04:24:51 2010 +0000 2.3 @@ -0,0 +1,33 @@ 2.4 +# SliTaz package receipt. 2.5 + 2.6 +PACKAGE="blackbox" 2.7 +VERSION="0.70.1" 2.8 +CATEGORY="x-window" 2.9 +SHORT_DESC="A small, fast, full-featured window manager for X" 2.10 +MAINTAINER="devl547@gmail.com" 2.11 +TARBALL="$PACKAGE-$VERSION.tar.bz2" 2.12 +WEB_SITE="http://blackboxwm.sourceforge.net/" 2.13 +WGET_URL="$SF_MIRROR/blackboxwm/$TARBALL" 2.14 +BUILD_DEPENDS="xorg-libXt-dev xorg-libXft-dev" 2.15 +DEPENDS="xorg-libXt xorg-libXft sed xorg-xextproto" 2.16 + 2.17 +# Rules to configure and make the package. 2.18 +compile_rules() 2.19 +{ 2.20 + cd $src 2.21 + ./configure --prefix=/usr --sysconfdir=/etc \ 2.22 + --libexecdir=/usr/bin --mandir=/usr/share/man \ 2.23 + $CONFIGURE_ARGS && 2.24 + patch -p1 < ../files/blackbox-0.70.1-gcc-4.3.patch 2.25 + make && 2.26 + make DESTDIR=$PWD/_pkg install 2.27 +} 2.28 + 2.29 +# Rules to gen a SliTaz package suitable for Tazpkg. 2.30 +genpkg_rules() 2.31 +{ 2.32 + mkdir -p $fs/usr/share 2.33 + cp -a $_pkg/usr/bin $fs/usr 2.34 + cp -a $_pkg/usr/share/blackbox $fs/usr/share 2.35 +} 2.36 +