1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-27 00:57:50 +00:00

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

PR:		ports/142491
Submitted by:	Jacula Modyun <jacula(at)gmail.com>
This commit is contained in:
Gabor Pali 2010-01-12 21:44:15 +00:00
parent 1b8391bb2d
commit c08d0f2a2b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=247745
5 changed files with 96 additions and 0 deletions

View File

@ -528,6 +528,7 @@
SUBDIR += hp48xgcc
SUBDIR += hptools
SUBDIR += hs-DeepArrow
SUBDIR += hs-MemoTrie
SUBDIR += hs-MissingH
SUBDIR += hs-MonadCatchIO-mtl
SUBDIR += hs-ObjectName

View File

@ -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>

View File

@ -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

View File

@ -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

View File

@ -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