new package: add initial package 'ratpoison' as an windowmanager

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2010-07-11 16:16:00 +02:00
parent affd695b5e
commit e86c0a2c25
7 changed files with 138 additions and 0 deletions

View File

@ -0,0 +1,31 @@
#!/bin/sh
. config/options
$SCRIPTS/build toolchain
$SCRIPTS/build libXft
$SCRIPTS/build libICE
$SCRIPTS/build libX11
$SCRIPTS/build libXext
$SCRIPTS/build libXtst
$SCRIPTS/build libXinerama
LDFLAGS="$LDFLAGS -fwhole-program"
cd $PKG_BUILD
$AUTORECONF
./configure --host=$TARGET_NAME \
--build=$HOST_NAME \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--x-includes=$SYSROOT_PREFIX/usr/include \
--x-libraries=$SYSROOT_PREFIX/usr/lib \
--disable-debug \
--disable-history \
--with-xterm=rxvt \
--with-xft \
--with-x
make

View File

@ -0,0 +1,4 @@
startup_message off
set wingravity static
set transgravity static
set maxsizegravity static

View File

@ -0,0 +1,36 @@
#!/bin/sh
################################################################################
# Copyright (C) 2009-2010 OpenELEC.tv
# http://www.openelec.tv
#
# This Program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# This Program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with OpenELEC.tv; see the file COPYING. If not, write to
# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
# http://www.gnu.org/copyleft/gpl.html
################################################################################
# starting windowmanager
#
# runlevels: openelec
. /etc/profile
progress "starting Windowmanager"
# waiting for Xorg to start
wait_for_xorg
# starting ratpoison
DISPLAY=:0.0 ratpoison > /dev/null 2>&1 &

View File

@ -0,0 +1,19 @@
#!/bin/sh
. config/options
$SCRIPTS/install libXft
#$SCRIPTS/install libICE
$SCRIPTS/install libX11
$SCRIPTS/install libXext
$SCRIPTS/install libXtst
$SCRIPTS/install libXinerama
$SCRIPTS/install liberation-fonts
PKG_DIR=`find $PACKAGES -type d -name $1`
mkdir -p $INSTALL/usr/bin
cp $PKG_BUILD/src/ratpoison $INSTALL/usr/bin
mkdir -p $INSTALL/etc
cp $PKG_DIR/config/ratpoisonrc $INSTALL/etc

View File

@ -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

View File

@ -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;
}
}

View File

@ -0,0 +1 @@
http://mirror.lihnidos.org/GNU/savannah/ratpoison/ratpoison-1.4.5.tar.gz