diff options
Diffstat (limited to 'textproc/hs-xml')
-rw-r--r-- | textproc/hs-xml/Makefile | 61 | ||||
-rw-r--r-- | textproc/hs-xml/pkg-plist | 32 |
2 files changed, 18 insertions, 75 deletions
diff --git a/textproc/hs-xml/Makefile b/textproc/hs-xml/Makefile index 3f040b01d51e..0d62c9c9acba 100644 --- a/textproc/hs-xml/Makefile +++ b/textproc/hs-xml/Makefile @@ -8,68 +8,11 @@ PORTNAME= xml PORTVERSION= 1.3.5 CATEGORIES= textproc haskell -MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/ -PKGNAMEPREFIX= hs- MAINTAINER= jacula@gmail.com COMMENT= A simple XML library for Haskell -BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc -RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc - -GHC_VERSION= 6.10.4 -HSXML_VERSION= ${PORTVERSION} - -GHC_CMD= ${LOCALBASE}/bin/ghc -SETUP_CMD= ./setup - -DOCSDIR= ${PREFIX}/share/doc/${DISTNAME} -HSXML_LIBDIR_REL= lib/${DISTNAME} - -PLIST_SUB= GHC_VERSION=${GHC_VERSION} \ - HSXML_VERSION=${HSXML_VERSION} \ - HSXML_LIBDIR_REL=${HSXML_LIBDIR_REL} - -.if defined(NOPORTDOCS) -PLIST_SUB+= NOPORTDOCS="" -.else -PLIST_SUB+= NOPORTDOCS="@comment " -.endif - -.if !defined(NOPORTDOCS) - -PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK) -.if !empty(PORT_HADDOCK:M?0) -BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock -.endif -BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour - -HSCOLOUR_VERSION= 1.15 -HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION} - -PORTDOCS= * -.endif - -.SILENT: - -do-configure: - cd ${WRKSRC} && ${GHC_CMD} --make Setup.hs -o setup -package Cabal \ - && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX} - -do-build: - cd ${WRKSRC} && ${SETUP_CMD} build \ - && ${SETUP_CMD} register --gen-script - -.if !defined(NOPORTDOCS) - cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \ - --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css -.endif - -do-install: - cd ${WRKSRC} && ${SETUP_CMD} install \ - && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${HSXML_LIBDIR_REL}/register.sh - -post-install: - ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old +CABAL_SETUP= Setup.hs +.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk" .include <bsd.port.mk> diff --git a/textproc/hs-xml/pkg-plist b/textproc/hs-xml/pkg-plist index d7e5945bc581..f8b7b5731d64 100644 --- a/textproc/hs-xml/pkg-plist +++ b/textproc/hs-xml/pkg-plist @@ -1,21 +1,21 @@ @comment $FreeBSD$ -%%HSXML_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSxml-%%HSXML_VERSION%%.o -%%HSXML_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/Light.hi -%%HSXML_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/Light/Cursor.hi -%%HSXML_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/Light/Input.hi -%%HSXML_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/Light/Output.hi -%%HSXML_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/Light/Proc.hi -%%HSXML_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/Light/Types.hi -%%HSXML_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSxml-%%HSXML_VERSION%%.a -%%HSXML_LIBDIR_REL%%/register.sh +%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o +%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/Light.hi +%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/Light/Cursor.hi +%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/Light/Input.hi +%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/Light/Output.hi +%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/Light/Proc.hi +%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/Light/Types.hi +%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a +%%LIBDIR_REL%%/register.sh %%NOPORTDOCS%%%%DOCSDIR%%/LICENSE %%NOPORTDOCS%%@dirrmtry %%DOCSDIR%% -@dirrm %%HSXML_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/Light -@dirrm %%HSXML_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML -@dirrm %%HSXML_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text -@dirrm %%HSXML_LIBDIR_REL%%/ghc-%%GHC_VERSION%% -@dirrm %%HSXML_LIBDIR_REL%% -@exec /bin/sh %D/%%HSXML_LIBDIR_REL%%/register.sh +@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/Light +@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML +@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text +@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%% +@dirrm %%LIBDIR_REL%% +@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh @exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old -@unexec %D/bin/ghc-pkg unregister xml +@unexec %D/bin/ghc-pkg unregister %%PORTNAME%%-%%PORTVERSION%% @unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old |