diff options
author | miwi <miwi@FreeBSD.org> | 2008-11-23 16:25:03 +0800 |
---|---|---|
committer | miwi <miwi@FreeBSD.org> | 2008-11-23 16:25:03 +0800 |
commit | 1fc2c27474c075eaa64fb9cd89afa6a0ced181c9 (patch) | |
tree | 52472fe854bfdcd7dc290f0e4035152ae0dcd4ef /x11-wm/hs-xmonad | |
parent | e9e40786e1f48d9818c855abaedffd27ffdf2fba (diff) | |
download | freebsd-ports-gnome-1fc2c27474c075eaa64fb9cd89afa6a0ced181c9.tar.gz freebsd-ports-gnome-1fc2c27474c075eaa64fb9cd89afa6a0ced181c9.tar.zst freebsd-ports-gnome-1fc2c27474c075eaa64fb9cd89afa6a0ced181c9.zip |
- Respect NOPORTDOCS
PR: 129047
Submitted by: Ashish Shukla <wahjava@gmail.com>
Approved by: maintainer
Diffstat (limited to 'x11-wm/hs-xmonad')
-rw-r--r-- | x11-wm/hs-xmonad/Makefile | 8 | ||||
-rw-r--r-- | x11-wm/hs-xmonad/pkg-plist | 23 |
2 files changed, 28 insertions, 3 deletions
diff --git a/x11-wm/hs-xmonad/Makefile b/x11-wm/hs-xmonad/Makefile index d766c9c7c231..95cff2d43ada 100644 --- a/x11-wm/hs-xmonad/Makefile +++ b/x11-wm/hs-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/hs-xmonad/pkg-plist b/x11-wm/hs-xmonad/pkg-plist index b0aeaaf9df02..7aedbd5c5a6b 100644 --- a/x11-wm/hs-xmonad/pkg-plist +++ b/x11-wm/hs-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 |