From ccd06addc1de1453a863719daa068d477a65d1ba Mon Sep 17 00:00:00 2001 From: pgj Date: Fri, 21 May 2010 21:53:38 +0000 Subject: This is a pretty printing library based on Wadler's paper "A Prettier Printer". It has been enhanced with support for ANSI terminal colored output using the ansi-terminal package. WWW: http://github.com/batterseapower/ansi-wl-pprint --- devel/Makefile | 1 + devel/hs-ansi-wl-pprint/Makefile | 31 +++++++++++++++++++++++++++++++ devel/hs-ansi-wl-pprint/distinfo | 3 +++ devel/hs-ansi-wl-pprint/pkg-descr | 5 +++++ devel/hs-ansi-wl-pprint/pkg-plist | 17 +++++++++++++++++ 5 files changed, 57 insertions(+) create mode 100644 devel/hs-ansi-wl-pprint/Makefile create mode 100644 devel/hs-ansi-wl-pprint/distinfo create mode 100644 devel/hs-ansi-wl-pprint/pkg-descr create mode 100644 devel/hs-ansi-wl-pprint/pkg-plist (limited to 'devel') diff --git a/devel/Makefile b/devel/Makefile index ad4143483873..58955c8fefce 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -554,6 +554,7 @@ SUBDIR += hs-TypeCompose SUBDIR += hs-alex SUBDIR += hs-ansi-terminal + SUBDIR += hs-ansi-wl-pprint SUBDIR += hs-arrows SUBDIR += hs-binary-ghc SUBDIR += hs-bsd-sysctl diff --git a/devel/hs-ansi-wl-pprint/Makefile b/devel/hs-ansi-wl-pprint/Makefile new file mode 100644 index 000000000000..8255d47bf323 --- /dev/null +++ b/devel/hs-ansi-wl-pprint/Makefile @@ -0,0 +1,31 @@ +# New ports collection makefile for: hs-ansi-wl-pprint +# Date created: May 21, 2010 +# Whom: Gabor Pali +# +# $FreeBSD$ +# + +PORTNAME= ansi-wl-pprint +PORTVERSION= 0.5.1 +CATEGORIES= devel haskell + +MAINTAINER= haskell@FreeBSD.org +COMMENT= The Wadler/Leijen Pretty Printer for colored ANSI terminal output + +USE_HACKAGE= ansi-terminal>=0.4.0 + +OPTIONS= EXAMPLE "Build the example application" off + +.include + +.if defined(WITH_EXAMPLE) +CONFIGURE_ARGS+= --flags="Example" +EXECUTABLE= ansi-wl-pprint-example +PLIST_SUB+= MAYBE_EXAMPLE="" +.else +CONFIGURE_ARGS+= --flags="-Example" +PLIST_SUB+= MAYBE_EXAMPLE="@comment " +.endif + +.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk" +.include diff --git a/devel/hs-ansi-wl-pprint/distinfo b/devel/hs-ansi-wl-pprint/distinfo new file mode 100644 index 000000000000..9a5baa563936 --- /dev/null +++ b/devel/hs-ansi-wl-pprint/distinfo @@ -0,0 +1,3 @@ +MD5 (ansi-wl-pprint-0.5.1.tar.gz) = d427a18a5a071b8dbcdff28633f4b800 +SHA256 (ansi-wl-pprint-0.5.1.tar.gz) = aa5e0ba85c46f2f71970645066a8efeeea2c663f222185968fda8e09383ef7e0 +SIZE (ansi-wl-pprint-0.5.1.tar.gz) = 13492 diff --git a/devel/hs-ansi-wl-pprint/pkg-descr b/devel/hs-ansi-wl-pprint/pkg-descr new file mode 100644 index 000000000000..d50b3ea2a6f1 --- /dev/null +++ b/devel/hs-ansi-wl-pprint/pkg-descr @@ -0,0 +1,5 @@ +This is a pretty printing library based on Wadler's paper "A Prettier +Printer". It has been enhanced with support for ANSI terminal colored +output using the ansi-terminal package. + +WWW: http://github.com/batterseapower/ansi-wl-pprint diff --git a/devel/hs-ansi-wl-pprint/pkg-plist b/devel/hs-ansi-wl-pprint/pkg-plist new file mode 100644 index 000000000000..dcc808a4a0f7 --- /dev/null +++ b/devel/hs-ansi-wl-pprint/pkg-plist @@ -0,0 +1,17 @@ +@comment $FreeBSD$ +%%MAYBE_EXAMPLE%%bin/ansi-wl-pprint-example +%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/PrettyPrint/ANSI/Leijen.hi +%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o +%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a +%%LIBDIR_REL%%/register.sh +%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE +%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%% +@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/PrettyPrint/ANSI +@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/PrettyPrint +@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text +@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%% +@dirrm %%LIBDIR_REL%% +@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh +@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old +@unexec %D/bin/ghc-pkg unregister %%PORTNAME%%-%%PORTVERSION%% +@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old -- cgit