diff options
author | pgj <pgj@FreeBSD.org> | 2010-01-13 06:20:16 +0800 |
---|---|---|
committer | pgj <pgj@FreeBSD.org> | 2010-01-13 06:20:16 +0800 |
commit | 29d11b787c9bd4fe4861fb89fa1e840c0e675625 (patch) | |
tree | 7f690d1fc9ed0fdc8c4bdb137adbf74f9770ea5d /devel | |
parent | 5cb501b97c228009838b1be6295006e7ca252764 (diff) | |
download | freebsd-ports-graphics-29d11b787c9bd4fe4861fb89fa1e840c0e675625.tar.gz freebsd-ports-graphics-29d11b787c9bd4fe4861fb89fa1e840c0e675625.tar.zst freebsd-ports-graphics-29d11b787c9bd4fe4861fb89fa1e840c0e675625.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>
Diffstat (limited to 'devel')
-rw-r--r-- | devel/Makefile | 1 | ||||
-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 |
5 files changed, 99 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile index b5c142fdc28..335606e029e 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -574,6 +574,7 @@ SUBDIR += hs-safe SUBDIR += hs-show SUBDIR += hs-smallcheck + SUBDIR += hs-split SUBDIR += hs-testpack SUBDIR += hs-transformers SUBDIR += hs-unamb diff --git a/devel/hs-split/Makefile b/devel/hs-split/Makefile new file mode 100644 index 00000000000..c030f3bb510 --- /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 00000000000..50eb5cef0ec --- /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 00000000000..980c8c6c335 --- /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 00000000000..4bb162ba12b --- /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 |