aboutsummaryrefslogtreecommitdiff
path: root/ports-mgmt/hs-porte/Makefile
blob: 278301a95f120223f53b6889c73180033777b2d7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# New ports collection makefile for:	porte
# Date created:				November 4, 2008
# Whom:					Samy Al Bahra <sbahra@kerneled.org>
#
# $FreeBSD$

PORTNAME=	porte
PORTVERSION=	0.0.3
CATEGORIES=	ports-mgmt haskell
MASTER_SITES=	http://carte.repnop.org/releases/

MAINTAINER=	sbahra@kerneled.org
COMMENT=	FreeBSD ports index search and statistical analysis tool

BUILD_DEPENDS=	ghc:${PORTSDIR}/lang/ghc					\
		hs-stringsearch>=0.2.1.1:${PORTSDIR}/textproc/hs-stringsearch
LIB_DEPENDS=	gmp.7:${PORTSDIR}/math/libgmp4

CABAL=		${LOCALBASE}/bin/runghc Setup.hs
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>