diff options
author | pgj <pgj@FreeBSD.org> | 2010-05-22 05:53:38 +0800 |
---|---|---|
committer | pgj <pgj@FreeBSD.org> | 2010-05-22 05:53:38 +0800 |
commit | ccd06addc1de1453a863719daa068d477a65d1ba (patch) | |
tree | 13e263a4376cb574ee321ac112591a04fee81716 /devel | |
parent | 711ffe517d9f9cdc021be115e55b1a179dbbdb96 (diff) | |
download | freebsd-ports-gnome-ccd06addc1de1453a863719daa068d477a65d1ba.tar.gz freebsd-ports-gnome-ccd06addc1de1453a863719daa068d477a65d1ba.tar.zst freebsd-ports-gnome-ccd06addc1de1453a863719daa068d477a65d1ba.zip |
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
Diffstat (limited to 'devel')
-rw-r--r-- | devel/Makefile | 1 | ||||
-rw-r--r-- | devel/hs-ansi-wl-pprint/Makefile | 31 | ||||
-rw-r--r-- | devel/hs-ansi-wl-pprint/distinfo | 3 | ||||
-rw-r--r-- | devel/hs-ansi-wl-pprint/pkg-descr | 5 | ||||
-rw-r--r-- | devel/hs-ansi-wl-pprint/pkg-plist | 17 |
5 files changed, 57 insertions, 0 deletions
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 <pgj@FreeBSD.org> +# +# $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 <bsd.port.options.mk> + +.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 <bsd.port.mk> 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 |