diff options
author | Oliver Braun <obraun@FreeBSD.org> | 2008-02-29 19:54:21 +0000 |
---|---|---|
committer | Oliver Braun <obraun@FreeBSD.org> | 2008-02-29 19:54:21 +0000 |
commit | a3167b5cde688689f4d9149d491ac1226b9d4d57 (patch) | |
tree | ed314ffd0d700dcf0610966febc62b5b1003006e /print | |
parent | 13bc5abda93fc801e2c7aeb3bf8339564580bb51 (diff) | |
download | ports-a3167b5cde688689f4d9149d491ac1226b9d4d57.tar.gz ports-a3167b5cde688689f4d9149d491ac1226b9d4d57.zip |
Notes
Diffstat (limited to 'print')
-rw-r--r-- | print/Makefile | 1 | ||||
-rw-r--r-- | print/hs-hscolour/Makefile | 60 | ||||
-rw-r--r-- | print/hs-hscolour/distinfo | 3 | ||||
-rw-r--r-- | print/hs-hscolour/pkg-descr | 24 | ||||
-rw-r--r-- | print/hs-hscolour/pkg-plist | 30 |
5 files changed, 118 insertions, 0 deletions
diff --git a/print/Makefile b/print/Makefile index cc089f9e4714..065b87543ca8 100644 --- a/print/Makefile +++ b/print/Makefile @@ -114,6 +114,7 @@ SUBDIR += hp2xx SUBDIR += hpijs SUBDIR += hplip + SUBDIR += hs-hscolour SUBDIR += html2latex SUBDIR += html2ps-a4 SUBDIR += html2ps-letter diff --git a/print/hs-hscolour/Makefile b/print/hs-hscolour/Makefile new file mode 100644 index 000000000000..d638d699991c --- /dev/null +++ b/print/hs-hscolour/Makefile @@ -0,0 +1,60 @@ +# New ports collection makefile for: hs-hscolour +# Date created: February 22 2008 +# Whom: Giuseppe Pilichi aka Jacula Modyun <jacula@gmail.com> +# +# $FreeBSD$ +# + +PORTNAME= hscolour +PORTVERSION= 1.9 +CATEGORIES= print haskell +MASTER_SITES= ftp://ftp.cs.york.ac.uk/pub/haskell/contrib/ +PKGNAMEPREFIX= hs- + +MAINTAINER= jacula@gmail.com +COMMENT= Colourise Haskell code + +.if !defined(SLAVE) +BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc +.else +NO_PKG_REGISTER= +.endif + +GHC_VERSION= 6.8.2 +HSCOLOUR_VERSION= ${PORTVERSION} + +CABAL_CMD= runghc Setup.hs + +DATADIR= ${PREFIX}/share/${DISTNAME} +HSCOLOUR_LIBDIR_REL= lib/${DISTNAME} +DOCSDIR= ${PREFIX}/share/doc/${DISTNAME} + +PLIST_SUB= GHC_VERSION=${GHC_VERSION} \ + DATADIR_REL=${DATADIR_REL} \ + HSCOLOUR_LIBDIR_REL=${HSCOLOUR_LIBDIR_REL} \ + HSCOLOUR_VERSION=${HSCOLOUR_VERSION} \ + DOCSDIR_REL=${DOCSDIR_REL} + +.SILENT: + +do-configure: + cd ${WRKSRC} && ${CABAL_CMD} configure --ghc --prefix=${PREFIX} + +do-build: + cd ${WRKSRC} && ${CABAL_CMD} build +.if !defined(SLAVE) + cd ${WRKSRC} && ${CABAL_CMD} register --gen-script +.endif + +do-install: + cd ${WRKSRC} && ${CABAL_CMD} install + +post-install: + ${STRIP_CMD} ${PREFIX}/bin/HsColour +.if !defined(SLAVE) + cd ${WRKSRC} && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${HSCOLOUR_LIBDIR_REL}/register.sh && \ + ${INSTALL_DATA} README ${DOCSDIR}/README +.endif + @${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old + +.include <bsd.port.mk> diff --git a/print/hs-hscolour/distinfo b/print/hs-hscolour/distinfo new file mode 100644 index 000000000000..55a92fe29766 --- /dev/null +++ b/print/hs-hscolour/distinfo @@ -0,0 +1,3 @@ +MD5 (hscolour-1.9.tar.gz) = badfe50d4215f23d0e17928b24f80773 +SHA256 (hscolour-1.9.tar.gz) = 9d961264fe86f7128673c624943062ea0af19b1c80e303fcdb6957cadc5ac774 +SIZE (hscolour-1.9.tar.gz) = 43119 diff --git a/print/hs-hscolour/pkg-descr b/print/hs-hscolour/pkg-descr new file mode 100644 index 000000000000..90b104f6a3a0 --- /dev/null +++ b/print/hs-hscolour/pkg-descr @@ -0,0 +1,24 @@ +hscolour is a small Haskell script to colourise Haskell +code. It currently has four output formats: + + ANSI terminal codes, HTML 3.2 with <font> tags, + HTML 4.01 with CSS, and LaTeX. + +author: Malcolm Wallace +maintainer: Malcolm Wallace +license: GPL +WWW: http://www.cs.york.ac.uk/fp/darcs/hscolour +package-url: ftp://ftp.cs.york.ac.uk/pub/haskell/contrib/ +Exposed-Modules: + Language.Haskell.HsColour, + Language.Haskell.HsColour.ANSI, + Language.Haskell.HsColour.Anchors, + Language.Haskell.HsColour.Classify, + Language.Haskell.HsColour.ColourHighlight, + Language.Haskell.HsColour.Colourise, + Language.Haskell.HsColour.TTY, + Language.Haskell.HsColour.HTML, + Language.Haskell.HsColour.LaTeX, + Language.Haskell.HsColour.General, + Language.Haskell.HsColour.MIRC, + Language.Haskell.HsColour.CSS diff --git a/print/hs-hscolour/pkg-plist b/print/hs-hscolour/pkg-plist new file mode 100644 index 000000000000..3ccccd5834fc --- /dev/null +++ b/print/hs-hscolour/pkg-plist @@ -0,0 +1,30 @@ +bin/HsColour +%%HSCOLOUR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HShscolour-%%HSCOLOUR_VERSION%%.o +%%HSCOLOUR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell/HsColour.hi +%%HSCOLOUR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell/HsColour/ANSI.hi +%%HSCOLOUR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell/HsColour/Anchors.hi +%%HSCOLOUR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell/HsColour/CSS.hi +%%HSCOLOUR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell/HsColour/Classify.hi +%%HSCOLOUR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell/HsColour/ColourHighlight.hi +%%HSCOLOUR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell/HsColour/Colourise.hi +%%HSCOLOUR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell/HsColour/General.hi +%%HSCOLOUR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell/HsColour/HTML.hi +%%HSCOLOUR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell/HsColour/LaTeX.hi +%%HSCOLOUR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell/HsColour/MIRC.hi +%%HSCOLOUR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell/HsColour/TTY.hi +%%HSCOLOUR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHShscolour-%%HSCOLOUR_VERSION%%.a +%%HSCOLOUR_LIBDIR_REL%%/register.sh +%%DOCSDIR_REL%%/LICENCE-GPL +%%DOCSDIR_REL%%/README +%%DATADIR_REL%%/hscolour.css +@dirrm %%DATADIR_REL%% +@dirrm %%DOCSDIR_REL%% +@dirrm %%HSCOLOUR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell/HsColour +@dirrm %%HSCOLOUR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell +@dirrm %%HSCOLOUR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language +@dirrm %%HSCOLOUR_LIBDIR_REL%%/ghc-%%GHC_VERSION%% +@dirrm %%HSCOLOUR_LIBDIR_REL%% +@exec /bin/sh %D/%%HSCOLOUR_LIBDIR_REL%%/register.sh +@exec rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old +@unexec if [ -x %D/bin/ghc-pkg ]; then %D/bin/ghc-pkg unregister hscolour || /usr/bin/true; fi +@unexec if [ -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old ]; then rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old || /usr/bin/true; fi |