From f421e05f7b8aa6f3deba23f3b27b77de839f58ae Mon Sep 17 00:00:00 2001 From: kili Date: Tue, 27 Jan 2009 21:32:36 +0000 Subject: [PATCH] hscolour is a small Haskell script to colourise Haskell code. It currently has five output formats: ANSI terminal codes, HTML 3.2 with tags, HTML 4.01 with CSS, LaTeX, and mIRC chat client codes. ok giovanni@ (who spotted an empty and obsolete include dir in the PLIST), okan@ (who don't get the $V cleanup now -- sorry), sthen@ ("I'm all for having more ports where the word colour is spelt correctly) --- devel/hscolour/Makefile | 49 +++++++++++++++++++++++++ devel/hscolour/distinfo | 5 +++ devel/hscolour/pkg/DESCR | 4 ++ devel/hscolour/pkg/PLIST | 79 ++++++++++++++++++++++++++++++++++++++++ 4 files changed, 137 insertions(+) create mode 100644 devel/hscolour/Makefile create mode 100644 devel/hscolour/distinfo create mode 100644 devel/hscolour/pkg/DESCR create mode 100644 devel/hscolour/pkg/PLIST diff --git a/devel/hscolour/Makefile b/devel/hscolour/Makefile new file mode 100644 index 00000000000..014af269e05 --- /dev/null +++ b/devel/hscolour/Makefile @@ -0,0 +1,49 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2009/01/27 21:32:36 kili Exp $ + +COMMENT = Haskell code colourizer + +V = 1.10.1 +DISTNAME = hscolour-$V +CATEGORIES = devel + +HOMEPAGE = http://www.cs.york.ac.uk/fp/darcs/hscolour/ + +# GPL2 +PERMIT_PACKAGE_CDROM = Yes +PERMIT_PACKAGE_FTP = Yes +PERMIT_DISTFILES_CDROM =Yes +PERMIT_DISTFILES_FTP = Yes + +WANTLIB = c m + +MODULES = lang/ghc + +MASTER_SITES = http://hackage.haskell.org/packages/archive/hscolour/$V/ \ + ftp://ftp.cs.york.ac.uk/pub/haskell/contrib/ + +LIB_DEPENDS = gmp::devel/gmp + +SETUP_CONF_ARGS = configure -g --prefix=${PREFIX} +SETUP_CONF_ENV = HOME=${PORTHOME} ${CONFIGURE_ENV} +SETUP_PROG = ${WRKSRC}/Setup +SUBST_VARS = MODGHC_VER V + +NO_REGRESS = Yes + +do-configure: + @cd ${WRKSRC} && ghc --make -o ${SETUP_PROG} Setup.hs + @cd ${WRKBUILD} && exec ${SETENV} ${SETUP_CONF_ENV} \ + ${SETUP_PROG} ${SETUP_CONF_ARGS} + +do-build: + @cd ${WRKBUILD} && exec ${SETENV} ${MAKE_ENV} ${SETUP_PROG} build + +do-install: + @cd ${WRKBUILD} && exec ${SETENV} ${MAKE_ENV} \ + ${SETUP_PROG} copy --destdir=${DESTDIR} + +post-install: + ${INSTALL_DATA_DIR} ${PREFIX}/share/doc + cd ${WRKSRC}/docs && umask 022 && pax -rw hscolour ${PREFIX}/share/doc + +.include diff --git a/devel/hscolour/distinfo b/devel/hscolour/distinfo new file mode 100644 index 00000000000..0d08844248d --- /dev/null +++ b/devel/hscolour/distinfo @@ -0,0 +1,5 @@ +MD5 (hscolour-1.10.1.tar.gz) = bxw/8UXRj4bqZoBf2LtiXg== +RMD160 (hscolour-1.10.1.tar.gz) = o//4fP2CXDgXYYpARaYh3O3y0eU= +SHA1 (hscolour-1.10.1.tar.gz) = +dnD7zoEVigJzyUa1b4PgTbj9ak= +SHA256 (hscolour-1.10.1.tar.gz) = KT8kuDc74dcNnlpLjTxScWatZFtKyYPBpvxZmcRKLTY= +SIZE (hscolour-1.10.1.tar.gz) = 51292 diff --git a/devel/hscolour/pkg/DESCR b/devel/hscolour/pkg/DESCR new file mode 100644 index 00000000000..4a5b0b519d9 --- /dev/null +++ b/devel/hscolour/pkg/DESCR @@ -0,0 +1,4 @@ +hscolour is a small Haskell script to colourise Haskell code. It +currently has five output formats: ANSI terminal codes, HTML 3.2 +with tags, HTML 4.01 with CSS, LaTeX, and mIRC chat client +codes. diff --git a/devel/hscolour/pkg/PLIST b/devel/hscolour/pkg/PLIST new file mode 100644 index 00000000000..25c33fd0b9d --- /dev/null +++ b/devel/hscolour/pkg/PLIST @@ -0,0 +1,79 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2009/01/27 21:32:36 kili Exp $ +@bin bin/HsColour +lib/hscolour-${V}/ +lib/hscolour-${V}/ghc-${MODGHC_VER}/ +lib/hscolour-${V}/ghc-${MODGHC_VER}/HShscolour-${V}.o +lib/hscolour-${V}/ghc-${MODGHC_VER}/Language/ +lib/hscolour-${V}/ghc-${MODGHC_VER}/Language/Haskell/ +lib/hscolour-${V}/ghc-${MODGHC_VER}/Language/Haskell/HsColour/ +lib/hscolour-${V}/ghc-${MODGHC_VER}/Language/Haskell/HsColour.hi +lib/hscolour-${V}/ghc-${MODGHC_VER}/Language/Haskell/HsColour/ANSI.hi +lib/hscolour-${V}/ghc-${MODGHC_VER}/Language/Haskell/HsColour/Anchors.hi +lib/hscolour-${V}/ghc-${MODGHC_VER}/Language/Haskell/HsColour/CSS.hi +lib/hscolour-${V}/ghc-${MODGHC_VER}/Language/Haskell/HsColour/Classify.hi +lib/hscolour-${V}/ghc-${MODGHC_VER}/Language/Haskell/HsColour/ColourHighlight.hi +lib/hscolour-${V}/ghc-${MODGHC_VER}/Language/Haskell/HsColour/Colourise.hi +lib/hscolour-${V}/ghc-${MODGHC_VER}/Language/Haskell/HsColour/General.hi +lib/hscolour-${V}/ghc-${MODGHC_VER}/Language/Haskell/HsColour/HTML.hi +lib/hscolour-${V}/ghc-${MODGHC_VER}/Language/Haskell/HsColour/LaTeX.hi +lib/hscolour-${V}/ghc-${MODGHC_VER}/Language/Haskell/HsColour/MIRC.hi +lib/hscolour-${V}/ghc-${MODGHC_VER}/Language/Haskell/HsColour/TTY.hi +@comment lib/hscolour-${V}/ghc-${MODGHC_VER}/include/ +lib/hscolour-${V}/ghc-${MODGHC_VER}/libHShscolour-${V}.a +share/doc/hscolour/ +share/doc/hscolour/Language/ +share/doc/hscolour/Language-Haskell-HsColour-ANSI.html +share/doc/hscolour/Language-Haskell-HsColour-Anchors.html +share/doc/hscolour/Language-Haskell-HsColour-CSS.html +share/doc/hscolour/Language-Haskell-HsColour-Classify.html +share/doc/hscolour/Language-Haskell-HsColour-ColourHighlight.html +share/doc/hscolour/Language-Haskell-HsColour-Colourise.html +share/doc/hscolour/Language-Haskell-HsColour-General.html +share/doc/hscolour/Language-Haskell-HsColour-HTML.html +share/doc/hscolour/Language-Haskell-HsColour-LaTeX.html +share/doc/hscolour/Language-Haskell-HsColour-MIRC.html +share/doc/hscolour/Language-Haskell-HsColour-TTY.html +share/doc/hscolour/Language-Haskell-HsColour.html +share/doc/hscolour/Language/Haskell/ +share/doc/hscolour/Language/Haskell/HsColour/ +share/doc/hscolour/Language/Haskell/HsColour.html +share/doc/hscolour/Language/Haskell/HsColour/ANSI.html +share/doc/hscolour/Language/Haskell/HsColour/Anchors.html +share/doc/hscolour/Language/Haskell/HsColour/CSS.html +share/doc/hscolour/Language/Haskell/HsColour/Classify.html +share/doc/hscolour/Language/Haskell/HsColour/ColourHighlight.html +share/doc/hscolour/Language/Haskell/HsColour/Colourise.html +share/doc/hscolour/Language/Haskell/HsColour/General.html +share/doc/hscolour/Language/Haskell/HsColour/HTML.html +share/doc/hscolour/Language/Haskell/HsColour/LaTeX.html +share/doc/hscolour/Language/Haskell/HsColour/MIRC.html +share/doc/hscolour/Language/Haskell/HsColour/TTY.html +share/doc/hscolour/doc-index-B.html +share/doc/hscolour/doc-index-C.html +share/doc/hscolour/doc-index-D.html +share/doc/hscolour/doc-index-E.html +share/doc/hscolour/doc-index-F.html +share/doc/hscolour/doc-index-G.html +share/doc/hscolour/doc-index-H.html +share/doc/hscolour/doc-index-I.html +share/doc/hscolour/doc-index-K.html +share/doc/hscolour/doc-index-L.html +share/doc/hscolour/doc-index-M.html +share/doc/hscolour/doc-index-N.html +share/doc/hscolour/doc-index-O.html +share/doc/hscolour/doc-index-R.html +share/doc/hscolour/doc-index-S.html +share/doc/hscolour/doc-index-T.html +share/doc/hscolour/doc-index-U.html +share/doc/hscolour/doc-index-V.html +share/doc/hscolour/doc-index-W.html +share/doc/hscolour/doc-index-Y.html +share/doc/hscolour/doc-index.html +share/doc/hscolour/haddock.css +share/doc/hscolour/haddock.js +share/doc/hscolour/haskell_icon.gif +share/doc/hscolour/index.html +share/doc/hscolour/minus.gif +share/doc/hscolour/plus.gif +share/hscolour-${V}/ +share/hscolour-${V}/hscolour.css