Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Jan 2003 14:27:35 +0100 (CET)
From:      Hendrik Scholz <hendrik@scholz.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        Hendrik Scholz <hendrik@scholz.net>
Subject:   ports/47214: maintainer-update: x11-wm/fluxbox: add window snapping patch
Message-ID:  <200301191327.h0JDRZ0h027845@goanna.lan.raisdorf.net>

next in thread | raw e-mail | index | archive | help

>Number:         47214
>Category:       ports
>Synopsis:       maintainer-update: x11-wm/fluxbox: add window snapping patch
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jan 19 05:30:02 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Hendrik Scholz
>Release:        FreeBSD 4.7-STABLE i386
>Organization:
NetUSE AG
>Environment:
System: FreeBSD goanna.lan.raisdorf.net 4.7-STABLE FreeBSD 4.7-STABLE #0: Sun Jan 5 21:07:33 CET 2003 hscholz@goanna.lan.raisdorf.net:/usr/src/sys/compile/GOANNA i386


	
>Description:
This patch adds an unofficial patch from Shawn Singh that has been posted
on the fluxbox -devel mailing list. The patch itself adds a window snapping
feature known from sawfish, englightenment et al.

Changes:

- add winsnap patch
- bump PORTREVISION
- add pkg-message like message in post-install as changes to the fluxbox config are needed
- two minor changes


>How-To-Repeat:
	
>Fix:

	

--- fluxbox-0.1.14-1-winsnap.patch begins here ---
diff -urp fluxbox-0.1.14/Makefile fluxbox/Makefile
--- fluxbox-0.1.14/Makefile	Sun Jan 19 13:33:12 2003
+++ fluxbox/Makefile	Sun Jan 19 14:11:36 2003
@@ -7,6 +7,7 @@
 
 PORTNAME=	fluxbox
 PORTVERSION=	0.1.14
+PORTREVISION=   1
 CATEGORIES=	x11-wm
 MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
 MASTER_SITE_SUBDIR=	${PORTNAME}
@@ -14,7 +15,13 @@ MASTER_SITE_SUBDIR=	${PORTNAME}
 .if defined(WITH_REMEMBER)
 PATCH_SITES=    http://www.bugfactory.org/~gav/fluxbox/
 PATCH_DIST_STRIP=   -p1
-PATCHFILES+=	remember-0.1.14-4.gz
+PATCHFILES=	remember-0.1.14-4.gz
+.endif
+
+.if defined(WITH_WINSNAP)
+PATCH_SITES+=   http://www.raisdorf.net/files/FreeBSD/
+PATCH_DIST_STRIP=   -p1
+PATCHFILES+=    winsnap-0.1.14.patch
 .endif
 
 MAINTAINER=	hendrik@scholz.net
@@ -50,7 +57,7 @@ MAN1=		fluxbox.1
 CONFIGURE_ARGS+=	--enable-gnome
 .endif
 
-pre-everything::
+pre-everything:
 	@${ECHO_CMD} ""
 	@${ECHO_CMD} "Definable build options"
 	@${ECHO_CMD} "-----------------------"
@@ -63,6 +70,23 @@ pre-everything::
 .if !defined(WITH_REMEMBER)
 	@${ECHO_CMD} "WITH_REMEMBER	- Enable the unofficial remember patch"
 .endif
+.if !defined(WITH_WINSNAP)
+	@${ECHO_CMD} "WITH_WINSNAP	- Enable the unofficial window snapping patch"
+.endif
 	@${ECHO_CMD} ""
 
+post-install:
+.if defined(WITH_WINSNAP)
+	@${ECHO_CMD} ""
+	@${ECHO_CMD} "The window snapping patch from Shawn Singh requires some"
+	@${ECHO_CMD} "changes to your ~/.fluxbox/init file:"
+	@${ECHO_CMD} ""
+	@${ECHO_CMD} "    session.screen0.edgeSnapThreshold: 10"
+	@${ECHO_CMD} "    session.screen0.edgeResistThreshold: 10"
+	@${ECHO_CMD} ""
+	@${ECHO_CMD} "The values can be changed to mimic the behavior of Enlightenment:"
+	@${ECHO_CMD} "snap: 3, resist: 15"
+	@${ECHO_CMD} ""
+.endif
+
 .include <bsd.port.post.mk>
diff -urp fluxbox-0.1.14/distinfo fluxbox/distinfo
--- fluxbox-0.1.14/distinfo	Sun Jan 19 13:33:12 2003
+++ fluxbox/distinfo	Sun Jan 19 13:34:59 2003
@@ -1,2 +1,3 @@
 MD5 (fluxbox-0.1.14.tar.gz) = f097b97127461fa3f6f4af4048c75cfc
 MD5 (remember-0.1.14-4.gz) = 437e2edd16e57a1a9f113c5e1f936709
+MD5 (winsnap-0.1.14.patch) = 519a70da183a23ed88bab2f95ee07505
--- fluxbox-0.1.14-1-winsnap.patch ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200301191327.h0JDRZ0h027845>