From 62610a5ddaecf3d3320d2f48e451e0cce75b1935 Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Mon, 8 Feb 2010 21:33:53 +0100 Subject: [PATCH] new package: - add initial build of ratpoison window manager --- packages/x11/other/ratpoison/build | 24 +++++++++++++ .../x11/other/ratpoison/init.d/65_ratpoison | 15 ++++++++ packages/x11/other/ratpoison/install | 14 ++++++++ .../patches/ratpoison-1.4.5-getline.diff | 12 +++++++ .../ratpoison-1.4.5-staticgravity.diff | 35 +++++++++++++++++++ packages/x11/other/ratpoison/url | 1 + 6 files changed, 101 insertions(+) create mode 100755 packages/x11/other/ratpoison/build create mode 100755 packages/x11/other/ratpoison/init.d/65_ratpoison create mode 100755 packages/x11/other/ratpoison/install create mode 100644 packages/x11/other/ratpoison/patches/ratpoison-1.4.5-getline.diff create mode 100644 packages/x11/other/ratpoison/patches/ratpoison-1.4.5-staticgravity.diff create mode 100644 packages/x11/other/ratpoison/url diff --git a/packages/x11/other/ratpoison/build b/packages/x11/other/ratpoison/build new file mode 100755 index 0000000000..b8a45785af --- /dev/null +++ b/packages/x11/other/ratpoison/build @@ -0,0 +1,24 @@ +#!/bin/sh + +. config/options + +$SCRIPTS/build toolchain +$SCRIPTS/build libX11 +$SCRIPTS/build libXft + +cd $PKG_BUILD +autoreconf +./configure --host=$TARGET_NAME \ + --build=$HOST_NAME \ + --prefix=/usr \ + --sysconfdir=/etc \ + --disable-static \ + --enable-shared \ + --disable-debug \ + --disable-history \ + --with-xterm=rxvt \ + --with-xft \ + --with-x + +make + diff --git a/packages/x11/other/ratpoison/init.d/65_ratpoison b/packages/x11/other/ratpoison/init.d/65_ratpoison new file mode 100755 index 0000000000..6f306f7d40 --- /dev/null +++ b/packages/x11/other/ratpoison/init.d/65_ratpoison @@ -0,0 +1,15 @@ +# Start ratpoison windowmanager +# +# If enabled, then start the window manageer. +# The evilwm window manager should be enabled on systems that plan to use +# games in order to enable the game emulators to get focus and exit. +# +# runlevels: openelec, text, debug + +( + wait_for_xorg + + progress "starting Ratpoison" + + /usr/bin/ratpoison > /dev/null 2>&1 +)& \ No newline at end of file diff --git a/packages/x11/other/ratpoison/install b/packages/x11/other/ratpoison/install new file mode 100755 index 0000000000..e217df1d01 --- /dev/null +++ b/packages/x11/other/ratpoison/install @@ -0,0 +1,14 @@ +#!/bin/sh + +. config/options +$SCRIPTS/install libX11 +$SCRIPTS/install libXft +$SCRIPTS/install liberation-fonts + +PKG_DIR=`find $PACKAGES -type d -name $1` + +mkdir -p $INSTALL/usr/bin + cp -PR $PKG_BUILD/src/$1 $INSTALL/usr/bin + +# other usefull packages +$SCRIPTS/install xwd \ No newline at end of file diff --git a/packages/x11/other/ratpoison/patches/ratpoison-1.4.5-getline.diff b/packages/x11/other/ratpoison/patches/ratpoison-1.4.5-getline.diff new file mode 100644 index 0000000000..95fcab638d --- /dev/null +++ b/packages/x11/other/ratpoison/patches/ratpoison-1.4.5-getline.diff @@ -0,0 +1,12 @@ +diff -Naur ratpoison-1.4.5-old/configure.in ratpoison-1.4.5-new/configure.in +--- ratpoison-1.4.5-old/configure.in 2009-07-12 14:01:04.000000000 -0700 ++++ ratpoison-1.4.5-new/configure.in 2009-07-14 19:56:24.000000000 -0700 +@@ -146,7 +146,7 @@ + dnl Checks for typedefs, structures, and compiler characteristics. + + dnl Checks for library functions. +-AC_CHECK_FUNCS(getopt getopt_long setsid setpgid setpgrp putenv vsnprintf usleep) ++AC_CHECK_FUNCS(getline getopt getopt_long setsid setpgid setpgrp putenv vsnprintf usleep) + + AC_TYPE_SIGNAL + diff --git a/packages/x11/other/ratpoison/patches/ratpoison-1.4.5-staticgravity.diff b/packages/x11/other/ratpoison/patches/ratpoison-1.4.5-staticgravity.diff new file mode 100644 index 0000000000..642fe0e262 --- /dev/null +++ b/packages/x11/other/ratpoison/patches/ratpoison-1.4.5-staticgravity.diff @@ -0,0 +1,35 @@ +diff -Naur ratpoison-1.4.5-old/src/actions.c ratpoison-1.4.5-new/src/actions.c +--- ratpoison-1.4.5-old/src/actions.c 2009-07-14 19:56:16.000000000 -0700 ++++ ratpoison-1.4.5-new/src/actions.c 2009-07-14 19:56:56.000000000 -0700 +@@ -1882,6 +1882,8 @@ + { + int ret = -1; + ++ if (!strcasecmp (data, "static") || !strcasecmp (data, "static") || !strcmp (data, "10")) ++ ret = StaticGravity; + if (!strcasecmp (data, "northwest") || !strcasecmp (data, "nw") || !strcmp (data, "7")) + ret = NorthWestGravity; + if (!strcasecmp (data, "north") || !strcasecmp (data, "n") || !strcmp (data, "8")) +diff -Naur ratpoison-1.4.5-old/src/manage.c ratpoison-1.4.5-new/src/manage.c +--- ratpoison-1.4.5-old/src/manage.c 2009-07-14 19:56:16.000000000 -0700 ++++ ratpoison-1.4.5-new/src/manage.c 2009-07-14 19:56:56.000000000 -0700 +@@ -541,6 +541,9 @@ + case SouthEastGravity: + win->x = frame->x + frame->width - win->width - win->border; + break; ++ case StaticGravity: ++ win->x = frame->x + win->x; ++ break; + } + + /* Y coord. */ +@@ -561,6 +564,9 @@ + case SouthWestGravity: + win->y = frame->y + frame->height - win->height - win->border; + break; ++ case StaticGravity: ++ win->y = frame->y + win->y; ++ break; + } + } + diff --git a/packages/x11/other/ratpoison/url b/packages/x11/other/ratpoison/url new file mode 100644 index 0000000000..4b787fa3ef --- /dev/null +++ b/packages/x11/other/ratpoison/url @@ -0,0 +1 @@ +http://download.savannah.nongnu.org/releases/ratpoison/ratpoison-1.4.5.tar.gz \ No newline at end of file