diff options
Diffstat (limited to 'devel')
-rw-r--r-- | devel/Makefile | 1 | ||||
-rw-r--r-- | devel/hs-MemoTrie/Makefile | 75 | ||||
-rw-r--r-- | devel/hs-MemoTrie/distinfo | 3 | ||||
-rw-r--r-- | devel/hs-MemoTrie/pkg-descr | 4 | ||||
-rw-r--r-- | devel/hs-MemoTrie/pkg-plist | 13 |
5 files changed, 96 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile index 31da089c1dd5..22ba48595db8 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -528,6 +528,7 @@ SUBDIR += hp48xgcc SUBDIR += hptools SUBDIR += hs-DeepArrow + SUBDIR += hs-MemoTrie SUBDIR += hs-MissingH SUBDIR += hs-MonadCatchIO-mtl SUBDIR += hs-ObjectName diff --git a/devel/hs-MemoTrie/Makefile b/devel/hs-MemoTrie/Makefile new file mode 100644 index 000000000000..37007d6d7dd4 --- /dev/null +++ b/devel/hs-MemoTrie/Makefile @@ -0,0 +1,75 @@ +# New ports collection makefile for: hs-MemoTrie +# Date created: December 20 2009 +# Whom: Giuseppe Pilichi aka Jacula Modyun <jacula@gmail.com> +# +# $FreeBSD$ +# + +PORTNAME= MemoTrie +PORTVERSION= 0.4.7 +CATEGORIES= devel haskell +MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/ +PKGNAMEPREFIX= hs- + +MAINTAINER= jacula@gmail.com +COMMENT= Trie-based memo functions for Haskell + +BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc +RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc + +GHC_VERSION= 6.10.4 +MEMOTRIE_VERSION= ${PORTVERSION} + +GHC_CMD= ${LOCALBASE}/bin/ghc +SETUP_CMD= ./setup + +DOCSDIR= ${PREFIX}/share/doc/${DISTNAME} +MEMOTRIE_LIBDIR_REL= lib/${DISTNAME} + +PLIST_SUB= GHC_VERSION=${GHC_VERSION} \ + MEMOTRIE_VERSION=${MEMOTRIE_VERSION} \ + MEMOTRIE_LIBDIR_REL=${MEMOTRIE_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.lhs -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}/${MEMOTRIE_LIBDIR_REL}/register.sh + +post-install: + ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old + +.include <bsd.port.mk> diff --git a/devel/hs-MemoTrie/distinfo b/devel/hs-MemoTrie/distinfo new file mode 100644 index 000000000000..9a1a90667c37 --- /dev/null +++ b/devel/hs-MemoTrie/distinfo @@ -0,0 +1,3 @@ +MD5 (MemoTrie-0.4.7.tar.gz) = 4285bd9f1968f373d45c39b37eae2366 +SHA256 (MemoTrie-0.4.7.tar.gz) = b3558ce6eb9c54052b775860b491d4d70855476b8504523450e6b272d2cdf7fc +SIZE (MemoTrie-0.4.7.tar.gz) = 5647 diff --git a/devel/hs-MemoTrie/pkg-descr b/devel/hs-MemoTrie/pkg-descr new file mode 100644 index 000000000000..19955c854588 --- /dev/null +++ b/devel/hs-MemoTrie/pkg-descr @@ -0,0 +1,4 @@ +Haskell MemoTrie provides a basis for memoized functions over some +domains, using tries. It is based on some code got from Spencer Janssen. + +WWW: http://haskell.org/haskellwiki/MemoTrie diff --git a/devel/hs-MemoTrie/pkg-plist b/devel/hs-MemoTrie/pkg-plist new file mode 100644 index 000000000000..367c5e82489d --- /dev/null +++ b/devel/hs-MemoTrie/pkg-plist @@ -0,0 +1,13 @@ +@comment $FreeBSD$ +%%MEMOTRIE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/MemoTrie.hi +%%MEMOTRIE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSMemoTrie-%%MEMOTRIE_VERSION%%.o +%%MEMOTRIE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSMemoTrie-%%MEMOTRIE_VERSION%%.a +%%MEMOTRIE_LIBDIR_REL%%/register.sh +%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%% +@dirrm %%MEMOTRIE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data +@dirrm %%MEMOTRIE_LIBDIR_REL%%/ghc-%%GHC_VERSION%% +@dirrm %%MEMOTRIE_LIBDIR_REL%% +@exec /bin/sh %D/%%MEMOTRIE_LIBDIR_REL%%/register.sh +@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old +@unexec %D/bin/ghc-pkg unregister MemoTrie +@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old |