diff options
author | pgj <pgj@FreeBSD.org> | 2009-01-30 17:57:08 +0800 |
---|---|---|
committer | pgj <pgj@FreeBSD.org> | 2009-01-30 17:57:08 +0800 |
commit | df09ff4ee27497f6dd36259747ca26ae0b259019 (patch) | |
tree | 7ab9817bcd28c3b1e7aabd6927e5b53084591777 /x11/hs-X11-xft | |
parent | 73419125e1fd2f9c0aef2272e572bfb1cff850fc (diff) | |
download | freebsd-ports-gnome-df09ff4ee27497f6dd36259747ca26ae0b259019.tar.gz freebsd-ports-gnome-df09ff4ee27497f6dd36259747ca26ae0b259019.tar.zst freebsd-ports-gnome-df09ff4ee27497f6dd36259747ca26ae0b259019.zip |
- Improve PORTDOCS
PR: ports/131135
Submitted by: pgj
Approved by: maintainer, tabthorpe
Diffstat (limited to 'x11/hs-X11-xft')
-rw-r--r-- | x11/hs-X11-xft/Makefile | 9 | ||||
-rw-r--r-- | x11/hs-X11-xft/pkg-plist | 15 |
2 files changed, 8 insertions, 16 deletions
diff --git a/x11/hs-X11-xft/Makefile b/x11/hs-X11-xft/Makefile index aae05a81a15a..b5ba3282b52a 100644 --- a/x11/hs-X11-xft/Makefile +++ b/x11/hs-X11-xft/Makefile @@ -7,6 +7,7 @@ PORTNAME= x11-xft PORTVERSION= 0.3 +PORTREVISION= 1 CATEGORIES= x11 haskell MASTER_SITES= http://hackage.haskell.org/packages/archive/X11-xft/${PORTVERSION}/ PKGNAMEPREFIX= hs- @@ -33,11 +34,15 @@ PLIST_SUB+= GHC_VERSION=${GHC_VERSION} \ PORTNAME=${PORTNAME} \ SUBDIR=lib/ghc-${GHC_VERSION}/cabal DOCSDIR= ${PREFIX}/share/doc/X11-xft-${PORTVERSION} +PORTDOCS= LICENSE html CONFIGURE_ARGS= --ghc --prefix=${PREFIX} --libdir=${CABALDIR} --libsubdir='' --datasubdir='' -.ifndef (NOPORTDOCS) +.if !defined(NOPORTDOCS) BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock +.else +PLIST_DIRS+= %%DOCSDIR%% +PLIST_FILES+= %%DOCSDIR%%/LICENSE .endif do-configure: @@ -45,7 +50,7 @@ do-configure: do-build: cd ${WRKSRC} && ${CABALCMD} build && ${CABALCMD} --gen-script register -.ifndef (NOPORTDOCS) +.if !defined(NOPORTDOCS) cd ${WRKSRC} && ${CABALCMD} haddock .endif diff --git a/x11/hs-X11-xft/pkg-plist b/x11/hs-X11-xft/pkg-plist index 1908fbeb7dec..07b9a37b156d 100644 --- a/x11/hs-X11-xft/pkg-plist +++ b/x11/hs-X11-xft/pkg-plist @@ -3,22 +3,9 @@ %%SUBDIR%%/HSX11-xft-0.3.o %%SUBDIR%%/libHSX11-xft-0.3.a %%SUBDIR%%/x11-xft-register.sh -%%DOCSDIR%%/LICENSE -%%PORTDOCS%%%%DOCSDIR%%/html/Graphics-X11-Xft.html -%%PORTDOCS%%%%DOCSDIR%%/html/Graphics-X11-Xrender.html -%%PORTDOCS%%%%DOCSDIR%%/html/X11-xft.haddock -%%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%%@dirrm %%DOCSDIR%%/html -@dirrm %%DOCSDIR%% @dirrmtry %%SUBDIR%%/Graphics/X11 @dirrmtry %%SUBDIR%%/Graphics @exec /bin/sh %D/%%SUBDIR%%/%%PORTNAME%%-register.sh @exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old -@unexec %D/bin/ghc-pkg unregister X11-xft +@unexec ghc-pkg unregister X11-xft @unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old |