diff options
author | pgj <pgj@FreeBSD.org> | 2010-05-13 00:33:59 +0800 |
---|---|---|
committer | pgj <pgj@FreeBSD.org> | 2010-05-13 00:33:59 +0800 |
commit | f203c3895196ffa8b69517527e8c488cc49ada57 (patch) | |
tree | d7be6abb9940698d6dc43b1587948a03039a23b5 /devel/hs-uulib | |
parent | 965f4ecbcd1c9f6296e907af59901feeedfdc42f (diff) | |
download | freebsd-ports-gnome-f203c3895196ffa8b69517527e8c488cc49ada57.tar.gz freebsd-ports-gnome-f203c3895196ffa8b69517527e8c488cc49ada57.tar.zst freebsd-ports-gnome-f203c3895196ffa8b69517527e8c488cc49ada57.zip |
Introduce a new (and hopefully better) ports infrastructure for Haskell Cabal
ports which makes possible the direct translation of Cabal package
descriptions to FreeBSD ports. It promises both easier addition and
maintenance for Cabal-based ports.
Diffstat (limited to 'devel/hs-uulib')
-rw-r--r-- | devel/hs-uulib/Makefile | 61 | ||||
-rw-r--r-- | devel/hs-uulib/pkg-plist | 98 |
2 files changed, 51 insertions, 108 deletions
diff --git a/devel/hs-uulib/Makefile b/devel/hs-uulib/Makefile index 2283ba6b8e81..a0b023b91c59 100644 --- a/devel/hs-uulib/Makefile +++ b/devel/hs-uulib/Makefile @@ -9,68 +9,11 @@ PORTNAME= uulib PORTVERSION= 0.9.10 PORTREVISION= 1 CATEGORIES= devel haskell -MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/ -PKGNAMEPREFIX= hs- MAINTAINER= jacula@gmail.com COMMENT= Haskell Utrecht Tools Library -BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc -RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc - -GHC_VERSION= 6.10.4 -UULIB_VERSION= ${PORTVERSION} - -GHC_CMD= ${LOCALBASE}/bin/ghc -SETUP_CMD= ./setup - -DOCSDIR= ${PREFIX}/share/doc/${DISTNAME} -UULIB_LIBDIR_REL= lib/${DISTNAME} - -PLIST_SUB= GHC_VERSION=${GHC_VERSION} \ - UULIB_VERSION=${UULIB_VERSION} \ - UULIB_LIBDIR_REL=${UULIB_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}/${UULIB_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/devel/hs-uulib/pkg-plist b/devel/hs-uulib/pkg-plist index 50f2d18d2c55..ef7aab8797a5 100644 --- a/devel/hs-uulib/pkg-plist +++ b/devel/hs-uulib/pkg-plist @@ -1,54 +1,54 @@ @comment $FreeBSD$ -%%UULIB_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSuulib-%%UULIB_VERSION%%.o -%%UULIB_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/DData/IntBag.hi -%%UULIB_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/DData/IntMap.hi -%%UULIB_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/DData/IntSet.hi -%%UULIB_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/DData/Map.hi -%%UULIB_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/DData/MultiSet.hi -%%UULIB_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/DData/Queue.hi -%%UULIB_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/DData/Scc.hi -%%UULIB_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/DData/Seq.hi -%%UULIB_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/DData/Set.hi -%%UULIB_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/PPrint.hi -%%UULIB_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/Parsing.hi -%%UULIB_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/Parsing/CharParser.hi -%%UULIB_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/Parsing/Derived.hi -%%UULIB_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/Parsing/Interface.hi -%%UULIB_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/Parsing/Machine.hi -%%UULIB_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/Parsing/MachineInterface.hi -%%UULIB_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/Parsing/Merge.hi -%%UULIB_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/Parsing/Offside.hi -%%UULIB_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/Parsing/Perms.hi -%%UULIB_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/Parsing/StateParser.hi -%%UULIB_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/Pretty.hi -%%UULIB_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/Pretty/Basic.hi -%%UULIB_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/Pretty/Ext.hi -%%UULIB_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/Scanner.hi -%%UULIB_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/Scanner/GenToken.hi -%%UULIB_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/Scanner/GenTokenOrd.hi -%%UULIB_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/Scanner/GenTokenParser.hi -%%UULIB_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/Scanner/GenTokenSymbol.hi -%%UULIB_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/Scanner/Position.hi -%%UULIB_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/Scanner/Scanner.hi -%%UULIB_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/Scanner/Token.hi -%%UULIB_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/Scanner/TokenParser.hi -%%UULIB_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/Scanner/TokenShow.hi -%%UULIB_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/Util/BinaryTrees.hi -%%UULIB_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/Util/PermTree.hi -%%UULIB_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/Util/Utils.hi -%%UULIB_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSuulib-%%UULIB_VERSION%%.a -%%UULIB_LIBDIR_REL%%/register.sh +%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o +%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/DData/IntBag.hi +%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/DData/IntMap.hi +%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/DData/IntSet.hi +%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/DData/Map.hi +%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/DData/MultiSet.hi +%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/DData/Queue.hi +%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/DData/Scc.hi +%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/DData/Seq.hi +%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/DData/Set.hi +%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/PPrint.hi +%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/Parsing.hi +%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/Parsing/CharParser.hi +%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/Parsing/Derived.hi +%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/Parsing/Interface.hi +%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/Parsing/Machine.hi +%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/Parsing/MachineInterface.hi +%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/Parsing/Merge.hi +%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/Parsing/Offside.hi +%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/Parsing/Perms.hi +%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/Parsing/StateParser.hi +%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/Pretty.hi +%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/Pretty/Basic.hi +%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/Pretty/Ext.hi +%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/Scanner.hi +%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/Scanner/GenToken.hi +%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/Scanner/GenTokenOrd.hi +%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/Scanner/GenTokenParser.hi +%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/Scanner/GenTokenSymbol.hi +%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/Scanner/Position.hi +%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/Scanner/Scanner.hi +%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/Scanner/Token.hi +%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/Scanner/TokenParser.hi +%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/Scanner/TokenShow.hi +%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/Util/BinaryTrees.hi +%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/Util/PermTree.hi +%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/Util/Utils.hi +%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a +%%LIBDIR_REL%%/register.sh %%NOPORTDOCS%%%%DOCSDIR%%/COPYRIGHT %%NOPORTDOCS%%@dirrmtry %%DOCSDIR%% -@dirrm %%UULIB_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/Util -@dirrm %%UULIB_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/Scanner -@dirrm %%UULIB_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/Pretty -@dirrm %%UULIB_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/Parsing -@dirrm %%UULIB_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/DData -@dirrm %%UULIB_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU -@dirrm %%UULIB_LIBDIR_REL%%/ghc-%%GHC_VERSION%% -@dirrm %%UULIB_LIBDIR_REL%% -@exec /bin/sh %D/%%UULIB_LIBDIR_REL%%/register.sh +@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/Util +@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/Scanner +@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/Pretty +@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/Parsing +@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/DData +@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU +@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 uulib +@unexec %D/bin/ghc-pkg unregister %%PORTNAME%%-%%PORTVERSION%% @unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old |