mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-17 03:25:46 +00:00
This Haskell package provides ShowQ, ShowFun, and SimpleReflect.
* ShowFun gives a Typeable-dependent instance for showing functions as their type. * ShowIO does the same for IO actions. * ShowQ adds SmallCheck & QuickCheck support. * SimpleReflect allows us to literally see how functions 'expand', through appropriate Show magic. WWW: http://hackage.haskell.org/package/show PR: ports/142282 Submitted by: Jacula Modyun <jacula(at)gmail.com>
This commit is contained in:
parent
76f8620741
commit
19158030a0
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=247105
@ -554,6 +554,7 @@
|
||||
SUBDIR += hs-pcre-light-ghc
|
||||
SUBDIR += hs-readline
|
||||
SUBDIR += hs-safe
|
||||
SUBDIR += hs-show
|
||||
SUBDIR += hs-smallcheck
|
||||
SUBDIR += hs-uniplate
|
||||
SUBDIR += hs-utf8-string-ghc
|
||||
|
77
devel/hs-show/Makefile
Normal file
77
devel/hs-show/Makefile
Normal file
@ -0,0 +1,77 @@
|
||||
# New ports collection makefile for: hs-show
|
||||
# Date created: December 20 2009
|
||||
# Whom: Giuseppe Pilichi aka Jacula Modyun <jacula@gmail.com>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= show
|
||||
PORTVERSION= 0.3.3
|
||||
CATEGORIES= devel haskell
|
||||
MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
|
||||
PKGNAMEPREFIX= hs-
|
||||
|
||||
MAINTAINER= jacula@gmail.com
|
||||
COMMENT= Haskell Show instances for Lambdabot
|
||||
|
||||
BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc \
|
||||
hs-smallcheck>=0.4:${PORTSDIR}/devel/hs-smallcheck
|
||||
RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc \
|
||||
hs-smallcheck>=0.4:${PORTSDIR}/devel/hs-smallcheck
|
||||
|
||||
GHC_VERSION= 6.10.4
|
||||
SHOW_VERSION= ${PORTVERSION}
|
||||
|
||||
GHC_CMD= ${LOCALBASE}/bin/ghc
|
||||
SETUP_CMD= ./setup
|
||||
|
||||
DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
|
||||
SHOW_LIBDIR_REL= lib/${DISTNAME}
|
||||
|
||||
PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
|
||||
SHOW_VERSION=${SHOW_VERSION} \
|
||||
SHOW_LIBDIR_REL=${SHOW_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.hs -o setup -package Cabal \
|
||||
&& ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX} --constraint='base<4'
|
||||
|
||||
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}/${SHOW_LIBDIR_REL}/register.sh
|
||||
|
||||
post-install:
|
||||
${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
|
||||
|
||||
.include <bsd.port.mk>
|
3
devel/hs-show/distinfo
Normal file
3
devel/hs-show/distinfo
Normal file
@ -0,0 +1,3 @@
|
||||
MD5 (show-0.3.3.tar.gz) = b183d20f19439a9accb3b96816463aff
|
||||
SHA256 (show-0.3.3.tar.gz) = 256d32a78723add2060f9bfc2c4df5d3f1f872a8e3ba8a94234b5ab5266f01ba
|
||||
SIZE (show-0.3.3.tar.gz) = 11522
|
13
devel/hs-show/pkg-descr
Normal file
13
devel/hs-show/pkg-descr
Normal file
@ -0,0 +1,13 @@
|
||||
This Haskell package provides ShowQ, ShowFun, and SimpleReflect.
|
||||
|
||||
* ShowFun gives a Typeable-dependent instance for showing
|
||||
functions as their type.
|
||||
|
||||
* ShowIO does the same for IO actions.
|
||||
|
||||
* ShowQ adds SmallCheck & QuickCheck support.
|
||||
|
||||
* SimpleReflect allows us to literally see how functions
|
||||
'expand', through appropriate Show magic.
|
||||
|
||||
WWW: http://hackage.haskell.org/package/show
|
16
devel/hs-show/pkg-plist
Normal file
16
devel/hs-show/pkg-plist
Normal file
@ -0,0 +1,16 @@
|
||||
@comment $FreeBSD$
|
||||
%%SHOW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSshow-%%SHOW_VERSION%%.o
|
||||
%%SHOW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/ShowFun.hi
|
||||
%%SHOW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/ShowIO.hi
|
||||
%%SHOW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/ShowQ.hi
|
||||
%%SHOW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/SimpleReflect.hi
|
||||
%%SHOW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSshow-%%SHOW_VERSION%%.a
|
||||
%%SHOW_LIBDIR_REL%%/register.sh
|
||||
%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
|
||||
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
|
||||
@dirrm %%SHOW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
|
||||
@dirrm %%SHOW_LIBDIR_REL%%
|
||||
@exec /bin/sh %D/%%SHOW_LIBDIR_REL%%/register.sh
|
||||
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
|
||||
@unexec %D/bin/ghc-pkg unregister show
|
||||
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
|
Loading…
Reference in New Issue
Block a user