mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-27 05:10:36 +00:00
This library defines an Interpreter monad. It allows to load Haskell
modules, browse them, type-check and evaluate strings with Haskell expressions and even coerce them into values. The library is thread-safe and type-safe (even the coercion of expressions to values). WWW: http://projects.haskell.org/hint PR: ports/142290 Submitted by: Jacula Modyun <jacula(at)gmail.com>
This commit is contained in:
parent
7a62798674
commit
67657f1428
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=247115
@ -547,6 +547,7 @@
|
||||
SUBDIR += hs-haskell-src-exts
|
||||
SUBDIR += hs-hat
|
||||
SUBDIR += hs-hdoc
|
||||
SUBDIR += hs-hint
|
||||
SUBDIR += hs-hmake
|
||||
SUBDIR += hs-hoogle
|
||||
SUBDIR += hs-idoc
|
||||
|
96
devel/hs-hint/Makefile
Normal file
96
devel/hs-hint/Makefile
Normal file
@ -0,0 +1,96 @@
|
||||
# New ports collection makefile for: hs-hint
|
||||
# Date created: December 20 2009
|
||||
# Whom: Giuseppe Pilichi aka Jacula Modyun <jacula@gmail.com>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= hint
|
||||
PORTVERSION= 0.3.2.1
|
||||
CATEGORIES= devel haskell
|
||||
MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
|
||||
PKGNAMEPREFIX= hs-
|
||||
|
||||
MAINTAINER= jacula@gmail.com
|
||||
COMMENT= Runtime Haskell interpreter (GHC API wrapper)
|
||||
|
||||
BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc \
|
||||
hs-ghc-paths>=0.1.0.5:${PORTSDIR}/devel/hs-ghc-paths \
|
||||
hs-utf8-string-ghc>=0.3:${PORTSDIR}/devel/hs-utf8-string-ghc \
|
||||
hs-MonadCatchIO-mtl>=0.2:${PORTSDIR}/devel/hs-MonadCatchIO-mtl \
|
||||
hs-ghc-mtl>=1.0.1.0:${PORTSDIR}/devel/hs-ghc-mtl
|
||||
RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc \
|
||||
hs-ghc-paths>=0.1.0.5:${PORTSDIR}/devel/hs-ghc-paths \
|
||||
hs-utf8-string-ghc>=0.3:${PORTSDIR}/devel/hs-utf8-string-ghc \
|
||||
hs-MonadCatchIO-mtl>=0.2:${PORTSDIR}/devel/hs-MonadCatchIO-mtl \
|
||||
hs-ghc-mtl>=1.0.1.0:${PORTSDIR}/devel/hs-ghc-mtl
|
||||
|
||||
GHC_VERSION= 6.10.4
|
||||
HINT_VERSION= ${PORTVERSION}
|
||||
|
||||
GHC_CMD= ${LOCALBASE}/bin/ghc
|
||||
SETUP_CMD= ./setup
|
||||
|
||||
EXAMPLESDIR= ${PREFIX}/share/examples/${DISTNAME}
|
||||
PORTEXAMPLES= *
|
||||
|
||||
DATADIR= ${PREFIX}/share/${DISTNAME}
|
||||
PORTDATA= *
|
||||
|
||||
DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
|
||||
HINT_LIBDIR_REL= lib/${DISTNAME}
|
||||
|
||||
PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
|
||||
HINT_VERSION=${HINT_VERSION} \
|
||||
HINT_LIBDIR_REL=${HINT_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}/${HINT_LIBDIR_REL}/register.sh
|
||||
.if !defined(NOPORTDATA)
|
||||
@${MKDIR} ${DATADIR} && ${INSTALL_DATA} ${WRKSRC}/AUTHORS ${DATADIR} \
|
||||
&& ${INSTALL_DATA} ${WRKSRC}/Changes ${DATADIR}
|
||||
.endif
|
||||
.if !defined(NOPORTEXAMPLES)
|
||||
${MKDIR} ${EXAMPLESDIR} && cd ${WRKSRC}/examples && ${COPYTREE_SHARE} \* ${EXAMPLESDIR}
|
||||
.endif
|
||||
|
||||
post-install:
|
||||
${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
|
||||
|
||||
.include <bsd.port.mk>
|
3
devel/hs-hint/distinfo
Normal file
3
devel/hs-hint/distinfo
Normal file
@ -0,0 +1,3 @@
|
||||
MD5 (hint-0.3.2.1.tar.gz) = 54f288e9615ce5f3b592f646d65c223d
|
||||
SHA256 (hint-0.3.2.1.tar.gz) = 510148323c2f9d1890802e421fe4bff137803fd7f4818b7394ad4bef89e7ebdd
|
||||
SIZE (hint-0.3.2.1.tar.gz) = 24431
|
8
devel/hs-hint/pkg-descr
Normal file
8
devel/hs-hint/pkg-descr
Normal file
@ -0,0 +1,8 @@
|
||||
This library defines an Interpreter monad. It allows to load Haskell
|
||||
modules, browse them, type-check and evaluate strings with Haskell
|
||||
expressions and even coerce them into values. The library is thread-safe
|
||||
and type-safe (even the coercion of expressions to values).
|
||||
|
||||
It is, esentially, a huge subset of the GHC API wrapped in a simpler API.
|
||||
|
||||
WWW: http://projects.haskell.org/hint
|
36
devel/hs-hint/pkg-plist
Normal file
36
devel/hs-hint/pkg-plist
Normal file
@ -0,0 +1,36 @@
|
||||
@comment $FreeBSD$
|
||||
%%HINT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HShint-%%HINT_VERSION%%.o
|
||||
%%HINT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Hint/Base.hi
|
||||
%%HINT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Hint/Compat.hi
|
||||
%%HINT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Hint/Configuration.hi
|
||||
%%HINT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Hint/Context.hi
|
||||
%%HINT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Hint/Conversions.hi
|
||||
%%HINT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Hint/Eval.hi
|
||||
%%HINT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Hint/Extension.hi
|
||||
%%HINT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Hint/GHC.hi
|
||||
%%HINT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Hint/InterpreterT.hi
|
||||
%%HINT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Hint/Parsers.hi
|
||||
%%HINT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Hint/Reflection.hi
|
||||
%%HINT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Hint/Sandbox.hi
|
||||
%%HINT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Hint/Typecheck.hi
|
||||
%%HINT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Hint/Util.hi
|
||||
%%HINT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell/Interpreter.hi
|
||||
%%HINT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell/Interpreter/Extension.hi
|
||||
%%HINT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell/Interpreter/GHC.hi
|
||||
%%HINT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell/Interpreter/GHC/Unsafe.hi
|
||||
%%HINT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell/Interpreter/Unsafe.hi
|
||||
%%HINT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHShint-%%HINT_VERSION%%.a
|
||||
%%HINT_LIBDIR_REL%%/register.sh
|
||||
%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
|
||||
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
|
||||
@dirrm %%HINT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell/Interpreter/GHC
|
||||
@dirrm %%HINT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell/Interpreter
|
||||
@dirrm %%HINT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell
|
||||
@dirrm %%HINT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language
|
||||
@dirrm %%HINT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Hint
|
||||
@dirrm %%HINT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
|
||||
@dirrm %%HINT_LIBDIR_REL%%
|
||||
@exec /bin/sh %D/%%HINT_LIBDIR_REL%%/register.sh
|
||||
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
|
||||
@unexec %D/bin/ghc-pkg unregister hint
|
||||
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
|
Loading…
Reference in New Issue
Block a user