aboutsummaryrefslogtreecommitdiffstats
path: root/x11-wm/hs-xmonad
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2008-11-23 16:25:03 +0800
committermiwi <miwi@FreeBSD.org>2008-11-23 16:25:03 +0800
commit1fc2c27474c075eaa64fb9cd89afa6a0ced181c9 (patch)
tree52472fe854bfdcd7dc290f0e4035152ae0dcd4ef /x11-wm/hs-xmonad
parente9e40786e1f48d9818c855abaedffd27ffdf2fba (diff)
downloadfreebsd-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/Makefile8
-rw-r--r--x11-wm/hs-xmonad/pkg-plist23
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
td>-1/+1 * Remove expired ports:rene2011-06-021-1/+0 * Remove most expired ports:rene2011-04-191-1/+0 * SMS::Send::TW::Qma is a SMS::Send drivermiwi2011-04-121-0/+1 * libimobiledevice is a software library that talks the protocols toavilla2011-02-281-0/+1 * 'usbmuxd' stands for "USB multiplexing daemon". This daemon is inavilla2011-02-281-0/+1 * The Arduino Uno (http://arduino.cc/) is an open source hardware micro-wxs2011-02-221-0/+1 * - new port companion to fldigidb2011-02-031-0/+1 * Add remserial, a communication bridge between a TCP/IP network port and aehaupt2011-01-051-0/+1 * New port: driver for MosChip MCS7820/MCS7840 USB to COM adapters.lev2010-12-111-0/+1 * audio/audacious-crossfade||2010-09-08|Broken for 6+ months, unmaintainedpgollucci2010-09-081-3/+0 * Remove comms/spandsp-devel5, older than stable and unmaintainedgarga2010-09-011-1/+0 * This is a gammu port with python bindings.bsam2010-05-141-0/+1 * SMS::SMS77 consists of a perl interface and a script to send SMSbeat2010-04-061-0/+1 * - Add gammu-devel in comms/Makefilesylvio2010-02-141-0/+1 * FreeBSD driver for newer Option HSDPA USB dongles.pav2010-02-071-0/+1 * Add p5-SMS-Send-TW-Socket2Air 0.01, SMS::Send driver for Socket2Air.lwhsu2010-01-311-0/+1 * SMS::Send::TW::HiAir is a SMS::Send driverpgollucci2010-01-071-0/+1 * SMS::Send::TW::chtsns is a SMS::Send driverpgollucci2010-01-071-0/+1 * dfu-programmer is a Device Firmware Update based USB programmeramdmi32009-12-091-0/+1 * WSPR (pronounced "whisper") stands for "Weak Signal Propagation Reporter."db2009-09-021-0/+1 * This Gem provides a Ruby-Frontend to the callook.infomiwi2009-08-131-0/+1 * An Amateur Radio callsign lookup command, made in Ruby,miwi2009-08-131-0/+1 * Remove comms/gfax as it has been marked BROKEN for over 4 months.erwin2009-06-141-1/+0 * Removed comms/xcept: stale old code, underlying protocol no longer in usejoerg2009-06-141-1/+0 * 2009-03-22 comms/plp: unmaintained, does not work with current versions of GC...miwi2009-03-251-1/+0 * The port comms/python-gammu was incorporated into comms/gammubsam2009-03-051-1/+0 * Add new port: esmskalme2009-02-271-0/+1 * dfu-util is a program that implements the host (PC) side of the USB DFUamdmi32009-02-191-0/+1 * py-gammu is a python bindings for Gammu library, which allowsmiwi2009-02-091-0/+1 * As its name suggests, picocom is a minimal dumb-terminal emulation pro-miwi2008-11-241-0/+1 * The overall goal of this project is to provide remote control service on Linuxmiwi2008-11-101-0/+1 * TCPSER turns a PC serial port into an emulated Hayes compatible modem thattrasz2008-09-24