diff options
author | Jeremy Chadwick <koitsu@FreeBSD.org> | 2008-11-02 01:32:14 +0000 |
---|---|---|
committer | Jeremy Chadwick <koitsu@FreeBSD.org> | 2008-11-02 01:32:14 +0000 |
commit | 6c8915f3688f5916b4b403a42802a159ae964136 (patch) | |
tree | 040073138d13ada38b45f5956734b678b4f94a1d /textproc/hs-stringsearch/Makefile | |
parent | da0e1e77c6540fc4eb79e74a34ceacebefd59484 (diff) | |
download | ports-6c8915f3688f5916b4b403a42802a159ae964136.tar.gz ports-6c8915f3688f5916b4b403a42802a159ae964136.zip |
Notes
Diffstat (limited to 'textproc/hs-stringsearch/Makefile')
-rw-r--r-- | textproc/hs-stringsearch/Makefile | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/textproc/hs-stringsearch/Makefile b/textproc/hs-stringsearch/Makefile new file mode 100644 index 000000000000..a4186284b99c --- /dev/null +++ b/textproc/hs-stringsearch/Makefile @@ -0,0 +1,37 @@ +# New ports collection makefile for: stringsearch +# Date created: November 1, 2008 +# Whom: Samy Al Bahra <sbahra@kerneled.org> +# +# $FreeBSD$ + +PORTNAME= stringsearch +PORTVERSION= 0.2.1.1 +CATEGORIES= textproc haskell +MASTER_SITES= http://hackage.haskell.org/packages/archive/stringsearch/${PORTVERSION}/ \ + http://kerneled.org/tmp/ +PKGNAMEPREFIX= hs- + +MAINTAINER= sbahra@kerneled.org +COMMENT= Boyer-Moore/Knuth-Morris-Pratt string search library + +BUILD_DEPENDS= ghc:${PORTSDIR}/lang/ghc +LIB_DEPENDS= gmp.7:${PORTSDIR}/math/libgmp4 + +CABAL= ${LOCALBASE}/bin/runghc Setup.lhs +GHC_VERSION= `${LOCALBASE}/bin/ghc --numeric-version` +SUBDIR= lib/${PORTNAME}-${PORTVERSION} +PLIST_SUB= GHC_VERSION="${GHC_VERSION}" \ + PORTVERSION=${PORTVERSION} \ + SUBDIR=${SUBDIR} + +do-configure: + cd ${WRKSRC} && ${CABAL} configure --prefix=${PREFIX} --ghc + +do-build: + cd ${WRKSRC} && ${CABAL} build && ${CABAL} register --gen-script + +do-install: + cd ${WRKSRC} && ${CABAL} install + ${INSTALL_SCRIPT} ${WRKSRC}/register.sh ${PREFIX}/${SUBDIR}/register.sh + +.include <bsd.port.mk> |