diff options
author | Gabor Pali <pgj@FreeBSD.org> | 2010-01-12 22:20:16 +0000 |
---|---|---|
committer | Gabor Pali <pgj@FreeBSD.org> | 2010-01-12 22:20:16 +0000 |
commit | 4f4f72c671c80874fb812468dad73471d4e6e0bf (patch) | |
tree | 7c40fc76e2ffe412b6bb847043b711195b444771 /devel/hs-split | |
parent | bf227d90756e8fd07f52ed2d68b314f73c6aa60d (diff) | |
download | ports-4f4f72c671c80874fb812468dad73471d4e6e0bf.tar.gz ports-4f4f72c671c80874fb812468dad73471d4e6e0bf.zip |
Haskell Combinator library and utility functions for splitting lists.
WWW: http://hackage.haskell.org/package/split
PR: ports/142579
Submitted by: Jacula Modyun <jacula(at)gmail.com>
Notes
Notes:
svn path=/head/; revision=247762
Diffstat (limited to 'devel/hs-split')
-rw-r--r-- | devel/hs-split/Makefile | 75 | ||||
-rw-r--r-- | devel/hs-split/distinfo | 3 | ||||
-rw-r--r-- | devel/hs-split/pkg-descr | 3 | ||||
-rw-r--r-- | devel/hs-split/pkg-plist | 17 |
4 files changed, 98 insertions, 0 deletions
diff --git a/devel/hs-split/Makefile b/devel/hs-split/Makefile new file mode 100644 index 000000000000..c030f3bb510b --- /dev/null +++ b/devel/hs-split/Makefile @@ -0,0 +1,75 @@ +# New ports collection makefile for: hs-split +# Date created: January 10 2010 +# Whom: Giuseppe Pilichi aka Jacula Modyun <jacula@gmail.com> +# +# $FreeBSD$ +# + +PORTNAME= split +PORTVERSION= 0.1.2 +CATEGORIES= devel haskell +MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/ +PKGNAMEPREFIX= hs- + +MAINTAINER= jacula@gmail.com +COMMENT= Haskell combinator library for splitting lists + +BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc +RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc + +GHC_VERSION= 6.10.4 +SPLIT_VERSION= ${PORTVERSION} + +GHC_CMD= ${LOCALBASE}/bin/ghc +SETUP_CMD= ./setup + +DOCSDIR= ${PREFIX}/share/doc/${DISTNAME} +SPLIT_LIBDIR_REL= lib/${DISTNAME} + +PLIST_SUB= GHC_VERSION=${GHC_VERSION} \ + SPLIT_VERSION=${SPLIT_VERSION} \ + SPLIT_LIBDIR_REL=${SPLIT_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.lhs -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}/${SPLIT_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-split/distinfo b/devel/hs-split/distinfo new file mode 100644 index 000000000000..50eb5cef0ec3 --- /dev/null +++ b/devel/hs-split/distinfo @@ -0,0 +1,3 @@ +MD5 (split-0.1.2.tar.gz) = 2ebd7a335bc12246b166dd298c6c7ac3 +SHA256 (split-0.1.2.tar.gz) = 53d6640fd898a3c5f565fc1c6ebe8c96fb2bf9949a77640177522bb6119ecd69 +SIZE (split-0.1.2.tar.gz) = 11506 diff --git a/devel/hs-split/pkg-descr b/devel/hs-split/pkg-descr new file mode 100644 index 000000000000..980c8c6c3353 --- /dev/null +++ b/devel/hs-split/pkg-descr @@ -0,0 +1,3 @@ +Haskell Combinator library and utility functions for splitting lists. + +WWW: http://hackage.haskell.org/package/split diff --git a/devel/hs-split/pkg-plist b/devel/hs-split/pkg-plist new file mode 100644 index 000000000000..4bb162ba12b6 --- /dev/null +++ b/devel/hs-split/pkg-plist @@ -0,0 +1,17 @@ +@comment $FreeBSD$ +%%SPLIT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/List/Split.hi +%%SPLIT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/List/Split/Internals.hi +%%SPLIT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSsplit-%%SPLIT_VERSION%%.o +%%SPLIT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSsplit-%%SPLIT_VERSION%%.a +%%SPLIT_LIBDIR_REL%%/register.sh +%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE +%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%% +@dirrm %%SPLIT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/List/Split +@dirrm %%SPLIT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/List +@dirrm %%SPLIT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data +@dirrm %%SPLIT_LIBDIR_REL%%/ghc-%%GHC_VERSION%% +@dirrm %%SPLIT_LIBDIR_REL%% +@exec /bin/sh %D/%%SPLIT_LIBDIR_REL%%/register.sh +@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old +@unexec %D/bin/ghc-pkg unregister split +@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old |