aboutsummaryrefslogtreecommitdiff
path: root/devel/hs-ansi-wl-pprint
diff options
context:
space:
mode:
authorGabor Pali <pgj@FreeBSD.org>2010-05-21 21:53:38 +0000
committerGabor Pali <pgj@FreeBSD.org>2010-05-21 21:53:38 +0000
commita541b24598579e5fdc6d702f0cbeee1afa87f10f (patch)
tree2d5bc907781682c182da674805eab9023c9dd26f /devel/hs-ansi-wl-pprint
parentfd3b774de34babff72c1b507a0af99ca099d101e (diff)
Notes
Diffstat (limited to 'devel/hs-ansi-wl-pprint')
-rw-r--r--devel/hs-ansi-wl-pprint/Makefile31
-rw-r--r--devel/hs-ansi-wl-pprint/distinfo3
-rw-r--r--devel/hs-ansi-wl-pprint/pkg-descr5
-rw-r--r--devel/hs-ansi-wl-pprint/pkg-plist17
4 files changed, 56 insertions, 0 deletions
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