mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-27 05:10:36 +00:00
Provides an 'mtl' compatible version of the 'GhcT' monad-transformer
defined in the 'GHC-API' since version 6.10.1. WWW: http://code.haskell.org/~jcpetruzza/ghc-mtl PR: ports/142289 Submitted by: Jacula Modyun <jacula(at)gmail.com>
This commit is contained in:
parent
a22def8f77
commit
7a62798674
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=247114
@ -537,6 +537,7 @@
|
||||
SUBDIR += hs-cpphs
|
||||
SUBDIR += hs-dlist
|
||||
SUBDIR += hs-drift
|
||||
SUBDIR += hs-ghc-mtl
|
||||
SUBDIR += hs-ghc-paths
|
||||
SUBDIR += hs-ghc-paths-docs
|
||||
SUBDIR += hs-haddock
|
||||
|
77
devel/hs-ghc-mtl/Makefile
Normal file
77
devel/hs-ghc-mtl/Makefile
Normal file
@ -0,0 +1,77 @@
|
||||
# New ports collection makefile for: hs-ghc-mtl
|
||||
# Date created: December 20 2009
|
||||
# Whom: Giuseppe Pilichi aka Jacula Modyun <jacula@gmail.com>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= ghc-mtl
|
||||
PORTVERSION= 1.0.1.0
|
||||
CATEGORIES= devel haskell
|
||||
MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
|
||||
PKGNAMEPREFIX= hs-
|
||||
|
||||
MAINTAINER= jacula@gmail.com
|
||||
COMMENT= An mtl compatible version of the Ghc-Api monads and monad-transformers
|
||||
|
||||
BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc \
|
||||
hs-MonadCatchIO-mtl>=0.2.0.0:${PORTSDIR}/devel/hs-MonadCatchIO-mtl
|
||||
RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc \
|
||||
hs-MonadCatchIO-mtl>=0.2.0.0:${PORTSDIR}/devel/hs-MonadCatchIO-mtl
|
||||
|
||||
GHC_VERSION= 6.10.4
|
||||
GHCMTL_VERSION= ${PORTVERSION}
|
||||
|
||||
GHC_CMD= ${LOCALBASE}/bin/ghc
|
||||
SETUP_CMD= ./setup
|
||||
|
||||
DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
|
||||
GHCMTL_LIBDIR_REL= lib/${DISTNAME}
|
||||
|
||||
PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
|
||||
GHCMTL_VERSION=${GHCMTL_VERSION} \
|
||||
GHCMTL_LIBDIR_REL=${GHCMTL_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}/${GHCMTL_LIBDIR_REL}/register.sh
|
||||
|
||||
post-install:
|
||||
${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
|
||||
|
||||
.include <bsd.port.mk>
|
3
devel/hs-ghc-mtl/distinfo
Normal file
3
devel/hs-ghc-mtl/distinfo
Normal file
@ -0,0 +1,3 @@
|
||||
MD5 (ghc-mtl-1.0.1.0.tar.gz) = 73d8685fb937a27fe6ee2fce1f5fc3e6
|
||||
SHA256 (ghc-mtl-1.0.1.0.tar.gz) = 5284e0ecf99511e6263503412faf6fa809dc577c009fde63203d46405eb1b191
|
||||
SIZE (ghc-mtl-1.0.1.0.tar.gz) = 2239
|
4
devel/hs-ghc-mtl/pkg-descr
Normal file
4
devel/hs-ghc-mtl/pkg-descr
Normal file
@ -0,0 +1,4 @@
|
||||
Provides an 'mtl' compatible version of the 'GhcT' monad-transformer
|
||||
defined in the 'GHC-API' since version 6.10.1.
|
||||
|
||||
WWW: http://code.haskell.org/~jcpetruzza/ghc-mtl
|
15
devel/hs-ghc-mtl/pkg-plist
Normal file
15
devel/hs-ghc-mtl/pkg-plist
Normal file
@ -0,0 +1,15 @@
|
||||
@comment $FreeBSD$
|
||||
%%GHCMTL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Monad/Ghc.hi
|
||||
%%GHCMTL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSghc-mtl-%%GHCMTL_VERSION%%.o
|
||||
%%GHCMTL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSghc-mtl-%%GHCMTL_VERSION%%.a
|
||||
%%GHCMTL_LIBDIR_REL%%/register.sh
|
||||
%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
|
||||
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
|
||||
@dirrm %%GHCMTL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Monad
|
||||
@dirrm %%GHCMTL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control
|
||||
@dirrm %%GHCMTL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
|
||||
@dirrm %%GHCMTL_LIBDIR_REL%%
|
||||
@exec /bin/sh %D/%%GHCMTL_LIBDIR_REL%%/register.sh
|
||||
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
|
||||
@unexec %D/bin/ghc-pkg unregister ghc-mtl
|
||||
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
|
Loading…
Reference in New Issue
Block a user