openbsd-ports/devel/hscolour/Makefile
kili f421e05f7b hscolour is a small Haskell script to colourise Haskell code. It
currently has five output formats: ANSI terminal codes, HTML 3.2
with <font> tags, HTML 4.01 with CSS, LaTeX, and mIRC chat client
codes.

ok giovanni@ (who spotted an empty and obsolete include dir in the PLIST),
okan@ (who don't get the $V cleanup now -- sorry),
sthen@ ("I'm all for having more ports where the word colour is spelt correctly)
2009-01-27 21:32:36 +00:00

50 lines
1.2 KiB
Makefile

# $OpenBSD: Makefile,v 1.1.1.1 2009/01/27 21:32:36 kili Exp $
COMMENT = Haskell code colourizer
V = 1.10.1
DISTNAME = hscolour-$V
CATEGORIES = devel
HOMEPAGE = http://www.cs.york.ac.uk/fp/darcs/hscolour/
# GPL2
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM =Yes
PERMIT_DISTFILES_FTP = Yes
WANTLIB = c m
MODULES = lang/ghc
MASTER_SITES = http://hackage.haskell.org/packages/archive/hscolour/$V/ \
ftp://ftp.cs.york.ac.uk/pub/haskell/contrib/
LIB_DEPENDS = gmp::devel/gmp
SETUP_CONF_ARGS = configure -g --prefix=${PREFIX}
SETUP_CONF_ENV = HOME=${PORTHOME} ${CONFIGURE_ENV}
SETUP_PROG = ${WRKSRC}/Setup
SUBST_VARS = MODGHC_VER V
NO_REGRESS = Yes
do-configure:
@cd ${WRKSRC} && ghc --make -o ${SETUP_PROG} Setup.hs
@cd ${WRKBUILD} && exec ${SETENV} ${SETUP_CONF_ENV} \
${SETUP_PROG} ${SETUP_CONF_ARGS}
do-build:
@cd ${WRKBUILD} && exec ${SETENV} ${MAKE_ENV} ${SETUP_PROG} build
do-install:
@cd ${WRKBUILD} && exec ${SETENV} ${MAKE_ENV} \
${SETUP_PROG} copy --destdir=${DESTDIR}
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc
cd ${WRKSRC}/docs && umask 022 && pax -rw hscolour ${PREFIX}/share/doc
.include <bsd.port.mk>