diff options
-rw-r--r-- | devel/Makefile | 1 | ||||
-rw-r--r-- | devel/hs-hslogger/Makefile | 75 | ||||
-rw-r--r-- | devel/hs-hslogger/distinfo | 3 | ||||
-rw-r--r-- | devel/hs-hslogger/pkg-descr | 9 | ||||
-rw-r--r-- | devel/hs-hslogger/pkg-plist | 22 |
5 files changed, 110 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile index 975720b90f31..bd2c327cdfce 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -554,6 +554,7 @@ SUBDIR += hs-hint SUBDIR += hs-hmake SUBDIR += hs-hoogle + SUBDIR += hs-hslogger SUBDIR += hs-idoc SUBDIR += hs-language-c-ghc SUBDIR += hs-lazysmallcheck-ghc diff --git a/devel/hs-hslogger/Makefile b/devel/hs-hslogger/Makefile new file mode 100644 index 000000000000..2891e64f753b --- /dev/null +++ b/devel/hs-hslogger/Makefile @@ -0,0 +1,75 @@ +# New ports collection makefile for: hs-hslogger +# Date created: December 20 2009 +# Whom: Giuseppe Pilichi aka Jacula Modyun <jacula@gmail.com> +# +# $FreeBSD$ +# + +PORTNAME= hslogger +PORTVERSION= 1.0.7 +CATEGORIES= devel haskell +MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/ +PKGNAMEPREFIX= hs- + +MAINTAINER= jacula@gmail.com +COMMENT= Versatile logging framework for Haskell + +BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc +RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc + +GHC_VERSION= 6.10.4 +HSLOGGER_VERSION= ${PORTVERSION} + +GHC_CMD= ${LOCALBASE}/bin/ghc +SETUP_CMD= ./setup + +DOCSDIR= ${PREFIX}/share/doc/${DISTNAME} +HSLOGGER_LIBDIR_REL= lib/${DISTNAME} + +PLIST_SUB= GHC_VERSION=${GHC_VERSION} \ + HSLOGGER_VERSION=${HSLOGGER_VERSION} \ + HSLOGGER_LIBDIR_REL=${HSLOGGER_LIBDIR_REL} + +.if defined(NOPORTDOCS) +PLIST_SUB+= NOPORTDOCS="" +.else +PLIST_SUB+= NOPORTDOCS="@comment " +.endif + +.if !defined(NOPORTDOCS) + +PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK) +.if !empty(PORT_HADDOCK:M?0) +BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock +.endif +BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour + +HSCOLOUR_VERSION= 1.15 +HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION} + +PORTDOCS= * +.endif + +.SILENT: + +do-configure: + cd ${WRKSRC} && ${GHC_CMD} --make Setup.hs -o setup -package Cabal \ + && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX} + +do-build: + cd ${WRKSRC} && ${SETUP_CMD} build \ + && ${SETUP_CMD} register --gen-script + +.if !defined(NOPORTDOCS) + cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \ + --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css +.endif + +do-install: + cd ${WRKSRC} && ${SETUP_CMD} install \ + && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${HSLOGGER_LIBDIR_REL}/register.sh + +post-install: + ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old + +.include <bsd.port.mk> diff --git a/devel/hs-hslogger/distinfo b/devel/hs-hslogger/distinfo new file mode 100644 index 000000000000..9303136a246a --- /dev/null +++ b/devel/hs-hslogger/distinfo @@ -0,0 +1,3 @@ +MD5 (hslogger-1.0.7.tar.gz) = 74ff79b2abfec7e24b96925f06112c9f +SHA256 (hslogger-1.0.7.tar.gz) = 7f6d2ceba2424db0536f9e30a728d2965d850c925f078052f82567ea9f526839 +SIZE (hslogger-1.0.7.tar.gz) = 42051 diff --git a/devel/hs-hslogger/pkg-descr b/devel/hs-hslogger/pkg-descr new file mode 100644 index 000000000000..b6ba6797caae --- /dev/null +++ b/devel/hs-hslogger/pkg-descr @@ -0,0 +1,9 @@ +Package hslogger is a logging framework for Haskell, roughly similar to +Python's logging module, and lets each log message have a priority and +source be associated with it. + +The programmer can then define global handlers that route or filter +messages based on the priority and source. hslogger also has a syslog +handler built in. + +WWW: http://software.complete.org/hslogger diff --git a/devel/hs-hslogger/pkg-plist b/devel/hs-hslogger/pkg-plist new file mode 100644 index 000000000000..e5fcf9ba8fce --- /dev/null +++ b/devel/hs-hslogger/pkg-plist @@ -0,0 +1,22 @@ +@comment $FreeBSD$ +%%HSLOGGER_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HShslogger-%%HSLOGGER_VERSION%%.o +%%HSLOGGER_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Log.hi +%%HSLOGGER_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Log/Handler.hi +%%HSLOGGER_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Log/Handler/Growl.hi +%%HSLOGGER_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Log/Handler/Log4jXML.hi +%%HSLOGGER_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Log/Handler/Simple.hi +%%HSLOGGER_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Log/Handler/Syslog.hi +%%HSLOGGER_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Log/Logger.hi +%%HSLOGGER_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHShslogger-%%HSLOGGER_VERSION%%.a +%%HSLOGGER_LIBDIR_REL%%/register.sh +%%NOPORTDOCS%%%%DOCSDIR%%/COPYRIGHT +%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%% +@dirrm %%HSLOGGER_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Log/Handler +@dirrm %%HSLOGGER_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Log +@dirrm %%HSLOGGER_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System +@dirrm %%HSLOGGER_LIBDIR_REL%%/ghc-%%GHC_VERSION%% +@dirrm %%HSLOGGER_LIBDIR_REL%% +@exec /bin/sh %D/%%HSLOGGER_LIBDIR_REL%%/register.sh +@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old +@unexec %D/bin/ghc-pkg unregister hslogger +@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old |