ports/116656: New port: x11-wm/awesome A tiling window manager initialy based on a dwm code rewriting

Nikos Ntarmos ntarmos at ceid.upatras.gr
Wed Sep 26 14:50:09 UTC 2007


The following reply was made to PR ports/116656; it has been noted by GNATS.

From: Nikos Ntarmos <ntarmos at ceid.upatras.gr>
To: bug-followup at FreeBSD.org
Cc:  
Subject: Re: ports/116656: New port: x11-wm/awesome A tiling window manager initialy based on a dwm code rewriting
Date: Wed, 26 Sep 2007 17:45:10 +0300

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



More information about the freebsd-ports-bugs mailing list