svn commit: r451244 - in head/x11-wm/spectrwm: . files
Niclas Zeising
zeising at FreeBSD.org
Wed Oct 4 20:14:26 UTC 2017
Author: zeising
Date: Wed Oct 4 20:14:24 2017
New Revision: 451244
URL: https://svnweb.freebsd.org/changeset/ports/451244
Log:
Update to 3.1.0
Changelog:
Add +R for region index to bar formatting.
Add new bar_color_selected and bar_font_color_selected options.
Add new 'ws_empty' action.
Enable padding in the bar_format using '_' character
Handle MappingNotify during startup.
Reset SIGPIPE before execvp().
Correct size for WM_STATE
This release also fixes a bunch of bugs, linux build and man page nits.
FreeBSD specific changes:
Thhe screenshot.sh script is now installed into the examples dir,
instead of bin/. If you are using it, you need to update your
configuration file.
I've reworked the examples handling and hid all examoles behind the
EXAMPLES knob (on by default). This is mostly some example
configurations, but I also added the baraction.sh script which can be
used to do fancier stuff with the status bar.
Modified:
head/x11-wm/spectrwm/Makefile
head/x11-wm/spectrwm/distinfo
head/x11-wm/spectrwm/files/patch-spectrwm.c
head/x11-wm/spectrwm/pkg-plist
Modified: head/x11-wm/spectrwm/Makefile
==============================================================================
--- head/x11-wm/spectrwm/Makefile Wed Oct 4 19:39:26 2017 (r451243)
+++ head/x11-wm/spectrwm/Makefile Wed Oct 4 20:14:24 2017 (r451244)
@@ -3,7 +3,7 @@
PORTNAME= spectrwm
DISTVERSIONPREFIX= SPECTRWM_
-DISTVERSION= 3_0_2
+DISTVERSION= 3_1_0
CATEGORIES= x11-wm
MAINTAINER= zeising at FreeBSD.org
@@ -19,38 +19,49 @@ RUN_DEPENDS+= dmenu:x11/dmenu
USE_GITHUB= yes
GH_ACCOUNT= conformal
+OPTIONS_DEFINE= EXAMPLES
+
+.include <bsd.port.options.mk>
+
USE_XORG= x11 xcb xcursor xft xrandr xt
USE_LDCONFIG= yes
-PORTEXAMPLES= spectrwm_cz.conf \
+CONFEXAMPLES= spectrwm_cz.conf \
spectrwm_es.conf \
spectrwm_fr.conf \
spectrwm_fr_ch.conf \
spectrwm_se.conf \
spectrwm_us.conf
+SCRIPTEXAMPLES= baraction.sh \
+ screenshot.sh
+
post-patch:
@${REINPLACE_CMD} -e 's|/etc/|${PREFIX}/etc/|g' ${WRKSRC}/spectrwm.*
do-build:
- ${CC} ${CFLAGS} -I${LOCALBASE}/include \
+ ${CC} ${CFLAGS} -Wall -Werror -I${LOCALBASE}/include \
-I${LOCALBASE}/include/freetype2 -I${WRKSRC}/freebsd \
-lutil -L${LOCALBASE}/lib -lX11 -lX11-xcb -lxcb -lxcb-icccm \
-lxcb-keysyms -lxcb-randr -lxcb-util -lxcb-xtest -lXcursor \
-lXft -DSWM_LIB=\"${PREFIX}/lib/libswmhack.so\" \
-o ${WRKSRC}/${PORTNAME} ${WRKSRC}/${PORTNAME}.c
- ${CC} ${CFLAGS} -I${LOCALBASE}/include -shared -fpic -DPIC \
+ ${CC} ${CFLAGS} -Wall -Werror -I${LOCALBASE}/include -shared -fpic -DPIC \
-o ${WRKSRC}/libswmhack.so ${WRKSRC}/lib/swm_hack.c
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
- ${INSTALL_SCRIPT} ${WRKSRC}/screenshot.sh ${STAGEDIR}${PREFIX}/bin
${INSTALL_LIB} ${WRKSRC}/libswmhack.so ${STAGEDIR}${PREFIX}/lib
${INSTALL_MAN} ${WRKSRC}/spectrwm.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
${INSTALL_DATA} ${WRKSRC}/spectrwm.conf ${STAGEDIR}${PREFIX}/etc/spectrwm.conf.sample
+
+do-install-EXAMPLES-on:
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
-.for conf in ${PORTEXAMPLES}
- ${INSTALL_DATA} ${WRKSRC}/${conf} ${STAGEDIR}${EXAMPLESDIR}
+.for file in ${CONFEXAMPLES}
+ ${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${EXAMPLESDIR}
+.endfor
+.for file in ${SCRIPTEXAMPLES}
+ ${INSTALL_SCRIPT} ${WRKSRC}/${file} ${STAGEDIR}${EXAMPLESDIR}
.endfor
.include <bsd.port.mk>
Modified: head/x11-wm/spectrwm/distinfo
==============================================================================
--- head/x11-wm/spectrwm/distinfo Wed Oct 4 19:39:26 2017 (r451243)
+++ head/x11-wm/spectrwm/distinfo Wed Oct 4 20:14:24 2017 (r451244)
@@ -1,3 +1,3 @@
-TIMESTAMP = 1465236118
-SHA256 (conformal-spectrwm-SPECTRWM_3_0_2_GH0.tar.gz) = 82ce0280039de642c41684f3096abb0388926b60c37987ca1dbc53a0913cab18
-SIZE (conformal-spectrwm-SPECTRWM_3_0_2_GH0.tar.gz) = 147355
+TIMESTAMP = 1507141425
+SHA256 (conformal-spectrwm-SPECTRWM_3_1_0_GH0.tar.gz) = b7a5e24fe6d923aadab947d354ff44ad742b721daaf334584e8eea9e15649d9a
+SIZE (conformal-spectrwm-SPECTRWM_3_1_0_GH0.tar.gz) = 147206
Modified: head/x11-wm/spectrwm/files/patch-spectrwm.c
==============================================================================
--- head/x11-wm/spectrwm/files/patch-spectrwm.c Wed Oct 4 19:39:26 2017 (r451243)
+++ head/x11-wm/spectrwm/files/patch-spectrwm.c Wed Oct 4 20:14:24 2017 (r451244)
@@ -1,6 +1,6 @@
---- spectrwm.c.orig 2016-06-05 07:12:06 UTC
+--- spectrwm.c.orig 2017-10-04 18:36:20 UTC
+++ spectrwm.c
-@@ -7876,7 +7876,7 @@ validate_spawns(void)
+@@ -7960,7 +7960,7 @@ validate_spawns(void)
void
setup_spawn(void)
{
Modified: head/x11-wm/spectrwm/pkg-plist
==============================================================================
--- head/x11-wm/spectrwm/pkg-plist Wed Oct 4 19:39:26 2017 (r451243)
+++ head/x11-wm/spectrwm/pkg-plist Wed Oct 4 20:14:24 2017 (r451244)
@@ -1,5 +1,12 @@
bin/spectrwm
-bin/screenshot.sh
lib/libswmhack.so
man/man1/spectrwm.1.gz
@sample etc/spectrwm.conf.sample
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/baraction.sh
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/screenshot.sh
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/spectrwm_cz.conf
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/spectrwm_es.conf
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/spectrwm_fr.conf
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/spectrwm_fr_ch.conf
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/spectrwm_se.conf
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/spectrwm_us.conf
More information about the svn-ports-head
mailing list