View | Details | Raw Unified | Return to bug 129047
Collapse All | Expand All

(-)xmonad/Makefile (+9 lines)
Lines 7-12 Link Here
7
7
8
PORTNAME=	xmonad
8
PORTNAME=	xmonad
9
PORTVERSION=	0.8
9
PORTVERSION=	0.8
10
PORTREVISION=	1
10
CATEGORIES=	x11-wm haskell
11
CATEGORIES=	x11-wm haskell
11
MASTER_SITES=	http://hackage.haskell.org/packages/archive/xmonad/${PORTVERSION}/
12
MASTER_SITES=	http://hackage.haskell.org/packages/archive/xmonad/${PORTVERSION}/
12
13
Lines 22-38 Link Here
22
CABALCMD=	${LOCALBASE}/bin/runghc Setup.lhs
23
CABALCMD=	${LOCALBASE}/bin/runghc Setup.lhs
23
GHC_VERSION=	6.8.3
24
GHC_VERSION=	6.8.3
24
SUBDIR=		lib/${PORTNAME}-${PORTVERSION}
25
SUBDIR=		lib/${PORTNAME}-${PORTVERSION}
26
DOCSDIR=	${PREFIX}/share/doc/${PORTNAME}-${PORTVERSION}
25
PLIST_SUB=	GHC_VERSION=${GHC_VERSION} \
27
PLIST_SUB=	GHC_VERSION=${GHC_VERSION} \
26
		PORTVERSION=${PORTVERSION} \
28
		PORTVERSION=${PORTVERSION} \
27
		SUBDIR=${SUBDIR}
29
		SUBDIR=${SUBDIR}
28
30
29
MAN1=		xmonad.1
31
MAN1=		xmonad.1
30
32
33
.ifndef (NOPORTDOCS)
34
BUILD_DEPENDS+=	haddock:${PORTSDIR}/devel/hs-haddock
35
.endif
36
31
do-configure:
37
do-configure:
32
	cd ${WRKSRC} && ${CABALCMD} configure --ghc --prefix=${PREFIX}
38
	cd ${WRKSRC} && ${CABALCMD} configure --ghc --prefix=${PREFIX}
33
39
34
do-build:
40
do-build:
35
	cd ${WRKSRC} && ${CABALCMD} build && ${CABALCMD} register --gen-script
41
	cd ${WRKSRC} && ${CABALCMD} build && ${CABALCMD} register --gen-script
42
.ifndef (NOPORTDOCS)
43
	cd ${WRKSRC} && ${CABALCMD} haddock
44
.endif
36
45
37
do-install:
46
do-install:
38
	cd ${WRKSRC} && ${CABALCMD} install
47
	cd ${WRKSRC} && ${CABALCMD} install
(-)xmonad/pkg-plist (-3 / +20 lines)
Lines 10-20 Link Here
10
%%SUBDIR%%/ghc-%%GHC_VERSION%%/XMonad/StackSet.hi
10
%%SUBDIR%%/ghc-%%GHC_VERSION%%/XMonad/StackSet.hi
11
%%SUBDIR%%/ghc-%%GHC_VERSION%%/libHSxmonad-%%PORTVERSION%%.a
11
%%SUBDIR%%/ghc-%%GHC_VERSION%%/libHSxmonad-%%PORTVERSION%%.a
12
%%SUBDIR%%/register.sh
12
%%SUBDIR%%/register.sh
13
share/doc/xmonad-%%PORTVERSION%%/LICENSE
13
%%DOCSDIR%%/LICENSE
14
@dirrm share/doc/xmonad-%%PORTVERSION%%
14
%%PORTDOCS%%%%DOCSDIR%%/html/XMonad-Config.html
15
%%PORTDOCS%%%%DOCSDIR%%/html/XMonad-Core.html
16
%%PORTDOCS%%%%DOCSDIR%%/html/XMonad-Layout.html
17
%%PORTDOCS%%%%DOCSDIR%%/html/XMonad-Main.html
18
%%PORTDOCS%%%%DOCSDIR%%/html/XMonad-ManageHook.html
19
%%PORTDOCS%%%%DOCSDIR%%/html/XMonad-Operations.html
20
%%PORTDOCS%%%%DOCSDIR%%/html/XMonad-StackSet.html
21
%%PORTDOCS%%%%DOCSDIR%%/html/XMonad.html
22
%%PORTDOCS%%%%DOCSDIR%%/html/doc-index.html
23
%%PORTDOCS%%%%DOCSDIR%%/html/haddock-util.js
24
%%PORTDOCS%%%%DOCSDIR%%/html/haddock.css
25
%%PORTDOCS%%%%DOCSDIR%%/html/haskell_icon.gif
26
%%PORTDOCS%%%%DOCSDIR%%/html/index.html
27
%%PORTDOCS%%%%DOCSDIR%%/html/minus.gif
28
%%PORTDOCS%%%%DOCSDIR%%/html/plus.gif
29
%%PORTDOCS%%%%DOCSDIR%%/html/xmonad.haddock
30
%%PORTDOCS%%@dirrm %%DOCSDIR%%/html
31
@dirrm %%DOCSDIR%%
15
@dirrm %%SUBDIR%%/ghc-%%GHC_VERSION%%/XMonad
32
@dirrm %%SUBDIR%%/ghc-%%GHC_VERSION%%/XMonad
16
@dirrm %%SUBDIR%%/ghc-%%GHC_VERSION%%
33
@dirrm %%SUBDIR%%/ghc-%%GHC_VERSION%%
17
@dirrm lib/xmonad-%%PORTVERSION%%
34
@dirrm %%SUBDIR%%
18
@exec /bin/sh %D/%%SUBDIR%%/register.sh
35
@exec /bin/sh %D/%%SUBDIR%%/register.sh
19
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
36
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
20
@unexec %D/bin/ghc-pkg unregister xmonad
37
@unexec %D/bin/ghc-pkg unregister xmonad

Return to bug 129047