freebsd-ports/textproc/hs-stringsearch/Makefile
Wesley Shields d39855f825 - Add @exec lines so the register script is called when the package is used.
- Bump PORTREVISION.

Submitted by:	sbahra@kerneled.org (maintainer, private mail)
2008-11-05 23:36:46 +00:00

38 lines
1.1 KiB
Makefile

# 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
PORTREVISION= 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>