aboutsummaryrefslogtreecommitdiffstats
path: root/x11-wm
diff options
context:
space:
mode:
authorpgj <pgj@FreeBSD.org>2010-05-13 00:33:59 +0800
committerpgj <pgj@FreeBSD.org>2010-05-13 00:33:59 +0800
commitf203c3895196ffa8b69517527e8c488cc49ada57 (patch)
treed7be6abb9940698d6dc43b1587948a03039a23b5 /x11-wm
parent965f4ecbcd1c9f6296e907af59901feeedfdc42f (diff)
downloadfreebsd-ports-gnome-f203c3895196ffa8b69517527e8c488cc49ada57.tar.gz
freebsd-ports-gnome-f203c3895196ffa8b69517527e8c488cc49ada57.tar.zst
freebsd-ports-gnome-f203c3895196ffa8b69517527e8c488cc49ada57.zip
Introduce a new (and hopefully better) ports infrastructure for Haskell Cabal
ports which makes possible the direct translation of Cabal package descriptions to FreeBSD ports. It promises both easier addition and maintenance for Cabal-based ports.
Diffstat (limited to 'x11-wm')
-rw-r--r--x11-wm/hs-xmonad-contrib/Makefile80
-rw-r--r--x11-wm/hs-xmonad-contrib/pkg-plist392
-rw-r--r--x11-wm/hs-xmonad/Makefile77
-rw-r--r--x11-wm/hs-xmonad/pkg-plist33
-rw-r--r--x11-wm/xmonad-contrib/Makefile80
-rw-r--r--x11-wm/xmonad-contrib/pkg-plist392
-rw-r--r--x11-wm/xmonad/Makefile77
-rw-r--r--x11-wm/xmonad/pkg-plist33
8 files changed, 444 insertions, 720 deletions
diff --git a/x11-wm/hs-xmonad-contrib/Makefile b/x11-wm/hs-xmonad-contrib/Makefile
index f43ac427e596..a8693f955af2 100644
--- a/x11-wm/hs-xmonad-contrib/Makefile
+++ b/x11-wm/hs-xmonad-contrib/Makefile
@@ -9,94 +9,22 @@ PORTNAME= xmonad-contrib
PORTVERSION= 0.9.1
PORTREVISION= 1
CATEGORIES= x11-wm haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/xmonad-contrib/${PORTVERSION}/
+PKGNAMEPREFIX=
MAINTAINER= haskell@FreeBSD.org
COMMENT= Third party tiling algorithms, configurations and scripts to xmonad
-BUILD_DEPENDS= ghc:${PORTSDIR}/lang/ghc \
- xmonad:${PORTSDIR}/x11-wm/xmonad \
- hs-utf8-string-ghc>=0.1:${PORTSDIR}/devel/hs-utf8-string-ghc
-RUN_DEPENDS= ghc:${PORTSDIR}/lang/ghc \
- xmonad:${PORTSDIR}/x11-wm/xmonad \
- hs-utf8-string-ghc>=0.1:${PORTSDIR}/devel/hs-utf8-string-ghc
-LIB_DEPENDS= gmp.10:${PORTSDIR}/math/gmp
-
+USE_HACKAGE= xmonad utf8-string
USE_XORG= x11
-GHC_VERSION= 6.10.4
-XMONADC_VERSION= ${PORTVERSION}
-UTF8STR_VERSION= 0.3.6
-HSX11XFT_VERSION= 0.7
-
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
-
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-XMONADC_LIBDIR_REL= lib/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- XMONADC_VERSION=${XMONADC_VERSION} \
- XMONADC_LIBDIR_REL=${XMONADC_LIBDIR_REL}
-
-# See (1)
OPTIONS= XFT "Enable Xft support for fonts" On
.include <bsd.port.pre.mk>
-CONFIGURE_ARGS= --haddock-options=-w --prefix=${PREFIX}
-
-# (1)
-.if exists(${LOCALBASE}/lib/X11-xft-${HSX11XFT_VERSION}/register.sh)
-WITH_XFT=
-.endif
-
.if defined(WITH_XFT)
CONFIGURE_ARGS+= --flags="use_xft"
-BUILD_DEPENDS+= hs-x11-xft-ghc>=0.2:${PORTSDIR}/x11/hs-x11-xft-ghc
-RUN_DEPENDS+= hs-x11-xft-ghc>=0.2:${PORTSDIR}/x11/hs-x11-xft-ghc
-.endif
-
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
+USE_HACKAGE+= X11-xft>=0.2
.endif
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
-
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-PORTDOCS= *
-.endif
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${GHC_CMD} --make Setup.lhs -o setup -package Cabal \
- && ${SETUP_CMD} configure ${CONFIGURE_ARGS}
-
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build \
- && ${SETUP_CMD} register --gen-script
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install \
- && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${XMONADC_LIBDIR_REL}/register.sh
-
-post-install:
- ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
-
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.post.mk>
diff --git a/x11-wm/hs-xmonad-contrib/pkg-plist b/x11-wm/hs-xmonad-contrib/pkg-plist
index b2aa10c4745c..38a3771818f3 100644
--- a/x11-wm/hs-xmonad-contrib/pkg-plist
+++ b/x11-wm/hs-xmonad-contrib/pkg-plist
@@ -1,201 +1,201 @@
@comment $FreeBSD$
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSxmonad-contrib-%%XMONADC_VERSION%%.o
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/CycleWindows.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/FloatSnap.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/GridSelect.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/OnScreen.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/MessageFeedback.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/PhysicalScreens.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/RandomBackground.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/SpawnOn.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/TopicSpace.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/UpdateFocus.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/WindowMenu.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/WithAll.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/WorkspaceCursors.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Config/Azerty.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/FloatNext.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/InsertPosition.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/Place.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/RestoreMinimized.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/WorkspaceByPos.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/AutoMaster.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/BorderResize.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/CenteredMaster.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Cross.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Column.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/ComboP.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/FixedColumn.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/GridVariants.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/IndependentScreens.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/LayoutBuilder.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/LimitWindows.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/MessageControl.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Minimize.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Monitor.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Mosaic.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/MouseResizableTile.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/NoFrillsDecoration.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/OneBig.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Spacing.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/SubLayouts.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/Cursor.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/NamedActions.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/NamedScratchpad.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/StringProp.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/Types.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/Paste.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/Replace.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/Commands.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/ConstrainedResize.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/CopyWindow.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/CycleRecentWS.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/CycleSelectedLayouts.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/CycleWS.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/DeManage.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/DwmPromote.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/DynamicWorkspaces.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/FindEmptyWorkspace.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/FlexibleManipulate.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/FlexibleResize.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/FloatKeys.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/FocusNth.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/MouseGestures.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/MouseResize.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/NoBorders.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/PerWorkspaceKeys.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/Plane.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/Promote.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/RotSlaves.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/Search.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/SimpleDate.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/SinkAll.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/Submap.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/SwapWorkspaces.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/TagWindows.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/UpdatePointer.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/Warp.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/WindowBringer.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/WindowGo.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/WindowNavigation.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Config/Arossato.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Config/Desktop.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Config/Droundy.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Config/Gnome.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Config/Kde.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Config/Sjanssen.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Config/Xfce.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Doc.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Doc/Configuring.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Doc/Developing.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Doc/Extending.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/DynamicHooks.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/DynamicLog.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/EwmhDesktops.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/FadeInactive.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/ManageDocks.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/ManageHelpers.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/Script.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/ServerMode.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/SetWMName.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/UrgencyHook.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/XPropManage.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Accordion.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/BoringWindows.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Circle.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Combo.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Decoration.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/DecorationMadness.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Dishes.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/DragPane.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/DwmStyle.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Gaps.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Grid.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/HintedGrid.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/HintedTile.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/IM.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/LayoutCombinators.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/LayoutHints.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/LayoutModifier.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/LayoutScreens.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/MagicFocus.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Magnifier.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Master.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Maximize.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/MosaicAlt.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/MultiToggle.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/MultiToggle/Instances.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Named.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/NoBorders.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/PerWorkspace.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Reflect.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/ResizableTile.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/ResizeScreen.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Roledex.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/ShowWName.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/SimpleDecoration.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/SimpleFloat.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Simplest.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/SimplestFloat.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Spiral.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Square.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/StackTile.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/TabBarDecoration.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Tabbed.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/ThreeColumns.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/ToggleLayouts.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/TwoPane.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/WindowArranger.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/WindowNavigation.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/WorkspaceDir.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt/AppLauncher.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt/AppendFile.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt/DirExec.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt/Directory.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt/Email.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt/Input.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt/Layout.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt/Man.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt/RunOrRaise.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt/Shell.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt/Ssh.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt/Theme.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt/Window.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt/Workspace.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt/XMonad.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/CustomKeys.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/Dmenu.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/Dzen.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/EZConfig.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/Font.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/Invisible.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/Loggers.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/NamedWindows.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/Run.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/Scratchpad.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/Themes.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/Timer.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/WindowProperties.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/WorkspaceCompare.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/XSelection.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/XUtils.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSxmonad-contrib-%%XMONADC_VERSION%%.a
-%%XMONADC_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/CycleWindows.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/FloatSnap.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/GridSelect.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/OnScreen.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/MessageFeedback.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/PhysicalScreens.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/RandomBackground.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/SpawnOn.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/TopicSpace.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/UpdateFocus.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/WindowMenu.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/WithAll.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/WorkspaceCursors.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Config/Azerty.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/FloatNext.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/InsertPosition.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/Place.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/RestoreMinimized.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/WorkspaceByPos.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/AutoMaster.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/BorderResize.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/CenteredMaster.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Cross.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Column.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/ComboP.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/FixedColumn.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/GridVariants.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/IndependentScreens.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/LayoutBuilder.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/LimitWindows.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/MessageControl.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Minimize.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Monitor.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Mosaic.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/MouseResizableTile.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/NoFrillsDecoration.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/OneBig.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Spacing.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/SubLayouts.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/Cursor.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/NamedActions.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/NamedScratchpad.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/StringProp.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/Types.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/Paste.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/Replace.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/Commands.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/ConstrainedResize.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/CopyWindow.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/CycleRecentWS.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/CycleSelectedLayouts.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/CycleWS.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/DeManage.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/DwmPromote.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/DynamicWorkspaces.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/FindEmptyWorkspace.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/FlexibleManipulate.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/FlexibleResize.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/FloatKeys.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/FocusNth.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/MouseGestures.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/MouseResize.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/NoBorders.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/PerWorkspaceKeys.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/Plane.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/Promote.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/RotSlaves.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/Search.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/SimpleDate.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/SinkAll.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/Submap.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/SwapWorkspaces.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/TagWindows.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/UpdatePointer.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/Warp.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/WindowBringer.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/WindowGo.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/WindowNavigation.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Config/Arossato.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Config/Desktop.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Config/Droundy.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Config/Gnome.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Config/Kde.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Config/Sjanssen.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Config/Xfce.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Doc.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Doc/Configuring.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Doc/Developing.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Doc/Extending.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/DynamicHooks.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/DynamicLog.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/EwmhDesktops.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/FadeInactive.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/ManageDocks.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/ManageHelpers.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/Script.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/ServerMode.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/SetWMName.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/UrgencyHook.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/XPropManage.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Accordion.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/BoringWindows.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Circle.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Combo.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Decoration.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/DecorationMadness.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Dishes.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/DragPane.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/DwmStyle.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Gaps.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Grid.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/HintedGrid.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/HintedTile.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/IM.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/LayoutCombinators.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/LayoutHints.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/LayoutModifier.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/LayoutScreens.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/MagicFocus.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Magnifier.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Master.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Maximize.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/MosaicAlt.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/MultiToggle.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/MultiToggle/Instances.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Named.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/NoBorders.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/PerWorkspace.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Reflect.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/ResizableTile.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/ResizeScreen.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Roledex.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/ShowWName.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/SimpleDecoration.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/SimpleFloat.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Simplest.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/SimplestFloat.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Spiral.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Square.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/StackTile.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/TabBarDecoration.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Tabbed.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/ThreeColumns.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/ToggleLayouts.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/TwoPane.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/WindowArranger.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/WindowNavigation.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/WorkspaceDir.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt/AppLauncher.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt/AppendFile.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt/DirExec.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt/Directory.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt/Email.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt/Input.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt/Layout.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt/Man.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt/RunOrRaise.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt/Shell.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt/Ssh.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt/Theme.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt/Window.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt/Workspace.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt/XMonad.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/CustomKeys.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/Dmenu.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/Dzen.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/EZConfig.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/Font.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/Invisible.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/Loggers.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/NamedWindows.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/Run.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/Scratchpad.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/Themes.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/Timer.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/WindowProperties.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/WorkspaceCompare.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/XSelection.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/XUtils.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
-@dirrm %%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util
-@dirrm %%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt
-@dirrm %%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/MultiToggle
-@dirrm %%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout
-@dirrm %%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks
-@dirrm %%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Doc
-@dirrm %%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Config
-@dirrm %%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions
-@dirrm %%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad
-@dirrm %%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%XMONADC_LIBDIR_REL%%
-@exec /bin/sh %D/%%XMONADC_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/MultiToggle
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Doc
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Config
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister xmonad-contrib
+@unexec %D/bin/ghc-pkg unregister %%PORTNAME%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/x11-wm/hs-xmonad/Makefile b/x11-wm/hs-xmonad/Makefile
index 29cdd11e0116..e53eda10541f 100644
--- a/x11-wm/hs-xmonad/Makefile
+++ b/x11-wm/hs-xmonad/Makefile
@@ -9,85 +9,20 @@ PORTNAME= xmonad
PORTVERSION= 0.9.1
PORTREVISION= 1
CATEGORIES= x11-wm haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/xmonad/${PORTVERSION}/
+PKGNAMEPREFIX=
MAINTAINER= haskell@FreeBSD.org
COMMENT= Xmonad is a minimalist and tiling window manager for X
-BUILD_DEPENDS= ghc:${PORTSDIR}/lang/ghc \
- hs-x11-ghc>=1.4.1:${PORTSDIR}/x11/hs-x11-ghc
-RUN_DEPENDS= ghc:${PORTSDIR}/lang/ghc \
- hs-x11-ghc>=1.4.1:${PORTSDIR}/x11/hs-x11-ghc
-LIB_DEPENDS= gmp.10:${PORTSDIR}/math/gmp
-
+USE_HACKAGE= X11>=1.5.0.0
USE_XORG= x11
-GHC_VERSION= 6.10.4
-XMONAD_VERSION= ${PORTVERSION}
-
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
-
-DATADIR= ${PREFIX}/share/${DISTNAME}
-PORTDATA= *
-
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-XMONAD_LIBDIR_REL= lib/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- XMONAD_VERSION=${XMONAD_VERSION} \
- XMONAD_LIBDIR_REL=${XMONAD_LIBDIR_REL}
-
MAN1= xmonad.1
+MAN1SRC= man
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
-.endif
-
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
+EXECUTABLE= xmonad
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-PORTDOCS= *
-.endif
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${GHC_CMD} --make Setup.lhs -o setup -package Cabal
-.if !defined(NOPORTDATA)
- cd ${WRKSRC} && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX} \
- --datadir='${PREFIX}/share' --datasubdir='${DISTNAME}'
-.else
- cd ${WRKSRC} && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX} \
- --datadir='' --datasubdir='' --docdir='${DOCSDIR}'
-.endif
-
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build \
- && ${SETUP_CMD} register --gen-script
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${SETUP_CMD} haddock --executables --hyperlink-source \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install \
- && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${XMONAD_LIBDIR_REL}/register.sh \
- && ${INSTALL_MAN} ${WRKSRC}/man/xmonad.1 ${MAN1PREFIX}/man/man1 \
- && ${INSTALL_DATA} ${WRKSRC}/CONFIG ${DOCSDIR}
-
-post-install:
- ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
+PORTDATA= *
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/x11-wm/hs-xmonad/pkg-plist b/x11-wm/hs-xmonad/pkg-plist
index 70c9922513d3..49ddc371d8d1 100644
--- a/x11-wm/hs-xmonad/pkg-plist
+++ b/x11-wm/hs-xmonad/pkg-plist
@@ -1,23 +1,22 @@
@comment $FreeBSD$
bin/xmonad
-%%XMONAD_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSxmonad-%%XMONAD_VERSION%%.o
-%%XMONAD_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad.hi
-%%XMONAD_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Config.hi
-%%XMONAD_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Core.hi
-%%XMONAD_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout.hi
-%%XMONAD_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Main.hi
-%%XMONAD_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/ManageHook.hi
-%%XMONAD_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Operations.hi
-%%XMONAD_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/StackSet.hi
-%%XMONAD_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSxmonad-%%XMONAD_VERSION%%.a
-%%XMONAD_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Config.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Core.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Main.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/ManageHook.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Operations.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/StackSet.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
-%%NOPORTDOCS%%%%DOCSDIR%%/CONFIG
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
-@dirrm %%XMONAD_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad
-@dirrm %%XMONAD_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%XMONAD_LIBDIR_REL%%
-@exec /bin/sh %D/%%XMONAD_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister xmonad
+@unexec %D/bin/ghc-pkg unregister %%PORTNAME%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/x11-wm/xmonad-contrib/Makefile b/x11-wm/xmonad-contrib/Makefile
index f43ac427e596..a8693f955af2 100644
--- a/x11-wm/xmonad-contrib/Makefile
+++ b/x11-wm/xmonad-contrib/Makefile
@@ -9,94 +9,22 @@ PORTNAME= xmonad-contrib
PORTVERSION= 0.9.1
PORTREVISION= 1
CATEGORIES= x11-wm haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/xmonad-contrib/${PORTVERSION}/
+PKGNAMEPREFIX=
MAINTAINER= haskell@FreeBSD.org
COMMENT= Third party tiling algorithms, configurations and scripts to xmonad
-BUILD_DEPENDS= ghc:${PORTSDIR}/lang/ghc \
- xmonad:${PORTSDIR}/x11-wm/xmonad \
- hs-utf8-string-ghc>=0.1:${PORTSDIR}/devel/hs-utf8-string-ghc
-RUN_DEPENDS= ghc:${PORTSDIR}/lang/ghc \
- xmonad:${PORTSDIR}/x11-wm/xmonad \
- hs-utf8-string-ghc>=0.1:${PORTSDIR}/devel/hs-utf8-string-ghc
-LIB_DEPENDS= gmp.10:${PORTSDIR}/math/gmp
-
+USE_HACKAGE= xmonad utf8-string
USE_XORG= x11
-GHC_VERSION= 6.10.4
-XMONADC_VERSION= ${PORTVERSION}
-UTF8STR_VERSION= 0.3.6
-HSX11XFT_VERSION= 0.7
-
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
-
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-XMONADC_LIBDIR_REL= lib/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- XMONADC_VERSION=${XMONADC_VERSION} \
- XMONADC_LIBDIR_REL=${XMONADC_LIBDIR_REL}
-
-# See (1)
OPTIONS= XFT "Enable Xft support for fonts" On
.include <bsd.port.pre.mk>
-CONFIGURE_ARGS= --haddock-options=-w --prefix=${PREFIX}
-
-# (1)
-.if exists(${LOCALBASE}/lib/X11-xft-${HSX11XFT_VERSION}/register.sh)
-WITH_XFT=
-.endif
-
.if defined(WITH_XFT)
CONFIGURE_ARGS+= --flags="use_xft"
-BUILD_DEPENDS+= hs-x11-xft-ghc>=0.2:${PORTSDIR}/x11/hs-x11-xft-ghc
-RUN_DEPENDS+= hs-x11-xft-ghc>=0.2:${PORTSDIR}/x11/hs-x11-xft-ghc
-.endif
-
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
+USE_HACKAGE+= X11-xft>=0.2
.endif
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
-
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-PORTDOCS= *
-.endif
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${GHC_CMD} --make Setup.lhs -o setup -package Cabal \
- && ${SETUP_CMD} configure ${CONFIGURE_ARGS}
-
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build \
- && ${SETUP_CMD} register --gen-script
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install \
- && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${XMONADC_LIBDIR_REL}/register.sh
-
-post-install:
- ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
-
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.post.mk>
diff --git a/x11-wm/xmonad-contrib/pkg-plist b/x11-wm/xmonad-contrib/pkg-plist
index b2aa10c4745c..38a3771818f3 100644
--- a/x11-wm/xmonad-contrib/pkg-plist
+++ b/x11-wm/xmonad-contrib/pkg-plist
@@ -1,201 +1,201 @@
@comment $FreeBSD$
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSxmonad-contrib-%%XMONADC_VERSION%%.o
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/CycleWindows.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/FloatSnap.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/GridSelect.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/OnScreen.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/MessageFeedback.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/PhysicalScreens.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/RandomBackground.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/SpawnOn.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/TopicSpace.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/UpdateFocus.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/WindowMenu.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/WithAll.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/WorkspaceCursors.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Config/Azerty.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/FloatNext.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/InsertPosition.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/Place.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/RestoreMinimized.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/WorkspaceByPos.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/AutoMaster.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/BorderResize.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/CenteredMaster.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Cross.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Column.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/ComboP.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/FixedColumn.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/GridVariants.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/IndependentScreens.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/LayoutBuilder.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/LimitWindows.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/MessageControl.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Minimize.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Monitor.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Mosaic.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/MouseResizableTile.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/NoFrillsDecoration.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/OneBig.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Spacing.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/SubLayouts.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/Cursor.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/NamedActions.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/NamedScratchpad.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/StringProp.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/Types.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/Paste.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/Replace.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/Commands.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/ConstrainedResize.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/CopyWindow.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/CycleRecentWS.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/CycleSelectedLayouts.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/CycleWS.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/DeManage.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/DwmPromote.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/DynamicWorkspaces.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/FindEmptyWorkspace.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/FlexibleManipulate.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/FlexibleResize.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/FloatKeys.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/FocusNth.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/MouseGestures.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/MouseResize.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/NoBorders.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/PerWorkspaceKeys.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/Plane.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/Promote.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/RotSlaves.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/Search.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/SimpleDate.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/SinkAll.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/Submap.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/SwapWorkspaces.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/TagWindows.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/UpdatePointer.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/Warp.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/WindowBringer.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/WindowGo.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/WindowNavigation.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Config/Arossato.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Config/Desktop.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Config/Droundy.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Config/Gnome.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Config/Kde.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Config/Sjanssen.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Config/Xfce.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Doc.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Doc/Configuring.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Doc/Developing.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Doc/Extending.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/DynamicHooks.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/DynamicLog.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/EwmhDesktops.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/FadeInactive.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/ManageDocks.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/ManageHelpers.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/Script.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/ServerMode.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/SetWMName.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/UrgencyHook.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/XPropManage.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Accordion.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/BoringWindows.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Circle.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Combo.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Decoration.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/DecorationMadness.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Dishes.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/DragPane.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/DwmStyle.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Gaps.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Grid.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/HintedGrid.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/HintedTile.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/IM.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/LayoutCombinators.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/LayoutHints.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/LayoutModifier.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/LayoutScreens.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/MagicFocus.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Magnifier.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Master.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Maximize.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/MosaicAlt.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/MultiToggle.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/MultiToggle/Instances.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Named.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/NoBorders.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/PerWorkspace.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Reflect.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/ResizableTile.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/ResizeScreen.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Roledex.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/ShowWName.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/SimpleDecoration.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/SimpleFloat.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Simplest.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/SimplestFloat.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Spiral.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Square.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/StackTile.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/TabBarDecoration.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Tabbed.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/ThreeColumns.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/ToggleLayouts.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/TwoPane.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/WindowArranger.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/WindowNavigation.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/WorkspaceDir.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt/AppLauncher.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt/AppendFile.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt/DirExec.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt/Directory.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt/Email.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt/Input.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt/Layout.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt/Man.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt/RunOrRaise.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt/Shell.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt/Ssh.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt/Theme.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt/Window.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt/Workspace.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt/XMonad.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/CustomKeys.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/Dmenu.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/Dzen.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/EZConfig.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/Font.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/Invisible.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/Loggers.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/NamedWindows.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/Run.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/Scratchpad.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/Themes.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/Timer.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/WindowProperties.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/WorkspaceCompare.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/XSelection.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/XUtils.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSxmonad-contrib-%%XMONADC_VERSION%%.a
-%%XMONADC_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/CycleWindows.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/FloatSnap.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/GridSelect.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/OnScreen.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/MessageFeedback.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/PhysicalScreens.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/RandomBackground.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/SpawnOn.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/TopicSpace.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/UpdateFocus.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/WindowMenu.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/WithAll.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/WorkspaceCursors.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Config/Azerty.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/FloatNext.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/InsertPosition.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/Place.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/RestoreMinimized.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/WorkspaceByPos.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/AutoMaster.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/BorderResize.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/CenteredMaster.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Cross.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Column.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/ComboP.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/FixedColumn.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/GridVariants.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/IndependentScreens.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/LayoutBuilder.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/LimitWindows.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/MessageControl.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Minimize.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Monitor.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Mosaic.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/MouseResizableTile.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/NoFrillsDecoration.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/OneBig.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Spacing.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/SubLayouts.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/Cursor.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/NamedActions.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/NamedScratchpad.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/StringProp.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/Types.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/Paste.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/Replace.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/Commands.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/ConstrainedResize.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/CopyWindow.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/CycleRecentWS.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/CycleSelectedLayouts.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/CycleWS.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/DeManage.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/DwmPromote.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/DynamicWorkspaces.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/FindEmptyWorkspace.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/FlexibleManipulate.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/FlexibleResize.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/FloatKeys.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/FocusNth.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/MouseGestures.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/MouseResize.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/NoBorders.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/PerWorkspaceKeys.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/Plane.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/Promote.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/RotSlaves.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/Search.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/SimpleDate.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/SinkAll.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/Submap.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/SwapWorkspaces.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/TagWindows.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/UpdatePointer.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/Warp.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/WindowBringer.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/WindowGo.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/WindowNavigation.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Config/Arossato.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Config/Desktop.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Config/Droundy.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Config/Gnome.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Config/Kde.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Config/Sjanssen.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Config/Xfce.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Doc.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Doc/Configuring.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Doc/Developing.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Doc/Extending.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/DynamicHooks.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/DynamicLog.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/EwmhDesktops.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/FadeInactive.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/ManageDocks.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/ManageHelpers.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/Script.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/ServerMode.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/SetWMName.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/UrgencyHook.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/XPropManage.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Accordion.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/BoringWindows.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Circle.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Combo.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Decoration.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/DecorationMadness.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Dishes.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/DragPane.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/DwmStyle.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Gaps.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Grid.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/HintedGrid.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/HintedTile.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/IM.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/LayoutCombinators.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/LayoutHints.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/LayoutModifier.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/LayoutScreens.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/MagicFocus.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Magnifier.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Master.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Maximize.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/MosaicAlt.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/MultiToggle.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/MultiToggle/Instances.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Named.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/NoBorders.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/PerWorkspace.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Reflect.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/ResizableTile.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/ResizeScreen.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Roledex.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/ShowWName.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/SimpleDecoration.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/SimpleFloat.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Simplest.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/SimplestFloat.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Spiral.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Square.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/StackTile.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/TabBarDecoration.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Tabbed.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/ThreeColumns.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/ToggleLayouts.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/TwoPane.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/WindowArranger.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/WindowNavigation.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/WorkspaceDir.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt/AppLauncher.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt/AppendFile.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt/DirExec.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt/Directory.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt/Email.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt/Input.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt/Layout.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt/Man.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt/RunOrRaise.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt/Shell.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt/Ssh.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt/Theme.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt/Window.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt/Workspace.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt/XMonad.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/CustomKeys.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/Dmenu.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/Dzen.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/EZConfig.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/Font.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/Invisible.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/Loggers.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/NamedWindows.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/Run.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/Scratchpad.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/Themes.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/Timer.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/WindowProperties.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/WorkspaceCompare.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/XSelection.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/XUtils.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
-@dirrm %%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util
-@dirrm %%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt
-@dirrm %%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/MultiToggle
-@dirrm %%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout
-@dirrm %%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks
-@dirrm %%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Doc
-@dirrm %%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Config
-@dirrm %%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions
-@dirrm %%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad
-@dirrm %%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%XMONADC_LIBDIR_REL%%
-@exec /bin/sh %D/%%XMONADC_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/MultiToggle
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Doc
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Config
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister xmonad-contrib
+@unexec %D/bin/ghc-pkg unregister %%PORTNAME%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/x11-wm/xmonad/Makefile b/x11-wm/xmonad/Makefile
index 29cdd11e0116..e53eda10541f 100644
--- a/x11-wm/xmonad/Makefile
+++ b/x11-wm/xmonad/Makefile
@@ -9,85 +9,20 @@ PORTNAME= xmonad
PORTVERSION= 0.9.1
PORTREVISION= 1
CATEGORIES= x11-wm haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/xmonad/${PORTVERSION}/
+PKGNAMEPREFIX=
MAINTAINER= haskell@FreeBSD.org
COMMENT= Xmonad is a minimalist and tiling window manager for X
-BUILD_DEPENDS= ghc:${PORTSDIR}/lang/ghc \
- hs-x11-ghc>=1.4.1:${PORTSDIR}/x11/hs-x11-ghc
-RUN_DEPENDS= ghc:${PORTSDIR}/lang/ghc \
- hs-x11-ghc>=1.4.1:${PORTSDIR}/x11/hs-x11-ghc
-LIB_DEPENDS= gmp.10:${PORTSDIR}/math/gmp
-
+USE_HACKAGE= X11>=1.5.0.0
USE_XORG= x11
-GHC_VERSION= 6.10.4
-XMONAD_VERSION= ${PORTVERSION}
-
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
-
-DATADIR= ${PREFIX}/share/${DISTNAME}
-PORTDATA= *
-
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-XMONAD_LIBDIR_REL= lib/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- XMONAD_VERSION=${XMONAD_VERSION} \
- XMONAD_LIBDIR_REL=${XMONAD_LIBDIR_REL}
-
MAN1= xmonad.1
+MAN1SRC= man
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
-.endif
-
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
+EXECUTABLE= xmonad
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-PORTDOCS= *
-.endif
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${GHC_CMD} --make Setup.lhs -o setup -package Cabal
-.if !defined(NOPORTDATA)
- cd ${WRKSRC} && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX} \
- --datadir='${PREFIX}/share' --datasubdir='${DISTNAME}'
-.else
- cd ${WRKSRC} && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX} \
- --datadir='' --datasubdir='' --docdir='${DOCSDIR}'
-.endif
-
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build \
- && ${SETUP_CMD} register --gen-script
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${SETUP_CMD} haddock --executables --hyperlink-source \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install \
- && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${XMONAD_LIBDIR_REL}/register.sh \
- && ${INSTALL_MAN} ${WRKSRC}/man/xmonad.1 ${MAN1PREFIX}/man/man1 \
- && ${INSTALL_DATA} ${WRKSRC}/CONFIG ${DOCSDIR}
-
-post-install:
- ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
+PORTDATA= *
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/x11-wm/xmonad/pkg-plist b/x11-wm/xmonad/pkg-plist
index 70c9922513d3..49ddc371d8d1 100644
--- a/x11-wm/xmonad/pkg-plist
+++ b/x11-wm/xmonad/pkg-plist
@@ -1,23 +1,22 @@
@comment $FreeBSD$
bin/xmonad
-%%XMONAD_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSxmonad-%%XMONAD_VERSION%%.o
-%%XMONAD_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad.hi
-%%XMONAD_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Config.hi
-%%XMONAD_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Core.hi
-%%XMONAD_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout.hi
-%%XMONAD_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Main.hi
-%%XMONAD_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/ManageHook.hi
-%%XMONAD_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Operations.hi
-%%XMONAD_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/StackSet.hi
-%%XMONAD_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSxmonad-%%XMONAD_VERSION%%.a
-%%XMONAD_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Config.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Core.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Main.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/ManageHook.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Operations.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/StackSet.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
-%%NOPORTDOCS%%%%DOCSDIR%%/CONFIG
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
-@dirrm %%XMONAD_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad
-@dirrm %%XMONAD_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%XMONAD_LIBDIR_REL%%
-@exec /bin/sh %D/%%XMONAD_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister xmonad
+@unexec %D/bin/ghc-pkg unregister %%PORTNAME%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old