blob: b9ce80657b7bf26fb585656e805cddf314ff4b6a (
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
# New ports collection makefile for: hs-hscolour
# Date created: February 22 2008
# Whom: Giuseppe Pilichi aka Jacula Modyun <jacula@gmail.com>
#
# $FreeBSD$
#
PORTNAME= hscolour
PORTVERSION= 1.12
CATEGORIES= print haskell
MASTER_SITES= ftp://ftp.cs.york.ac.uk/pub/haskell/contrib/ \
http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
PKGNAMEPREFIX= hs-
MAINTAINER= jacula@gmail.com
COMMENT= Colourise Haskell code
LIB_DEPENDS+= gmp.7:${PORTSDIR}/math/libgmp4
.if !defined(SLAVE)
BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
.else
NO_PKG_REGISTER=
.endif
GHC_VERSION= 6.8.3
HSCOLOUR_VERSION= ${PORTVERSION}
CABAL_CMD= runghc Setup.hs
DATADIR= ${PREFIX}/share/${DISTNAME}
HSCOLOUR_LIBDIR_REL= lib/${DISTNAME}
DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
HSCOLOUR_LIBDIR_REL=${HSCOLOUR_LIBDIR_REL} \
HSCOLOUR_VERSION=${HSCOLOUR_VERSION} \
.SILENT:
do-configure:
cd ${WRKSRC} && ${CABAL_CMD} configure --ghc --prefix=${PREFIX}
do-build:
cd ${WRKSRC} && ${CABAL_CMD} build
.if !defined(SLAVE)
cd ${WRKSRC} && ${CABAL_CMD} register --gen-script
.endif
do-install:
cd ${WRKSRC} && ${CABAL_CMD} install
post-install:
${STRIP_CMD} ${PREFIX}/bin/HsColour
.if !defined(SLAVE)
cd ${WRKSRC} && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${HSCOLOUR_LIBDIR_REL}/register.sh && \
${INSTALL_DATA} README ${DOCSDIR}/README
.endif
@${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
.include <bsd.port.mk>
|