diff options
author | pgj <pgj@FreeBSD.org> | 2010-01-13 06:09:04 +0800 |
---|---|---|
committer | pgj <pgj@FreeBSD.org> | 2010-01-13 06:09:04 +0800 |
commit | 495fb4e66e57b9edcfcf5324216cce631375e90f (patch) | |
tree | 8d88176a1d216c8fae8b4a70cdabb8eb7f3f0b93 /devel | |
parent | 884958a2162490da241b0ee7a03ffe0c281f89bf (diff) | |
download | freebsd-ports-gnome-495fb4e66e57b9edcfcf5324216cce631375e90f.tar.gz freebsd-ports-gnome-495fb4e66e57b9edcfcf5324216cce631375e90f.tar.zst freebsd-ports-gnome-495fb4e66e57b9edcfcf5324216cce631375e90f.zip |
A Haskell library for working with files and directories. Includes code
for pattern matching, finding files, modifying file contents, and more.
WWW: http://hackage.haskell.org/package/FileManip
PR: ports/142502
Submitted by: Jacula Modyun <jacula(at)gmail.com>
Diffstat (limited to 'devel')
-rw-r--r-- | devel/Makefile | 1 | ||||
-rw-r--r-- | devel/hs-FileManip/Makefile | 81 | ||||
-rw-r--r-- | devel/hs-FileManip/distinfo | 3 | ||||
-rw-r--r-- | devel/hs-FileManip/pkg-descr | 4 | ||||
-rw-r--r-- | devel/hs-FileManip/pkg-plist | 18 | ||||
-rw-r--r-- | devel/hs-filemanip/Makefile | 81 | ||||
-rw-r--r-- | devel/hs-filemanip/distinfo | 3 | ||||
-rw-r--r-- | devel/hs-filemanip/pkg-descr | 4 | ||||
-rw-r--r-- | devel/hs-filemanip/pkg-plist | 18 |
9 files changed, 213 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile index f29a3c00141e..e4c7a3ca3902 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -527,6 +527,7 @@ SUBDIR += hp48xgcc SUBDIR += hptools SUBDIR += hs-DeepArrow + SUBDIR += hs-FileManip SUBDIR += hs-MemoTrie SUBDIR += hs-MissingH SUBDIR += hs-MonadCatchIO-mtl diff --git a/devel/hs-FileManip/Makefile b/devel/hs-FileManip/Makefile new file mode 100644 index 000000000000..84ba76c16a1d --- /dev/null +++ b/devel/hs-FileManip/Makefile @@ -0,0 +1,81 @@ +# New ports collection makefile for: hs-FileManip +# Date created: December 20 2009 +# Whom: Giuseppe Pilichi aka Jacula Modyun <jacula@gmail.com> +# +# $FreeBSD$ +# + +PORTNAME= FileManip +PORTVERSION= 0.3.2 +CATEGORIES= devel haskell +MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/ +PKGNAMEPREFIX= hs- + +MAINTAINER= jacula@gmail.com +COMMENT= Expressive file and directory manipulation for Haskell + +BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc +RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc + +GHC_VERSION= 6.10.4 +FILEMANIP_VERSION= ${PORTVERSION} + +GHC_CMD= ${LOCALBASE}/bin/ghc +SETUP_CMD= ./setup + +DATADIR= ${PREFIX}/share/${DISTNAME} +PORTDATA= * + +DOCSDIR= ${PREFIX}/share/doc/${DISTNAME} +FILEMANIP_LIBDIR_REL= lib/${DISTNAME} + +PLIST_SUB= GHC_VERSION=${GHC_VERSION} \ + FILEMANIP_VERSION=${FILEMANIP_VERSION} \ + FILEMANIP_LIBDIR_REL=${FILEMANIP_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} --constraint='base<4' + +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}/${FILEMANIP_LIBDIR_REL}/register.sh +.if !defined(NOPORTDATA) + ${MKDIR} ${DATADIR} && ${INSTALL_DATA} ${WRKSRC}/README ${DATADIR} +.endif + +post-install: + ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old + +.include <bsd.port.mk> diff --git a/devel/hs-FileManip/distinfo b/devel/hs-FileManip/distinfo new file mode 100644 index 000000000000..33157dce6138 --- /dev/null +++ b/devel/hs-FileManip/distinfo @@ -0,0 +1,3 @@ +MD5 (FileManip-0.3.2.tar.gz) = 5d30c3a7f6193260df0c25a5454a345e +SHA256 (FileManip-0.3.2.tar.gz) = 5fc0452a0ae2241bd20f19be863e6afd8fc0a4ff51b12d3aff13a99a7a4ada1d +SIZE (FileManip-0.3.2.tar.gz) = 10353 diff --git a/devel/hs-FileManip/pkg-descr b/devel/hs-FileManip/pkg-descr new file mode 100644 index 000000000000..83169fdebeb0 --- /dev/null +++ b/devel/hs-FileManip/pkg-descr @@ -0,0 +1,4 @@ +A Haskell library for working with files and directories. Includes code +for pattern matching, finding files, modifying file contents, and more. + +WWW: http://hackage.haskell.org/package/FileManip diff --git a/devel/hs-FileManip/pkg-plist b/devel/hs-FileManip/pkg-plist new file mode 100644 index 000000000000..6f8cfc4b8762 --- /dev/null +++ b/devel/hs-FileManip/pkg-plist @@ -0,0 +1,18 @@ +@comment $FreeBSD$ +%%FILEMANIP_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSFileManip-%%FILEMANIP_VERSION%%.o +%%FILEMANIP_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/FilePath/Find.hi +%%FILEMANIP_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/FilePath/Glob.hi +%%FILEMANIP_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/FilePath/GlobPattern.hi +%%FILEMANIP_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/FilePath/Manip.hi +%%FILEMANIP_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSFileManip-%%FILEMANIP_VERSION%%.a +%%FILEMANIP_LIBDIR_REL%%/register.sh +%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE +%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%% +@dirrm %%FILEMANIP_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/FilePath +@dirrm %%FILEMANIP_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System +@dirrm %%FILEMANIP_LIBDIR_REL%%/ghc-%%GHC_VERSION%% +@dirrm %%FILEMANIP_LIBDIR_REL%% +@exec /bin/sh %D/%%FILEMANIP_LIBDIR_REL%%/register.sh +@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old +@unexec %D/bin/ghc-pkg unregister FileManip +@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old diff --git a/devel/hs-filemanip/Makefile b/devel/hs-filemanip/Makefile new file mode 100644 index 000000000000..84ba76c16a1d --- /dev/null +++ b/devel/hs-filemanip/Makefile @@ -0,0 +1,81 @@ +# New ports collection makefile for: hs-FileManip +# Date created: December 20 2009 +# Whom: Giuseppe Pilichi aka Jacula Modyun <jacula@gmail.com> +# +# $FreeBSD$ +# + +PORTNAME= FileManip +PORTVERSION= 0.3.2 +CATEGORIES= devel haskell +MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/ +PKGNAMEPREFIX= hs- + +MAINTAINER= jacula@gmail.com +COMMENT= Expressive file and directory manipulation for Haskell + +BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc +RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc + +GHC_VERSION= 6.10.4 +FILEMANIP_VERSION= ${PORTVERSION} + +GHC_CMD= ${LOCALBASE}/bin/ghc +SETUP_CMD= ./setup + +DATADIR= ${PREFIX}/share/${DISTNAME} +PORTDATA= * + +DOCSDIR= ${PREFIX}/share/doc/${DISTNAME} +FILEMANIP_LIBDIR_REL= lib/${DISTNAME} + +PLIST_SUB= GHC_VERSION=${GHC_VERSION} \ + FILEMANIP_VERSION=${FILEMANIP_VERSION} \ + FILEMANIP_LIBDIR_REL=${FILEMANIP_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} --constraint='base<4' + +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}/${FILEMANIP_LIBDIR_REL}/register.sh +.if !defined(NOPORTDATA) + ${MKDIR} ${DATADIR} && ${INSTALL_DATA} ${WRKSRC}/README ${DATADIR} +.endif + +post-install: + ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old + +.include <bsd.port.mk> diff --git a/devel/hs-filemanip/distinfo b/devel/hs-filemanip/distinfo new file mode 100644 index 000000000000..33157dce6138 --- /dev/null +++ b/devel/hs-filemanip/distinfo @@ -0,0 +1,3 @@ +MD5 (FileManip-0.3.2.tar.gz) = 5d30c3a7f6193260df0c25a5454a345e +SHA256 (FileManip-0.3.2.tar.gz) = 5fc0452a0ae2241bd20f19be863e6afd8fc0a4ff51b12d3aff13a99a7a4ada1d +SIZE (FileManip-0.3.2.tar.gz) = 10353 diff --git a/devel/hs-filemanip/pkg-descr b/devel/hs-filemanip/pkg-descr new file mode 100644 index 000000000000..83169fdebeb0 --- /dev/null +++ b/devel/hs-filemanip/pkg-descr @@ -0,0 +1,4 @@ +A Haskell library for working with files and directories. Includes code +for pattern matching, finding files, modifying file contents, and more. + +WWW: http://hackage.haskell.org/package/FileManip diff --git a/devel/hs-filemanip/pkg-plist b/devel/hs-filemanip/pkg-plist new file mode 100644 index 000000000000..6f8cfc4b8762 --- /dev/null +++ b/devel/hs-filemanip/pkg-plist @@ -0,0 +1,18 @@ +@comment $FreeBSD$ +%%FILEMANIP_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSFileManip-%%FILEMANIP_VERSION%%.o +%%FILEMANIP_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/FilePath/Find.hi +%%FILEMANIP_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/FilePath/Glob.hi +%%FILEMANIP_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/FilePath/GlobPattern.hi +%%FILEMANIP_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/FilePath/Manip.hi +%%FILEMANIP_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSFileManip-%%FILEMANIP_VERSION%%.a +%%FILEMANIP_LIBDIR_REL%%/register.sh +%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE +%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%% +@dirrm %%FILEMANIP_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/FilePath +@dirrm %%FILEMANIP_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System +@dirrm %%FILEMANIP_LIBDIR_REL%%/ghc-%%GHC_VERSION%% +@dirrm %%FILEMANIP_LIBDIR_REL%% +@exec /bin/sh %D/%%FILEMANIP_LIBDIR_REL%%/register.sh +@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old +@unexec %D/bin/ghc-pkg unregister FileManip +@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old |