diff options
author | pgj <pgj@FreeBSD.org> | 2010-01-13 06:11:25 +0800 |
---|---|---|
committer | pgj <pgj@FreeBSD.org> | 2010-01-13 06:11:25 +0800 |
commit | 7593a17e74eefcaefeae2421c5c80cc8feaadffd (patch) | |
tree | 648b1003bae70b03036c7442a08e73e4286ddf06 /textproc | |
parent | 495fb4e66e57b9edcfcf5324216cce631375e90f (diff) | |
download | freebsd-ports-gnome-7593a17e74eefcaefeae2421c5c80cc8feaadffd.tar.gz freebsd-ports-gnome-7593a17e74eefcaefeae2421c5c80cc8feaadffd.tar.zst freebsd-ports-gnome-7593a17e74eefcaefeae2421c5c80cc8feaadffd.zip |
Basic implementation of the standard diff algorithm in Haskell.
WWW: http://hackage.haskell.org/package/Diff
PR: ports/142564
Submitted by: Jacula Modyun <jacula(at)gmail.com>
Diffstat (limited to 'textproc')
-rw-r--r-- | textproc/Makefile | 1 | ||||
-rw-r--r-- | textproc/hs-Diff/Makefile | 75 | ||||
-rw-r--r-- | textproc/hs-Diff/distinfo | 3 | ||||
-rw-r--r-- | textproc/hs-Diff/pkg-descr | 3 | ||||
-rw-r--r-- | textproc/hs-Diff/pkg-plist | 15 |
5 files changed, 97 insertions, 0 deletions
diff --git a/textproc/Makefile b/textproc/Makefile index d848787c10f4..a25c0f01c0c4 100644 --- a/textproc/Makefile +++ b/textproc/Makefile @@ -217,6 +217,7 @@ SUBDIR += highlight SUBDIR += hil-aspell SUBDIR += hr-aspell + SUBDIR += hs-Diff SUBDIR += hs-bytestring-csv SUBDIR += hs-haxml SUBDIR += hs-highlighting-kate-ghc diff --git a/textproc/hs-Diff/Makefile b/textproc/hs-Diff/Makefile new file mode 100644 index 000000000000..ae7809996827 --- /dev/null +++ b/textproc/hs-Diff/Makefile @@ -0,0 +1,75 @@ +# New ports collection makefile for: hs-Diff +# Date created: January 10 2010 +# Whom: Giuseppe Pilichi aka Jacula Modyun <jacula@gmail.com> +# +# $FreeBSD$ +# + +PORTNAME= Diff +PORTVERSION= 0.1.2 +CATEGORIES= textproc haskell +MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/ +PKGNAMEPREFIX= hs- + +MAINTAINER= jacula@gmail.com +COMMENT= O(ND) diff algorithm in haskell + +BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc +RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc + +GHC_VERSION= 6.10.4 +DIFF_VERSION= ${PORTVERSION} + +GHC_CMD= ${LOCALBASE}/bin/ghc +SETUP_CMD= ./setup + +DOCSDIR= ${PREFIX}/share/doc/${DISTNAME} +DIFF_LIBDIR_REL= lib/${DISTNAME} + +PLIST_SUB= GHC_VERSION=${GHC_VERSION} \ + DIFF_VERSION=${DIFF_VERSION} \ + DIFF_LIBDIR_REL=${DIFF_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}/${DIFF_LIBDIR_REL}/register.sh + +post-install: + ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old + +.include <bsd.port.mk> diff --git a/textproc/hs-Diff/distinfo b/textproc/hs-Diff/distinfo new file mode 100644 index 000000000000..9d81b89dfb4d --- /dev/null +++ b/textproc/hs-Diff/distinfo @@ -0,0 +1,3 @@ +MD5 (Diff-0.1.2.tar.gz) = d7efbd54c6c1dba78970deb579000b04 +SHA256 (Diff-0.1.2.tar.gz) = f831ce6029a75b54dd69801d865ed45284f7dacf723fe5fd81758ad03f8eef5e +SIZE (Diff-0.1.2.tar.gz) = 2799 diff --git a/textproc/hs-Diff/pkg-descr b/textproc/hs-Diff/pkg-descr new file mode 100644 index 000000000000..07b3f5bce739 --- /dev/null +++ b/textproc/hs-Diff/pkg-descr @@ -0,0 +1,3 @@ +Basic implementation of the standard diff algorithm in Haskell. + +WWW: http://hackage.haskell.org/package/Diff diff --git a/textproc/hs-Diff/pkg-plist b/textproc/hs-Diff/pkg-plist new file mode 100644 index 000000000000..6b9f07394b7b --- /dev/null +++ b/textproc/hs-Diff/pkg-plist @@ -0,0 +1,15 @@ +@comment $FreeBSD$ +%%DIFF_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Algorithm/Diff.hi +%%DIFF_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSDiff-%%DIFF_VERSION%%.o +%%DIFF_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSDiff-%%DIFF_VERSION%%.a +%%DIFF_LIBDIR_REL%%/register.sh +%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE +%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%% +@dirrm %%DIFF_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Algorithm +@dirrm %%DIFF_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data +@dirrm %%DIFF_LIBDIR_REL%%/ghc-%%GHC_VERSION%% +@dirrm %%DIFF_LIBDIR_REL%% +@exec /bin/sh %D/%%DIFF_LIBDIR_REL%%/register.sh +@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old +@unexec %D/bin/ghc-pkg unregister Diff +@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old |