diff options
author | pgj <pgj@FreeBSD.org> | 2010-01-04 13:51:11 +0800 |
---|---|---|
committer | pgj <pgj@FreeBSD.org> | 2010-01-04 13:51:11 +0800 |
commit | 9e393717575deaf145fbe9ea2346210d7ea88863 (patch) | |
tree | 7afd6edeb678de3aa6bc3d0b991d9facc71a69fe | |
parent | bfd5e0f9a1d5f10d041a9e52c3f9aaec55d08444 (diff) | |
download | freebsd-ports-gnome-9e393717575deaf145fbe9ea2346210d7ea88863.tar.gz freebsd-ports-gnome-9e393717575deaf145fbe9ea2346210d7ea88863.tar.zst freebsd-ports-gnome-9e393717575deaf145fbe9ea2346210d7ea88863.zip |
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>
-rw-r--r-- | devel/Makefile | 1 | ||||
-rw-r--r-- | devel/hs-show/Makefile | 77 | ||||
-rw-r--r-- | devel/hs-show/distinfo | 3 | ||||
-rw-r--r-- | devel/hs-show/pkg-descr | 13 | ||||
-rw-r--r-- | devel/hs-show/pkg-plist | 16 |
5 files changed, 110 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile index e4b623a4cf67..5ca28ac514a3 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -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 diff --git a/devel/hs-show/Makefile b/devel/hs-show/Makefile new file mode 100644 index 000000000000..fdde5f3509db --- /dev/null +++ b/devel/hs-show/Makefile @@ -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> diff --git a/devel/hs-show/distinfo b/devel/hs-show/distinfo new file mode 100644 index 000000000000..d8c295f4313a --- /dev/null +++ b/devel/hs-show/distinfo @@ -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 diff --git a/devel/hs-show/pkg-descr b/devel/hs-show/pkg-descr new file mode 100644 index 000000000000..364da9dfcf19 --- /dev/null +++ b/devel/hs-show/pkg-descr @@ -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 diff --git a/devel/hs-show/pkg-plist b/devel/hs-show/pkg-plist new file mode 100644 index 000000000000..b1f6f7c5d0a6 --- /dev/null +++ b/devel/hs-show/pkg-plist @@ -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 |