mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-18 03:46:03 +00:00
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>
This commit is contained in:
parent
7b381d85ea
commit
ea43a77058
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=247757
@ -527,6 +527,7 @@
|
|||||||
SUBDIR += hp48xgcc
|
SUBDIR += hp48xgcc
|
||||||
SUBDIR += hptools
|
SUBDIR += hptools
|
||||||
SUBDIR += hs-DeepArrow
|
SUBDIR += hs-DeepArrow
|
||||||
|
SUBDIR += hs-FileManip
|
||||||
SUBDIR += hs-MemoTrie
|
SUBDIR += hs-MemoTrie
|
||||||
SUBDIR += hs-MissingH
|
SUBDIR += hs-MissingH
|
||||||
SUBDIR += hs-MonadCatchIO-mtl
|
SUBDIR += hs-MonadCatchIO-mtl
|
||||||
|
81
devel/hs-FileManip/Makefile
Normal file
81
devel/hs-FileManip/Makefile
Normal file
@ -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>
|
3
devel/hs-FileManip/distinfo
Normal file
3
devel/hs-FileManip/distinfo
Normal file
@ -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
|
4
devel/hs-FileManip/pkg-descr
Normal file
4
devel/hs-FileManip/pkg-descr
Normal file
@ -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
|
18
devel/hs-FileManip/pkg-plist
Normal file
18
devel/hs-FileManip/pkg-plist
Normal file
@ -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
|
81
devel/hs-filemanip/Makefile
Normal file
81
devel/hs-filemanip/Makefile
Normal file
@ -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>
|
3
devel/hs-filemanip/distinfo
Normal file
3
devel/hs-filemanip/distinfo
Normal file
@ -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
|
4
devel/hs-filemanip/pkg-descr
Normal file
4
devel/hs-filemanip/pkg-descr
Normal file
@ -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
|
18
devel/hs-filemanip/pkg-plist
Normal file
18
devel/hs-filemanip/pkg-plist
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user