Hi,

appended is a diff which creates a new port x11/ahwm.
This is my first attempt to create a port, so please show a little
patience.
I've tested it locally and i can apply all the steps from
ports/testing.html, back and forth.

Except of fetching - i have always had the .tar.gz in distfiles/.
I guess MASTER_SITES needs some adjustments?
Maybe some experienced porter could give some hints on that.
Have not figured out SEPARATE_BUILD yet.

I had to implement the do-install: rule for sane sanity.
I.e., being able to use CONFIGURE_STYLE=gnu - otherwise i was
unable to create sane --mandir paths since the *amazing*
bsd.port.mk system appends the defaults and thus overrides any
CONFIGURE_ARGS.  Using =simple was terribly slow and doesn't
really help for the path-joining either.

Also a symlink from ahwmrc.5 to ahwm.5 can be avoided like that.
I'm not yet sure wether Alex Hioreanu really agrees with that,
though.  Also with omitting the HTML copy of it.
Great craftsmanship creations can not really be abused.

The patches included are actually his own from the website
(ahwm-0.90.switch.patch).

Thank you.

--steffen
Forza Figa!

Index: x11/ahwm/Makefile
===================================================================
RCS file: x11/ahwm/Makefile
diff -N x11/ahwm/Makefile
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ x11/ahwm/Makefile   30 Apr 2012 23:47:06 -0000
@@ -0,0 +1,40 @@
+# $OpenBSD$
+
+COMMENT =              plain X11 window manager
+CATEGORIES =           x11     
+
+HOMEPAGE =             http://www.hioreanu.net/cs/ahwm/
+MAINTAINER =           Steffen Daode Nurpmeso <sdao...@googlemail.com>
+
+V =                    0.90
+DISTNAME =             ahwm-$V
+#PKGNAME =             ${DISTNAME}
+#WRKDIST =             ${WRKDIR}/${DISTNAME}
+
+# BSD
+PERMIT_PACKAGE_CDROM = Yes
+PERMIT_PACKAGE_FTP =   Yes
+PERMIT_DISTFILES_CDROM =Yes
+PERMIT_DISTFILES_FTP = Yes
+
+WANTLIB =              X11 c
+
+MASTER_SITES =         ftp://ftp.freebsd.org/pub/FreeBSD/ports/distfiles/ \
+                       ${HOMEPAGE}
+
+# Since we override install: it's possible to use gnu-style
+CONFIGURE_STYLE =      gnu
+# These are redundant, but be explicit for now
+CONFIGURE_ARGS =       --with-x --enable-shape
+#SEPARATE_BUILD =      Yes
+
+NO_REGRESS =           Yes
+
+# 
+do-install:
+       ${INSTALL_PROGRAM_DIR} ${PREFIX}/bin
+       ${INSTALL_MAN_DIR} ${PREFIX}/man/man5
+       ${INSTALL_PROGRAM} ${WRKSRC}/ahwm ${PREFIX}/bin/
+       ${INSTALL_MAN} ${WRKSRC}/ahwmrc.5 ${PREFIX}/man/man5/
+
+.include <bsd.port.mk>
Index: x11/ahwm/distinfo
===================================================================
RCS file: x11/ahwm/distinfo
diff -N x11/ahwm/distinfo
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ x11/ahwm/distinfo   30 Apr 2012 17:27:22 -0000
@@ -0,0 +1,5 @@
+MD5 (ahwm-0.90.tar.gz) = mVNlu1f0cxU+aH0TzcKTbw==
+RMD160 (ahwm-0.90.tar.gz) = OT2QRTl6yuDa3aG33h5Y/V1AnWE=
+SHA1 (ahwm-0.90.tar.gz) = bAtF3vUBjx89dUS36xcxzX4dhys=
+SHA256 (ahwm-0.90.tar.gz) = PCW+Q8rtJXUI2tl1ugmrxhHBZlfkZ7Ollv8WFCAxPXs=
+SIZE (ahwm-0.90.tar.gz) = 238356
Index: x11/ahwm/patches/patch-move-resize_c
===================================================================
RCS file: x11/ahwm/patches/patch-move-resize_c
diff -N x11/ahwm/patches/patch-move-resize_c
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ x11/ahwm/patches/patch-move-resize_c        30 Apr 2012 18:05:14 -0000
@@ -0,0 +1,41 @@
+$OpenBSD$
+--- move-resize.c.orig Mon Apr 30 20:03:16 2012
++++ move-resize.c      Mon Apr 30 20:03:43 2012
+@@ -794,7 +794,9 @@ void resize_client(XEvent *xevent, arglist *al)
+                                 x_start = client->x + client->width;
+                                 y_start = client->y + client->height;
+                                 break;
+-                            default: /* shuts up compiler warning */
++                            default:
++                                                              /* nothing */
++                                                              ;
+                         }
+                     }
+                     xrefresh();
+@@ -1056,6 +1058,8 @@ static void cycle_resize_direction_mouse(resize_direct
+             *old = WEST;
+             break;
+         default:
++                      /* nothing */
++                      ;
+     }
+ }
+ 
+@@ -1200,6 +1204,8 @@ static void process_resize(client_t *client, int new_x
+                 }
+                 break;
+             default:
++                              /* nothing */
++                              ;
+         }
+     }
+     
+@@ -1236,6 +1242,8 @@ static void process_resize(client_t *client, int new_x
+                 }
+                 break;
+             default:
++                              /* nothing */
++                              ;
+         }
+     }
+     
Index: x11/ahwm/patches/patch-prefs_c
===================================================================
RCS file: x11/ahwm/patches/patch-prefs_c
diff -N x11/ahwm/patches/patch-prefs_c
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ x11/ahwm/patches/patch-prefs_c      30 Apr 2012 18:05:14 -0000
@@ -0,0 +1,19 @@
+$OpenBSD$
+--- prefs.c.orig       Mon Apr 30 20:03:24 2012
++++ prefs.c    Mon Apr 30 20:03:43 2012
+@@ -643,6 +643,7 @@ static void prefs_apply_internal(client_t *client, lin
+                 break;
+             default:
+                 /* nothing */
++                              ;
+         }
+     }
+ }
+@@ -840,6 +841,7 @@ static void option_apply(client_t *client, option *opt
+             break;
+         default:
+             /* nothing */
++                      ;
+     }
+ }
+ 
Index: x11/ahwm/pkg/DESCR
===================================================================
RCS file: x11/ahwm/pkg/DESCR
diff -N x11/ahwm/pkg/DESCR
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ x11/ahwm/pkg/DESCR  30 Apr 2012 21:11:56 -0000
@@ -0,0 +1,12 @@
+Really lightweight window manager for the X Window System.
+
+Yes to portability (uses only Xlib), keyboard-friendliness,
+usable sloppy-focus, multiple workspaces, shaped windows,
+easy configuration and good documentation.
+
+No to garish decorations, confusing pager semantics,
+hidden windows and ugly icons.
+Multiple X screens are not supported.
+
+The extensively documented .ahwmrc is written once ahwm
+is started first.  You could also see ahwmrc(5) beforehand.
Index: x11/ahwm/pkg/PLIST
===================================================================
RCS file: x11/ahwm/pkg/PLIST
diff -N x11/ahwm/pkg/PLIST
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ x11/ahwm/pkg/PLIST  30 Apr 2012 23:25:51 -0000
@@ -0,0 +1,3 @@
+@comment $OpenBSD$
+@bin bin/ahwm
+@man man/man5/ahwmrc.5

Reply via email to