diff options
author | pgj <pgj@FreeBSD.org> | 2009-01-30 18:11:36 +0800 |
---|---|---|
committer | pgj <pgj@FreeBSD.org> | 2009-01-30 18:11:36 +0800 |
commit | 87de00c18be5e5ec7036e0b3f72bce238fe1958a (patch) | |
tree | c4d08ea303c046fa5eca1feac0d7964e3024e119 /devel/hs-pcre-light | |
parent | df09ff4ee27497f6dd36259747ca26ae0b259019 (diff) | |
download | freebsd-ports-gnome-87de00c18be5e5ec7036e0b3f72bce238fe1958a.tar.gz freebsd-ports-gnome-87de00c18be5e5ec7036e0b3f72bce238fe1958a.tar.zst freebsd-ports-gnome-87de00c18be5e5ec7036e0b3f72bce238fe1958a.zip |
- Improve PORTDOCS
Approved by: tabthorpe
Diffstat (limited to 'devel/hs-pcre-light')
-rw-r--r-- | devel/hs-pcre-light/Makefile | 11 | ||||
-rw-r--r-- | devel/hs-pcre-light/pkg-plist | 18 |
2 files changed, 10 insertions, 19 deletions
diff --git a/devel/hs-pcre-light/Makefile b/devel/hs-pcre-light/Makefile index 74ffa1c4db59..1b80dc3662ca 100644 --- a/devel/hs-pcre-light/Makefile +++ b/devel/hs-pcre-light/Makefile @@ -7,6 +7,7 @@ PORTNAME= pcre-light PORTVERSION= 0.3.1 +PORTREVISION= 1 CATEGORIES= devel haskell MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/ PKGNAMEPREFIX= hs- @@ -28,12 +29,16 @@ PLIST_SUB= GHC_VERSION=${GHC_VERSION} \ PORTNAME=${PORTNAME} \ PORTVERSION=${PORTVERSION} \ SUBDIR=${CABALDIR} -DOCSDIR= share/doc/${PORTNAME}-${PORTVERSION} +DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}-${PORTVERSION} +PORTDOCS= LICENSE html CONFIGURE_ARGS= --ghc --prefix=${PREFIX} --libdir=${PREFIX}/${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: @@ -41,7 +46,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/devel/hs-pcre-light/pkg-plist b/devel/hs-pcre-light/pkg-plist index 70be97fc590c..655486b56580 100644 --- a/devel/hs-pcre-light/pkg-plist +++ b/devel/hs-pcre-light/pkg-plist @@ -1,23 +1,9 @@ -%%SUBDIR%%/HSpcre-light-%%PORTVERSION%%.o %%SUBDIR%%/Text/Regex/PCRE/Light.hi %%SUBDIR%%/Text/Regex/PCRE/Light/Base.hi %%SUBDIR%%/Text/Regex/PCRE/Light/Char8.hi -%%SUBDIR%%/libHSpcre-light-%%PORTVERSION%%.a +%%SUBDIR%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a +%%SUBDIR%%/HS%%PORTNAME%%-%%PORTVERSION%%.o %%SUBDIR%%/%%PORTNAME%%-register.sh -%%DOCSDIR%%/LICENSE -%%PORTDOCS%%%%DOCSDIR%%/html/%%PORTNAME%%.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%%%%DOCSDIR%%/html/Text-Regex-PCRE-Light-Base.html -%%PORTDOCS%%%%DOCSDIR%%/html/Text-Regex-PCRE-Light-Char8.html -%%PORTDOCS%%%%DOCSDIR%%/html/Text-Regex-PCRE-Light.html -%%PORTDOCS%%@dirrm %%DOCSDIR%%/html -@dirrm %%DOCSDIR%% @dirrmtry %%SUBDIR%%/Text/Regex/PCRE/Light @dirrmtry %%SUBDIR%%/Text/Regex/PCRE @dirrmtry %%SUBDIR%%/Text/Regex |