1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00
freebsd-ports/textproc/hs-HaXml/Makefile
Maxime Henrion 5979290699 Add a patch from the upstream author to fix a well-known bug when parsing
XML files with attributes containing the ' %' character.
2006-06-01 19:26:51 +00:00

48 lines
1.3 KiB
Makefile

# New ports collection makefile for: HaXml
# Date created: 01 June 2002
# Whom: Oliver Braun <obraun@informatik.unibw-muenchen.de>
#
# $FreeBSD$
PORTNAME= haxml
PORTVERSION= 1.13
PORTREVISION= 2
CATEGORIES= textproc haskell
MASTER_SITES= http://www.haskell.org/HaXml/ \
ftp://ftp.cs.york.ac.uk/pub/haskell/HaXml/
PKGNAMEPREFIX= hs-
DISTNAME= HaXml-${PORTVERSION}
MAINTAINER= haskell@FreeBSD.org
COMMENT= A collection of utilities for using Haskell and XML together
BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
HAS_CONFIGURE= yes
USE_GMAKE= yes
CONFIGURE_ARGS+= --prefix=${PREFIX}/bin
GHC_VERSION= `${LOCALBASE}/bin/ghc --numeric-version`
PLIST_SUB+= GHC_VERSION="${GHC_VERSION}"
post-patch:
@${REINPLACE_CMD} -e 's,/bin/false,/usr/bin/false,' ${WRKSRC}/configure
post-configure:
@${REINPLACE_CMD} -e '/hugs/d' ${WRKSRC}/obj/compilers
@${REINPLACE_CMD} -e '/nhc98/d' ${WRKSRC}/obj/compilers
post-install:
@${INSTALL_DATA} ${WRKSRC}/obj/ghc/HaXml.pkgconf \
${PREFIX}/lib/ghc-${GHC_VERSION}/imports/HaXml/
@${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
@(cd ${WRKSRC} && ${RM} -rf docs/HaXml/CVS)
@(cd ${WRKSRC} && ${CP} -R docs/* ${DOCSDIR})
.endif
.include <bsd.port.mk>