-- Hola! This haskell lib is needed for another patch (attached) that enables inotify in xmobar. See attached screenshot for an example of it in use (top left corner of the shot shows new mail counts for OpenBSD related stuff).
All the testing I did was with xmobar, don't have much of a need beyond that. Clue sticks? OKs? Cheeers, Aaron
hs-hinotify.tgz
Description: Binary data
diff --git a/x11/xmobar/Makefile b/x11/xmobar/Makefile index 6ee1572..6e63351 100644 --- a/x11/xmobar/Makefile +++ b/x11/xmobar/Makefile @@ -3,6 +3,7 @@ COMMENT = minimalistic text based status bar DISTNAME = xmobar-0.23.1 +REVISION = 0 CATEGORIES = x11 HOMEPAGE = http://projects.haskell.org/xmobar @@ -17,9 +18,13 @@ WANTLIB = X11 Xext Xft Xinerama Xrandr Xrender \ MODULES = lang/ghc converters/libiconv MODGHC_BUILD = cabal hackage nort -MODGHC_SETUP_CONF_ARGS = --flags="with_xft with_mpd with_mpris" +MODGHC_SETUP_CONF_ARGS = --flags="with_xft with_mpd with_mpris with_inotify" +MODGHC_SETUP_CONF_ARGS += --extra-include-dirs=${LOCALBASE}/include/inotify/ \ + --extra-lib-dirs=${LOCALBASE}/lib/inotify/ -BUILD_DEPENDS = devel/hs-mtl>=2.1,<2.3 \ + +BUILD_DEPENDS = devel/hs-hinotify>=0.3 \ + devel/hs-mtl>=2.1,<2.3 \ devel/hs-parsec>=3.1,<3.2 \ devel/hs-regex-compat \ devel/hs-stm>=2.3,<2.5 \ @@ -35,6 +40,11 @@ EXAMPLEDIR = ${PREFIX}/share/examples/xmobar NO_TEST = Yes +SUBST_VARS += LOCALBASE + +pre-configure: + ${SUBST_CMD} ${WRKDIST}/xmobar.cabal + post-patch: @cp ${FILESDIR}/Batt.hs ${WRKBUILD}/src/Plugins/Monitors @mkdir ${WRKBUILD}/src/Plugins/Monitors/Batt diff --git a/x11/xmobar/patches/patch-xmobar_cabal b/x11/xmobar/patches/patch-xmobar_cabal index d6c409f..4fea88e 100644 --- a/x11/xmobar/patches/patch-xmobar_cabal +++ b/x11/xmobar/patches/patch-xmobar_cabal @@ -1,6 +1,6 @@ $OpenBSD: patch-xmobar_cabal,v 1.14 2015/03/18 15:32:02 dcoppa Exp $ ---- xmobar.cabal.orig Fri Feb 13 03:20:07 2015 -+++ xmobar.cabal Fri Feb 13 03:21:36 2015 +--- xmobar.cabal.orig Tue Apr 14 11:08:19 2015 ++++ xmobar.cabal Tue Dec 8 16:43:17 2015 @@ -93,10 +93,12 @@ executable xmobar Plugins.Monitors.Swap, Plugins.Monitors.Thermal, Plugins.Monitors.ThermalZone, Plugins.Monitors.Top, @@ -15,3 +15,11 @@ $OpenBSD: patch-xmobar_cabal,v 1.14 2015/03/18 15:32:02 dcoppa Exp $ extra-libraries: Xrandr Xrender build-depends: +@@ -140,6 +142,7 @@ executable xmobar + build-depends: hinotify == 0.3.* + other-modules: Plugins.Mail, Plugins.MBox + cpp-options: -DINOTIFY ++ ld-options: -linotify -Wl,-rpath=${LOCALBASE}/lib/inotify + + if flag(with_iwlib) || flag(all_extensions) + extra-libraries: iw