diff options
author | Gabor Pali <pgj@FreeBSD.org> | 2010-01-12 21:33:28 +0000 |
---|---|---|
committer | Gabor Pali <pgj@FreeBSD.org> | 2010-01-12 21:33:28 +0000 |
commit | 08e89a2935927b1b7ef9240c3ea6804542e89bd4 (patch) | |
tree | a92869b2efb1681b89c96bda095d188e835d446e /devel/hs-hslogger | |
parent | 124bd509d955fd50aab5844a6bd7499f50bd10a2 (diff) | |
download | ports-08e89a2935927b1b7ef9240c3ea6804542e89bd4.tar.gz ports-08e89a2935927b1b7ef9240c3ea6804542e89bd4.zip |
Notes
Diffstat (limited to 'devel/hs-hslogger')
-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 |
4 files changed, 109 insertions, 0 deletions
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 |