mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 09:49:18 -04:00
TypeCompose provides some Haskell classes and instances for forms of
type composition, as well as some modules who have not yet found a home. WWW: http://haskell.org/haskellwiki/TypeCompose PR: ports/142481 Submitted by: Jacula Modyun <jacula(at)gmail.com>
This commit is contained in:
parent
9e11274446
commit
a5a1d7c211
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=247734
5 changed files with 107 additions and 0 deletions
|
@ -533,6 +533,7 @@
|
||||||
SUBDIR += hs-StateVar
|
SUBDIR += hs-StateVar
|
||||||
SUBDIR += hs-Stream
|
SUBDIR += hs-Stream
|
||||||
SUBDIR += hs-Tensor
|
SUBDIR += hs-Tensor
|
||||||
|
SUBDIR += hs-TypeCompose
|
||||||
SUBDIR += hs-alex
|
SUBDIR += hs-alex
|
||||||
SUBDIR += hs-binary-ghc
|
SUBDIR += hs-binary-ghc
|
||||||
SUBDIR += hs-c2hs
|
SUBDIR += hs-c2hs
|
||||||
|
|
75
devel/hs-TypeCompose/Makefile
Normal file
75
devel/hs-TypeCompose/Makefile
Normal file
|
@ -0,0 +1,75 @@
|
||||||
|
# New ports collection makefile for: hs-TypeCompose
|
||||||
|
# Date created: December 20 2009
|
||||||
|
# Whom: Giuseppe Pilichi aka Jacula Modyun <jacula@gmail.com>
|
||||||
|
#
|
||||||
|
# $FreeBSD$
|
||||||
|
#
|
||||||
|
|
||||||
|
PORTNAME= TypeCompose
|
||||||
|
PORTVERSION= 0.6.7
|
||||||
|
CATEGORIES= devel haskell
|
||||||
|
MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
|
||||||
|
PKGNAMEPREFIX= hs-
|
||||||
|
|
||||||
|
MAINTAINER= jacula@gmail.com
|
||||||
|
COMMENT= Type composition classes and instances for Haskell
|
||||||
|
|
||||||
|
BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
|
||||||
|
RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
|
||||||
|
|
||||||
|
GHC_VERSION= 6.10.4
|
||||||
|
TYPECOMPOSE_VERSION= ${PORTVERSION}
|
||||||
|
|
||||||
|
GHC_CMD= ${LOCALBASE}/bin/ghc
|
||||||
|
SETUP_CMD= ./setup
|
||||||
|
|
||||||
|
DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
|
||||||
|
TYPECOMPOSE_LIBDIR_REL= lib/${DISTNAME}
|
||||||
|
|
||||||
|
PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
|
||||||
|
TYPECOMPOSE_VERSION=${TYPECOMPOSE_VERSION} \
|
||||||
|
TYPECOMPOSE_LIBDIR_REL=${TYPECOMPOSE_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}/${TYPECOMPOSE_LIBDIR_REL}/register.sh
|
||||||
|
|
||||||
|
post-install:
|
||||||
|
${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
|
||||||
|
|
||||||
|
.include <bsd.port.mk>
|
3
devel/hs-TypeCompose/distinfo
Normal file
3
devel/hs-TypeCompose/distinfo
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
MD5 (TypeCompose-0.6.7.tar.gz) = 3440bb581e2845e9333f969ab5ff250c
|
||||||
|
SHA256 (TypeCompose-0.6.7.tar.gz) = 69168e3d239831426520687508b94f5a3d1fe6ee6490ac8cf9c384a9996769bf
|
||||||
|
SIZE (TypeCompose-0.6.7.tar.gz) = 18569
|
5
devel/hs-TypeCompose/pkg-descr
Normal file
5
devel/hs-TypeCompose/pkg-descr
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
TypeCompose provides some Haskell classes and instances for forms of
|
||||||
|
type composition, as well as some modules who have not yet found a
|
||||||
|
home.
|
||||||
|
|
||||||
|
WWW: http://haskell.org/haskellwiki/TypeCompose
|
23
devel/hs-TypeCompose/pkg-plist
Normal file
23
devel/hs-TypeCompose/pkg-plist
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
@comment $FreeBSD$
|
||||||
|
%%TYPECOMPOSE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Compose.hi
|
||||||
|
%%TYPECOMPOSE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Instances.hi
|
||||||
|
%%TYPECOMPOSE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Bijection.hi
|
||||||
|
%%TYPECOMPOSE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/CxMonoid.hi
|
||||||
|
%%TYPECOMPOSE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Lambda.hi
|
||||||
|
%%TYPECOMPOSE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Pair.hi
|
||||||
|
%%TYPECOMPOSE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Partial.hi
|
||||||
|
%%TYPECOMPOSE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/RefMonad.hi
|
||||||
|
%%TYPECOMPOSE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Title.hi
|
||||||
|
%%TYPECOMPOSE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Zip.hi
|
||||||
|
%%TYPECOMPOSE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSTypeCompose-%%TYPECOMPOSE_VERSION%%.o
|
||||||
|
%%TYPECOMPOSE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSTypeCompose-%%TYPECOMPOSE_VERSION%%.a
|
||||||
|
%%TYPECOMPOSE_LIBDIR_REL%%/register.sh
|
||||||
|
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
|
||||||
|
@dirrm %%TYPECOMPOSE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data
|
||||||
|
@dirrm %%TYPECOMPOSE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control
|
||||||
|
@dirrm %%TYPECOMPOSE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
|
||||||
|
@dirrm %%TYPECOMPOSE_LIBDIR_REL%%
|
||||||
|
@exec /bin/sh %D/%%TYPECOMPOSE_LIBDIR_REL%%/register.sh
|
||||||
|
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
|
||||||
|
@unexec %D/bin/ghc-pkg unregister TypeCompose
|
||||||
|
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
|
Loading…
Add table
Reference in a new issue