diff options
Diffstat (limited to 'x11-wm/xmonad')
-rw-r--r-- | x11-wm/xmonad/Makefile | 8 | ||||
-rw-r--r-- | x11-wm/xmonad/pkg-plist | 23 |
2 files changed, 28 insertions, 3 deletions
diff --git a/x11-wm/xmonad/Makefile b/x11-wm/xmonad/Makefile index d766c9c7c231..95cff2d43ada 100644 --- a/x11-wm/xmonad/Makefile +++ b/x11-wm/xmonad/Makefile @@ -22,17 +22,25 @@ USE_XORG= x11 CABALCMD= ${LOCALBASE}/bin/runghc Setup.lhs GHC_VERSION= 6.8.3 SUBDIR= lib/${PORTNAME}-${PORTVERSION} +DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}-${PORTVERSION} PLIST_SUB= GHC_VERSION=${GHC_VERSION} \ PORTVERSION=${PORTVERSION} \ SUBDIR=${SUBDIR} MAN1= xmonad.1 +.ifndef (NOPORTDOCS) +BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock +.endif + do-configure: cd ${WRKSRC} && ${CABALCMD} configure --ghc --prefix=${PREFIX} do-build: cd ${WRKSRC} && ${CABALCMD} build && ${CABALCMD} register --gen-script +.ifndef (NOPORTDOCS) + cd ${WRKSRC} && ${CABALCMD} haddock +.endif do-install: cd ${WRKSRC} && ${CABALCMD} install diff --git a/x11-wm/xmonad/pkg-plist b/x11-wm/xmonad/pkg-plist index b0aeaaf9df02..7aedbd5c5a6b 100644 --- a/x11-wm/xmonad/pkg-plist +++ b/x11-wm/xmonad/pkg-plist @@ -10,11 +10,28 @@ bin/xmonad %%SUBDIR%%/ghc-%%GHC_VERSION%%/XMonad/StackSet.hi %%SUBDIR%%/ghc-%%GHC_VERSION%%/libHSxmonad-%%PORTVERSION%%.a %%SUBDIR%%/register.sh -share/doc/xmonad-%%PORTVERSION%%/LICENSE -@dirrm share/doc/xmonad-%%PORTVERSION%% +%%DOCSDIR%%/LICENSE +%%PORTDOCS%%%%DOCSDIR%%/html/XMonad-Config.html +%%PORTDOCS%%%%DOCSDIR%%/html/XMonad-Core.html +%%PORTDOCS%%%%DOCSDIR%%/html/XMonad-Layout.html +%%PORTDOCS%%%%DOCSDIR%%/html/XMonad-Main.html +%%PORTDOCS%%%%DOCSDIR%%/html/XMonad-ManageHook.html +%%PORTDOCS%%%%DOCSDIR%%/html/XMonad-Operations.html +%%PORTDOCS%%%%DOCSDIR%%/html/XMonad-StackSet.html +%%PORTDOCS%%%%DOCSDIR%%/html/XMonad.html +%%PORTDOCS%%%%DOCSDIR%%/html/doc-index.html +%%PORTDOCS%%%%DOCSDIR%%/html/haddock-util.js +%%PORTDOCS%%%%DOCSDIR%%/html/haddock.css +%%PORTDOCS%%%%DOCSDIR%%/html/haskell_icon.gif +%%PORTDOCS%%%%DOCSDIR%%/html/index.html +%%PORTDOCS%%%%DOCSDIR%%/html/minus.gif +%%PORTDOCS%%%%DOCSDIR%%/html/plus.gif +%%PORTDOCS%%%%DOCSDIR%%/html/xmonad.haddock +%%PORTDOCS%%@dirrm %%DOCSDIR%%/html +@dirrm %%DOCSDIR%% @dirrm %%SUBDIR%%/ghc-%%GHC_VERSION%%/XMonad @dirrm %%SUBDIR%%/ghc-%%GHC_VERSION%% -@dirrm lib/xmonad-%%PORTVERSION%% +@dirrm %%SUBDIR%% @exec /bin/sh %D/%%SUBDIR%%/register.sh @exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old @unexec %D/bin/ghc-pkg unregister xmonad |