Bug 116656 - New port: x11-wm/awesome A tiling window manager initialy based on a dwm code rewriting
Summary: New port: x11-wm/awesome A tiling window manager initialy based on a dwm code...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Martin Wilke
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-26 10:30 UTC by ntarmos
Modified: 2007-09-28 01:00 UTC (History)
0 users

See Also:


Attachments
awesome.shar (4.04 KB, text/plain)
2007-09-26 10:30 UTC, ntarmos
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description ntarmos 2007-09-26 10:30:02 UTC
awesome is a tiling window manager initialy based on a dwm code
rewriting. It's extremely fast, small, dynamic and awesome.

Windows can be managed in several layouts: tiled and floating. Each
layout can be applied on the fly, optimizing the environment for the
application in use and the task performed.

Managing windows in tiled mode assures that no space will be waste on
your screen. No gaps, no overlap.


WWW: http://www.suckless.org/wiki/dwm
Comment 1 ntarmos 2007-09-26 12:15:42 UTC
The attached shar adds two extra patches (namely, mouse warping and
float lowering) backported from dwm.suckless.org. Please use the
attached shar instead of the previous one, or I could wait for the port
to be added and then file a pr with the additions.

\n\n

--- awesome.shar begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	awesome
#	awesome/distinfo
#	awesome/files
#	awesome/files/patch-config.mk
#	awesome/files/extrapatch-lowerfloat
#	awesome/files/extrapatch-warp
#	awesome/Makefile
#	awesome/pkg-descr
#
echo c - awesome
mkdir -p awesome > /dev/null 2>&1
echo x - awesome/distinfo
sed 's/^X//' >awesome/distinfo << 'END-of-awesome/distinfo'
XMD5 (awesome-1.1.tar.gz) = 6a9a5c256b51699a6606b3a0d6e7eb08
XSHA256 (awesome-1.1.tar.gz) = e799fe5d44ae4d8b3a735aac3d41170f31e7537bb6df7ab07750a50c2496e012
XSIZE (awesome-1.1.tar.gz) = 36864
END-of-awesome/distinfo
echo c - awesome/files
mkdir -p awesome/files > /dev/null 2>&1
echo x - awesome/files/patch-config.mk
sed 's/^X//' >awesome/files/patch-config.mk << 'END-of-awesome/files/patch-config.mk'
X--- config.mk.orig	2007-09-26 11:41:29.000000000 +0300
X+++ config.mk	2007-09-26 11:42:35.000000000 +0300
X@@ -7,19 +7,19 @@
X LAYOUTS = layouts/tile.c layouts/floating.c
X 
X # paths
X-PREFIX = /usr/local
X-MANPREFIX = ${PREFIX}/share/man
X+PREFIX?= /usr/local
X+MANPREFIX = ${PREFIX}/man
X 
X-X11INC = /usr/include/X11
X-X11LIB = /usr/lib/X11
X+X11INC = ${X11BASE}/include
X+X11LIB = ${X11BASE}/lib
X 
X # includes and libs
X INCS = -I. -I/usr/include -I${X11INC} `pkg-config --cflags libconfig`
X LIBS = -L/usr/lib -lc -L${X11LIB} -lX11 `pkg-config --libs libconfig` -lXext -lXrandr -lXinerama
X 
X # flags
X-CFLAGS = -fgnu89-inline -std=gnu99 -ggdb3 -pipe -Wall -Wextra -W -Wchar-subscripts -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wsign-compare -Wunused -Wuninitialized -Winit-self -Wpointer-arith -Wredundant-decls -Wno-format-zero-length -Wmissing-prototypes -Wmissing-format-attribute -Wmissing-noreturn -O3 ${INCS} -DVERSION=\"${VERSION}\"
X-LDFLAGS = -ggdb3 ${LIBS}
X+CFLAGS+= -fgnu89-inline -std=gnu99 -ggdb3 -pipe -Wall -Wextra -W -Wchar-subscripts -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wsign-compare -Wunused -Wuninitialized -Winit-self -Wpointer-arith -Wredundant-decls -Wno-format-zero-length -Wmissing-prototypes -Wmissing-format-attribute -Wmissing-noreturn -O3 ${INCS} -DVERSION=\"${VERSION}\"
X+LDFLAGS+= -ggdb3 ${LIBS}
X 
X # compiler and linker
X-CC = cc
X+CC?= cc
END-of-awesome/files/patch-config.mk
echo x - awesome/files/extrapatch-lowerfloat
sed 's/^X//' >awesome/files/extrapatch-lowerfloat << 'END-of-awesome/files/extrapatch-lowerfloat'
X--- layout.c.orig	2007-09-26 13:18:33.000000000 +0300
X+++ layout.c	2007-09-26 13:18:59.000000000 +0300
X@@ -118,25 +118,7 @@
X     drawstatusbar(disp, awesomeconf->screen, drawcontext, awesomeconf);
X     if(!sel)
X         return;
X-    if(sel->isfloating || IS_ARRANGE(floating))
X-        XRaiseWindow(disp, sel->win);
X-    if(!IS_ARRANGE(floating))
X-    {
X-        wc.stack_mode = Below;
X-        wc.sibling = awesomeconf->statusbar.window;
X-        if(!sel->isfloating)
X-        {
X-            XConfigureWindow(disp, sel->win, CWSibling | CWStackMode, &wc);
X-            wc.sibling = sel->win;
X-        }
X-        for(c = clients; c; c = c->next)
X-        {
X-            if(!IS_TILED(c, awesomeconf->screen, awesomeconf->selected_tags, awesomeconf->ntags) || c == sel)
X-                continue;
X-            XConfigureWindow(disp, c->win, CWSibling | CWStackMode, &wc);
X-            wc.sibling = c->win;
X-        }
X-    }
X+	 XRaiseWindow(disp, sel->win);
X     XSync(disp, False);
X     while(XCheckMaskEvent(disp, EnterWindowMask, &ev));
X }
END-of-awesome/files/extrapatch-lowerfloat
echo x - awesome/files/extrapatch-warp
sed 's/^X//' >awesome/files/extrapatch-warp << 'END-of-awesome/files/extrapatch-warp'
X--- layout.c.orig	2007-09-26 13:18:33.000000000 +0300
X+++ layout.c	2007-09-26 13:20:48.000000000 +0300
X@@ -114,6 +114,22 @@
X     Client *c;
X     XEvent ev;
X     XWindowChanges wc;
X+	 Window dummy, root;
X+	 int wex, wey, ex, ey, i, dummyscno;
X+	 unsigned int dmask;
X+
X+	 if(sel) {
X+		 ScreenInfo *si = get_screen_info(disp, awesomeconf->screen, awesomeconf->statusbar, &dummyscno);
X+		 root = RootWindow(disp, awesomeconf->screen);
X+		 XQueryPointer(disp, sel->win, &dummy, &dummy, &i, &i, &wex, &wey, &dmask);
X+		 XTranslateCoordinates(disp, sel->win, root, wex, wey, &ex, &ey, &dummy);
X+		 /* I'm so sorry for this... Shame on me... */
X+		 if(ex > si[awesomeconf->screen].x_org && ex < si[awesomeconf->screen].width && ey > si[awesomeconf->screen].y_org && ey < si[awesomeconf->screen].height) {
X+			 XSelectInput(disp, root, SubstructureRedirectMask & EnterWindowMask);
X+			 XWarpPointer(disp, None, sel->win, 0, 0, 0, 0, sel->w / 2, sel->h / 2);
X+			 XSelectInput(disp, root, SubstructureRedirectMask);
X+		 }
X+	 }
X 
X     drawstatusbar(disp, awesomeconf->screen, drawcontext, awesomeconf);
X     if(!sel)
END-of-awesome/files/extrapatch-warp
echo x - awesome/Makefile
sed 's/^X//' >awesome/Makefile << 'END-of-awesome/Makefile'
X# New ports collection makefile for:   awesome
X# Date created:                September 26, 2007
X# Whom:                        Nikos Ntarmos <ntarmos@ceid.upatras.gr>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	awesome
XPORTVERSION=	1.1
XCATEGORIES=	x11-wm
XMASTER_SITES=	http://awesome.naquadah.org/download/
X
XMAINTAINER=	ntarmos@ceid.upatras.gr
XCOMMENT=	A tiling window manager initialy based on a dwm code rewriting
X
XLIB_DEPENDS=	config.4:${PORTSDIR}/devel/libconfig
X
XUSE_XLIB=	yes
X
XMAN1=		awesome.1
XPLIST_FILES=	bin/awesome
XPORTDOCS=	AUTHORS LICENSE README
XPORTEXAMPLES=	awesomerc
X
XOPTIONS=	LWRFLT "Support lowering of floating windows" on \
X		WARP "Support mouse warping" on
X
X.include <bsd.port.pre.mk>
X
X.if defined(WITH_LWRFLT)
XEXTRA_PATCHES+= ${FILESDIR}/extrapatch-lowerfloat
X.endif
X
X.if defined(WITH_WARP)
XEXTRA_PATCHES+= ${FILESDIR}/extrapatch-warp
X.endif
X
Xpost-install:
X.if !defined(NOPORTDOCS)
X	@${ECHO_MSG} "installing additional documentation to ${DOCSDIR}"
X	@${MKDIR} ${DOCSDIR}
X	@${INSTALL_MAN} ${WRKSRC}/AUTHORS ${DOCSDIR}
X	@${INSTALL_MAN} ${WRKSRC}/LICENSE ${DOCSDIR}
X	@${INSTALL_MAN} ${WRKSRC}/README ${DOCSDIR}
X.endif
X.if !defined(NOPORTEXAMPLES)
X	@${ECHO_MSG} "installing example config file to ${EXAMPLESDIR}"
X	@${MKDIR} ${EXAMPLESDIR}
X	@${INSTALL_MAN} ${WRKSRC}/awesomerc ${EXAMPLESDIR}
X.endif
X
X.include <bsd.port.post.mk>
END-of-awesome/Makefile
echo x - awesome/pkg-descr
sed 's/^X//' >awesome/pkg-descr << 'END-of-awesome/pkg-descr'
Xawesome is a tiling window manager initialy based on a dwm code
Xrewriting. It's extremely fast, small, dynamic and awesome.
X
XWindows can be managed in several layouts: tiled and floating. Each
Xlayout can be applied on the fly, optimizing the environment for the
Xapplication in use and the task performed.
X
XManaging windows in tiled mode assures that no space will be waste on
Xyour screen. No gaps, no overlap.
X
X
XWWW: http://www.suckless.org/wiki/dwm
END-of-awesome/pkg-descr
exit

--- awesome.shar ends here ---
Comment 2 ntarmos 2007-09-26 15:24:10 UTC
I had incorrectly cited DWM's www url in the pkg-descr, instead of
awesome's home page. The attached shar fixes this (sorry about that).

\n\n

--- awesome.shar begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	awesome
#	awesome/distinfo
#	awesome/files
#	awesome/files/patch-config.mk
#	awesome/files/extrapatch-lowerfloat
#	awesome/files/extrapatch-warp
#	awesome/Makefile
#	awesome/pkg-descr
#
echo c - awesome
mkdir -p awesome > /dev/null 2>&1
echo x - awesome/distinfo
sed 's/^X//' >awesome/distinfo << 'END-of-awesome/distinfo'
XMD5 (awesome-1.1.tar.gz) = 6a9a5c256b51699a6606b3a0d6e7eb08
XSHA256 (awesome-1.1.tar.gz) = e799fe5d44ae4d8b3a735aac3d41170f31e7537bb6df7ab07750a50c2496e012
XSIZE (awesome-1.1.tar.gz) = 36864
END-of-awesome/distinfo
echo c - awesome/files
mkdir -p awesome/files > /dev/null 2>&1
echo x - awesome/files/patch-config.mk
sed 's/^X//' >awesome/files/patch-config.mk << 'END-of-awesome/files/patch-config.mk'
X--- config.mk.orig	2007-09-26 11:41:29.000000000 +0300
X+++ config.mk	2007-09-26 11:42:35.000000000 +0300
X@@ -7,19 +7,19 @@
X LAYOUTS = layouts/tile.c layouts/floating.c
X 
X # paths
X-PREFIX = /usr/local
X-MANPREFIX = ${PREFIX}/share/man
X+PREFIX?= /usr/local
X+MANPREFIX = ${PREFIX}/man
X 
X-X11INC = /usr/include/X11
X-X11LIB = /usr/lib/X11
X+X11INC = ${X11BASE}/include
X+X11LIB = ${X11BASE}/lib
X 
X # includes and libs
X INCS = -I. -I/usr/include -I${X11INC} `pkg-config --cflags libconfig`
X LIBS = -L/usr/lib -lc -L${X11LIB} -lX11 `pkg-config --libs libconfig` -lXext -lXrandr -lXinerama
X 
X # flags
X-CFLAGS = -fgnu89-inline -std=gnu99 -ggdb3 -pipe -Wall -Wextra -W -Wchar-subscripts -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wsign-compare -Wunused -Wuninitialized -Winit-self -Wpointer-arith -Wredundant-decls -Wno-format-zero-length -Wmissing-prototypes -Wmissing-format-attribute -Wmissing-noreturn -O3 ${INCS} -DVERSION=\"${VERSION}\"
X-LDFLAGS = -ggdb3 ${LIBS}
X+CFLAGS+= -fgnu89-inline -std=gnu99 -ggdb3 -pipe -Wall -Wextra -W -Wchar-subscripts -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wsign-compare -Wunused -Wuninitialized -Winit-self -Wpointer-arith -Wredundant-decls -Wno-format-zero-length -Wmissing-prototypes -Wmissing-format-attribute -Wmissing-noreturn -O3 ${INCS} -DVERSION=\"${VERSION}\"
X+LDFLAGS+= -ggdb3 ${LIBS}
X 
X # compiler and linker
X-CC = cc
X+CC?= cc
END-of-awesome/files/patch-config.mk
echo x - awesome/files/extrapatch-lowerfloat
sed 's/^X//' >awesome/files/extrapatch-lowerfloat << 'END-of-awesome/files/extrapatch-lowerfloat'
X--- layout.c.orig	2007-09-26 13:18:33.000000000 +0300
X+++ layout.c	2007-09-26 13:18:59.000000000 +0300
X@@ -118,25 +118,7 @@
X     drawstatusbar(disp, awesomeconf->screen, drawcontext, awesomeconf);
X     if(!sel)
X         return;
X-    if(sel->isfloating || IS_ARRANGE(floating))
X-        XRaiseWindow(disp, sel->win);
X-    if(!IS_ARRANGE(floating))
X-    {
X-        wc.stack_mode = Below;
X-        wc.sibling = awesomeconf->statusbar.window;
X-        if(!sel->isfloating)
X-        {
X-            XConfigureWindow(disp, sel->win, CWSibling | CWStackMode, &wc);
X-            wc.sibling = sel->win;
X-        }
X-        for(c = clients; c; c = c->next)
X-        {
X-            if(!IS_TILED(c, awesomeconf->screen, awesomeconf->selected_tags, awesomeconf->ntags) || c == sel)
X-                continue;
X-            XConfigureWindow(disp, c->win, CWSibling | CWStackMode, &wc);
X-            wc.sibling = c->win;
X-        }
X-    }
X+	 XRaiseWindow(disp, sel->win);
X     XSync(disp, False);
X     while(XCheckMaskEvent(disp, EnterWindowMask, &ev));
X }
END-of-awesome/files/extrapatch-lowerfloat
echo x - awesome/files/extrapatch-warp
sed 's/^X//' >awesome/files/extrapatch-warp << 'END-of-awesome/files/extrapatch-warp'
X--- layout.c.orig	2007-09-26 13:18:33.000000000 +0300
X+++ layout.c	2007-09-26 13:20:48.000000000 +0300
X@@ -114,6 +114,22 @@
X     Client *c;
X     XEvent ev;
X     XWindowChanges wc;
X+	 Window dummy, root;
X+	 int wex, wey, ex, ey, i, dummyscno;
X+	 unsigned int dmask;
X+
X+	 if(sel) {
X+		 ScreenInfo *si = get_screen_info(disp, awesomeconf->screen, awesomeconf->statusbar, &dummyscno);
X+		 root = RootWindow(disp, awesomeconf->screen);
X+		 XQueryPointer(disp, sel->win, &dummy, &dummy, &i, &i, &wex, &wey, &dmask);
X+		 XTranslateCoordinates(disp, sel->win, root, wex, wey, &ex, &ey, &dummy);
X+		 /* I'm so sorry for this... Shame on me... */
X+		 if(ex > si[awesomeconf->screen].x_org && ex < si[awesomeconf->screen].width && ey > si[awesomeconf->screen].y_org && ey < si[awesomeconf->screen].height) {
X+			 XSelectInput(disp, root, SubstructureRedirectMask & EnterWindowMask);
X+			 XWarpPointer(disp, None, sel->win, 0, 0, 0, 0, sel->w / 2, sel->h / 2);
X+			 XSelectInput(disp, root, SubstructureRedirectMask);
X+		 }
X+	 }
X 
X     drawstatusbar(disp, awesomeconf->screen, drawcontext, awesomeconf);
X     if(!sel)
END-of-awesome/files/extrapatch-warp
echo x - awesome/Makefile
sed 's/^X//' >awesome/Makefile << 'END-of-awesome/Makefile'
X# New ports collection makefile for:   awesome
X# Date created:                September 26, 2007
X# Whom:                        Nikos Ntarmos <ntarmos@ceid.upatras.gr>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	awesome
XPORTVERSION=	1.1
XCATEGORIES=	x11-wm
XMASTER_SITES=	http://awesome.naquadah.org/download/
X
XMAINTAINER=	ntarmos@ceid.upatras.gr
XCOMMENT=	A tiling window manager initialy based on a dwm code rewriting
X
XLIB_DEPENDS=	config.4:${PORTSDIR}/devel/libconfig
X
XUSE_XLIB=	yes
X
XMAN1=		awesome.1
XPLIST_FILES=	bin/awesome
XPORTDOCS=	AUTHORS LICENSE README
XPORTEXAMPLES=	awesomerc
X
XOPTIONS=	LWRFLT "Support lowering of floating windows" on \
X		WARP "Support mouse warping" on
X
X.include <bsd.port.pre.mk>
X
X.if defined(WITH_LWRFLT)
XEXTRA_PATCHES+= ${FILESDIR}/extrapatch-lowerfloat
X.endif
X
X.if defined(WITH_WARP)
XEXTRA_PATCHES+= ${FILESDIR}/extrapatch-warp
X.endif
X
Xpost-install:
X.if !defined(NOPORTDOCS)
X	@${ECHO_MSG} "installing additional documentation to ${DOCSDIR}"
X	@${MKDIR} ${DOCSDIR}
X	@${INSTALL_MAN} ${WRKSRC}/AUTHORS ${DOCSDIR}
X	@${INSTALL_MAN} ${WRKSRC}/LICENSE ${DOCSDIR}
X	@${INSTALL_MAN} ${WRKSRC}/README ${DOCSDIR}
X.endif
X.if !defined(NOPORTEXAMPLES)
X	@${ECHO_MSG} "installing example config file to ${EXAMPLESDIR}"
X	@${MKDIR} ${EXAMPLESDIR}
X	@${INSTALL_MAN} ${WRKSRC}/awesomerc ${EXAMPLESDIR}
X.endif
X
X.include <bsd.port.post.mk>
END-of-awesome/Makefile
echo x - awesome/pkg-descr
sed 's/^X//' >awesome/pkg-descr << 'END-of-awesome/pkg-descr'
Xawesome is a tiling window manager initialy based on a dwm code
Xrewriting. It's extremely fast, small, dynamic and awesome.
X
XWindows can be managed in several layouts: tiled and floating. Each
Xlayout can be applied on the fly, optimizing the environment for the
Xapplication in use and the task performed.
X
XManaging windows in tiled mode assures that no space will be waste on
Xyour screen. No gaps, no overlap.
X
X
XWWW: http://awesome.naquadah.org/
END-of-awesome/pkg-descr
exit

--- awesome.shar ends here ---
Comment 3 ntarmos 2007-09-26 15:45:10 UTC
And as I was writing these lines, version 1.2 of awesome was announced
on its homepage...

--- awesome.shar begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	awesome
#	awesome/distinfo
#	awesome/files
#	awesome/files/patch-config.mk
#	awesome/files/extrapatch-lowerfloat
#	awesome/files/extrapatch-warp
#	awesome/Makefile
#	awesome/pkg-descr
#
echo c - awesome
mkdir -p awesome > /dev/null 2>&1
echo x - awesome/distinfo
sed 's/^X//' >awesome/distinfo << 'END-of-awesome/distinfo'
XMD5 (awesome-1.2.tar.gz) = 810de61609a3fabd1ce5ec745e385c57
XSHA256 (awesome-1.2.tar.gz) = 44bce503a3c27a9afc4b4f508a5cb2930ca2ace0317f24f34ab543390402cf9d
XSIZE (awesome-1.2.tar.gz) = 39006
END-of-awesome/distinfo
echo c - awesome/files
mkdir -p awesome/files > /dev/null 2>&1
echo x - awesome/files/patch-config.mk
sed 's/^X//' >awesome/files/patch-config.mk << 'END-of-awesome/files/patch-config.mk'
X--- config.mk.orig	2007-09-26 11:41:29.000000000 +0300
X+++ config.mk	2007-09-26 11:42:35.000000000 +0300
X@@ -7,19 +7,19 @@
X LAYOUTS = layouts/tile.c layouts/floating.c
X 
X # paths
X-PREFIX = /usr/local
X-MANPREFIX = ${PREFIX}/share/man
X+PREFIX?= /usr/local
X+MANPREFIX = ${PREFIX}/man
X 
X-X11INC = /usr/include/X11
X-X11LIB = /usr/lib/X11
X+X11INC = ${X11BASE}/include
X+X11LIB = ${X11BASE}/lib
X 
X # includes and libs
X INCS = -I. -I/usr/include -I${X11INC} `pkg-config --cflags libconfig`
X LIBS = -L/usr/lib -lc -L${X11LIB} -lX11 `pkg-config --libs libconfig` -lXext -lXrandr -lXinerama
X 
X # flags
X-CFLAGS = -fgnu89-inline -std=gnu99 -ggdb3 -pipe -Wall -Wextra -W -Wchar-subscripts -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wsign-compare -Wunused -Wuninitialized -Winit-self -Wpointer-arith -Wredundant-decls -Wno-format-zero-length -Wmissing-prototypes -Wmissing-format-attribute -Wmissing-noreturn -O3 ${INCS} -DVERSION=\"${VERSION}\"
X-LDFLAGS = -ggdb3 ${LIBS}
X+CFLAGS+= -fgnu89-inline -std=gnu99 -ggdb3 -pipe -Wall -Wextra -W -Wchar-subscripts -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wsign-compare -Wunused -Wuninitialized -Winit-self -Wpointer-arith -Wredundant-decls -Wno-format-zero-length -Wmissing-prototypes -Wmissing-format-attribute -Wmissing-noreturn -O3 ${INCS} -DVERSION=\"${VERSION}\"
X+LDFLAGS+= -ggdb3 ${LIBS}
X 
X # compiler and linker
X-CC = cc
X+CC?= cc
END-of-awesome/files/patch-config.mk
echo x - awesome/files/extrapatch-lowerfloat
sed 's/^X//' >awesome/files/extrapatch-lowerfloat << 'END-of-awesome/files/extrapatch-lowerfloat'
X--- layout.c.orig	2007-09-26 12:08:27.000000000 +0300
X+++ layout.c	2007-09-26 17:41:42.000000000 +0300
X@@ -118,25 +118,7 @@
X     drawstatusbar(disp, drawcontext, awesomeconf);
X     if(!sel)
X         return;
X-    if(sel->isfloating || IS_ARRANGE(layout_floating))
X-        XRaiseWindow(disp, sel->win);
X-    if(!IS_ARRANGE(layout_floating))
X-    {
X-        wc.stack_mode = Below;
X-        wc.sibling = awesomeconf->statusbar.window;
X-        if(!sel->isfloating)
X-        {
X-            XConfigureWindow(disp, sel->win, CWSibling | CWStackMode, &wc);
X-            wc.sibling = sel->win;
X-        }
X-        for(c = clients; c; c = c->next)
X-        {
X-            if(!IS_TILED(c, awesomeconf->screen, awesomeconf->tags, awesomeconf->ntags) || c == sel)
X-                continue;
X-            XConfigureWindow(disp, c->win, CWSibling | CWStackMode, &wc);
X-            wc.sibling = c->win;
X-        }
X-    }
X+	 XRaiseWindow(disp, sel->win);
X     XSync(disp, False);
X     while(XCheckMaskEvent(disp, EnterWindowMask, &ev));
X }
END-of-awesome/files/extrapatch-lowerfloat
echo x - awesome/files/extrapatch-warp
sed 's/^X//' >awesome/files/extrapatch-warp << 'END-of-awesome/files/extrapatch-warp'
X--- layout.c.orig	2007-09-26 13:18:33.000000000 +0300
X+++ layout.c	2007-09-26 13:20:48.000000000 +0300
X@@ -114,6 +114,22 @@
X     Client *c;
X     XEvent ev;
X     XWindowChanges wc;
X+	 Window dummy, root;
X+	 int wex, wey, ex, ey, i, dummyscno;
X+	 unsigned int dmask;
X+
X+	 if(sel) {
X+		 ScreenInfo *si = get_screen_info(disp, awesomeconf->screen, awesomeconf->statusbar, &dummyscno);
X+		 root = RootWindow(disp, awesomeconf->screen);
X+		 XQueryPointer(disp, sel->win, &dummy, &dummy, &i, &i, &wex, &wey, &dmask);
X+		 XTranslateCoordinates(disp, sel->win, root, wex, wey, &ex, &ey, &dummy);
X+		 /* I'm so sorry for this... Shame on me... */
X+		 if(ex > si[awesomeconf->screen].x_org && ex < si[awesomeconf->screen].width && ey > si[awesomeconf->screen].y_org && ey < si[awesomeconf->screen].height) {
X+			 XSelectInput(disp, root, SubstructureRedirectMask & EnterWindowMask);
X+			 XWarpPointer(disp, None, sel->win, 0, 0, 0, 0, sel->w / 2, sel->h / 2);
X+			 XSelectInput(disp, root, SubstructureRedirectMask);
X+		 }
X+	 }
X 
X     drawstatusbar(disp, awesomeconf->screen, drawcontext, awesomeconf);
X     if(!sel)
END-of-awesome/files/extrapatch-warp
echo x - awesome/Makefile
sed 's/^X//' >awesome/Makefile << 'END-of-awesome/Makefile'
X# New ports collection makefile for:   awesome
X# Date created:                September 26, 2007
X# Whom:                        Nikos Ntarmos <ntarmos@ceid.upatras.gr>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	awesome
XPORTVERSION=	1.2
XCATEGORIES=	x11-wm
XMASTER_SITES=	http://awesome.naquadah.org/download/
X
XMAINTAINER=	ntarmos@ceid.upatras.gr
XCOMMENT=	A tiling window manager initialy based on a dwm code rewriting
X
XLIB_DEPENDS=	config.4:${PORTSDIR}/devel/libconfig
X
XUSE_XLIB=	yes
X
XMAN1=		awesome.1
XPLIST_FILES=	bin/awesome
XPORTDOCS=	AUTHORS LICENSE README
XPORTEXAMPLES=	awesomerc
X
XOPTIONS=	LWRFLT "Support lowering of floating windows" on \
X		WARP "Support mouse warping" on
X
X.include <bsd.port.pre.mk>
X
X.if defined(WITH_LWRFLT)
XEXTRA_PATCHES+= ${FILESDIR}/extrapatch-lowerfloat
X.endif
X
X.if defined(WITH_WARP)
XEXTRA_PATCHES+= ${FILESDIR}/extrapatch-warp
X.endif
X
Xpost-install:
X.if !defined(NOPORTDOCS)
X	@${ECHO_MSG} "installing additional documentation to ${DOCSDIR}"
X	@${MKDIR} ${DOCSDIR}
X	@${INSTALL_MAN} ${WRKSRC}/AUTHORS ${DOCSDIR}
X	@${INSTALL_MAN} ${WRKSRC}/LICENSE ${DOCSDIR}
X	@${INSTALL_MAN} ${WRKSRC}/README ${DOCSDIR}
X.endif
X.if !defined(NOPORTEXAMPLES)
X	@${ECHO_MSG} "installing example config file to ${EXAMPLESDIR}"
X	@${MKDIR} ${EXAMPLESDIR}
X	@${INSTALL_MAN} ${WRKSRC}/awesomerc ${EXAMPLESDIR}
X.endif
X
X.include <bsd.port.post.mk>
END-of-awesome/Makefile
echo x - awesome/pkg-descr
sed 's/^X//' >awesome/pkg-descr << 'END-of-awesome/pkg-descr'
Xawesome is a tiling window manager initialy based on a dwm code
Xrewriting. It's extremely fast, small, dynamic and awesome.
X
XWindows can be managed in several layouts: tiled and floating. Each
Xlayout can be applied on the fly, optimizing the environment for the
Xapplication in use and the task performed.
X
XManaging windows in tiled mode assures that no space will be waste on
Xyour screen. No gaps, no overlap.
X
X
XWWW: http://awesome.naquadah.org/
END-of-awesome/pkg-descr
exit

--- awesome.shar ends here ---
Comment 4 Martin Wilke freebsd_committer freebsd_triage 2007-09-26 18:20:33 UTC
Responsible Changed
From-To: freebsd-ports-bugs->miwi

I'll take it.
Comment 5 Martin Wilke freebsd_committer freebsd_triage 2007-09-27 21:01:42 UTC
State Changed
From-To: open->feedback

Hi, The port does not build. Can you take a look in it? 

http://head.miwibox.org/tb/index.php?action=describe_port&id=2118 

Thanks
Comment 6 Martin Wilke freebsd_committer freebsd_triage 2007-09-28 00:54:59 UTC
State Changed
From-To: feedback->closed

New port added. Thanks!
Comment 7 dfilter service freebsd_committer freebsd_triage 2007-09-28 00:55:15 UTC
miwi        2007-09-27 23:55:09 UTC

  FreeBSD ports repository

  Modified files:
    x11-wm               Makefile 
  Added files:
    x11-wm/awesome       Makefile distinfo pkg-descr 
    x11-wm/awesome/files extrapatch-lowerfloat extrapatch-warp 
                         patch-config.mk patch-tag.c 
  Log:
  awesome is a tiling window manager initialy based on a dwm code
  rewriting. It's extremely fast, small, dynamic and awesome.
  
  Windows can be managed in several layouts: tiled and floating. Each
  layout can be applied on the fly, optimizing the environment for the
  application in use and the task performed.
  
  Managing windows in tiled mode assures that no space will be waste on
  your screen. No gaps, no overlap.
  
  WWW: http://awesome.naquadah.org/
  
  PR:             ports/116656
  Submitted by:   Nikos Ntarmos <ntarmos at ceid.upatras.gr>
  
  Revision  Changes    Path
  1.207     +1 -0      ports/x11-wm/Makefile
  1.1       +52 -0     ports/x11-wm/awesome/Makefile (new)
  1.1       +3 -0      ports/x11-wm/awesome/distinfo (new)
  1.1       +29 -0     ports/x11-wm/awesome/files/extrapatch-lowerfloat (new)
  1.1       +25 -0     ports/x11-wm/awesome/files/extrapatch-warp (new)
  1.1       +29 -0     ports/x11-wm/awesome/files/patch-config.mk (new)
  1.1       +19 -0     ports/x11-wm/awesome/files/patch-tag.c (new)
  1.1       +12 -0     ports/x11-wm/awesome/pkg-descr (new)
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"