head	1.35;
access;
symbols
	RELEASE_8_3_0:1.33
	RELEASE_9_0_0:1.33
	RELEASE_7_4_0:1.33
	RELEASE_8_2_0:1.33
	RELEASE_6_EOL:1.33
	RELEASE_8_1_0:1.33
	RELEASE_7_3_0:1.33
	RELEASE_8_0_0:1.33
	RELEASE_7_2_0:1.33
	RELEASE_7_1_0:1.33
	RELEASE_6_4_0:1.33
	RELEASE_5_EOL:1.33
	RELEASE_7_0_0:1.33
	RELEASE_6_3_0:1.33
	PRE_XORG_7:1.33
	RELEASE_4_EOL:1.33
	RELEASE_6_2_0:1.33
	RELEASE_6_1_0:1.32
	RELEASE_5_5_0:1.32
	RELEASE_6_0_0:1.31
	RELEASE_5_4_0:1.30
	RELEASE_4_11_0:1.29
	RELEASE_5_3_0:1.29
	RELEASE_4_10_0:1.29
	RELEASE_5_2_1:1.23
	RELEASE_5_2_0:1.23
	RELEASE_4_9_0:1.22
	RELEASE_5_1_0:1.22
	RELEASE_4_8_0:1.19
	RELEASE_5_0_0:1.18
	RELEASE_4_7_0:1.14
	RELEASE_4_6_2:1.5
	RELEASE_4_6_1:1.5
	RELEASE_4_6_0:1.5
	RELEASE_5_0_DP1:1.4
	RELEASE_4_5_0:1.2;
locks; strict;
comment	@# @;


1.35
date	2012.11.17.05.58.53;	author svnexp;	state Exp;
branches;
next	1.34;

1.34
date	2012.08.03.03.44.20;	author pgj;	state Exp;
branches;
next	1.33;

1.33
date	2006.05.09.20.52.17;	author edwin;	state Exp;
branches;
next	1.32;

1.32
date	2005.10.17.09.26.38;	author vs;	state Exp;
branches;
next	1.31;

1.31
date	2005.05.20.11.10.07;	author vs;	state Exp;
branches;
next	1.30;

1.30
date	2005.03.17.22.01.46;	author obraun;	state Exp;
branches;
next	1.29;

1.29
date	2004.03.11.07.48.12;	author obraun;	state Exp;
branches;
next	1.28;

1.28
date	2004.03.06.21.29.59;	author obraun;	state Exp;
branches;
next	1.27;

1.27
date	2004.02.19.09.59.50;	author kris;	state Exp;
branches;
next	1.26;

1.26
date	2004.02.04.05.21.40;	author marcus;	state Exp;
branches;
next	1.25;

1.25
date	2004.01.31.11.16.48;	author obraun;	state Exp;
branches;
next	1.24;

1.24
date	2004.01.16.10.48.22;	author obraun;	state Exp;
branches;
next	1.23;

1.23
date	2003.10.11.09.25.56;	author obraun;	state Exp;
branches;
next	1.22;

1.22
date	2003.04.26.11.53.10;	author obraun;	state Exp;
branches;
next	1.21;

1.21
date	2003.03.25.15.06.02;	author obraun;	state Exp;
branches;
next	1.20;

1.20
date	2003.03.23.22.31.19;	author obraun;	state Exp;
branches;
next	1.19;

1.19
date	2003.02.18.10.50.46;	author obraun;	state Exp;
branches;
next	1.18;

1.18
date	2002.11.20.09.10.55;	author obraun;	state Exp;
branches;
next	1.17;

1.17
date	2002.11.10.16.46.52;	author lioux;	state Exp;
branches;
next	1.16;

1.16
date	2002.11.05.21.55.21;	author obraun;	state Exp;
branches;
next	1.15;

1.15
date	2002.10.21.15.00.23;	author obraun;	state Exp;
branches;
next	1.14;

1.14
date	2002.08.21.14.49.02;	author obraun;	state Exp;
branches;
next	1.13;

1.13
date	2002.07.28.05.32.46;	author pat;	state Exp;
branches;
next	1.12;

1.12
date	2002.06.20.05.27.33;	author pat;	state Exp;
branches;
next	1.11;

1.11
date	2002.06.19.08.18.07;	author sobomax;	state Exp;
branches;
next	1.10;

1.10
date	2002.06.18.22.28.44;	author pat;	state Exp;
branches;
next	1.9;

1.9
date	2002.06.16.19.13.18;	author ijliao;	state Exp;
branches;
next	1.8;

1.8
date	2002.06.16.01.54.06;	author glewis;	state Exp;
branches;
next	1.7;

1.7
date	2002.06.14.07.21.10;	author ijliao;	state Exp;
branches;
next	1.6;

1.6
date	2002.05.27.02.02.18;	author dwcjr;	state Exp;
branches;
next	1.5;

1.5
date	2002.05.08.16.57.54;	author dwcjr;	state Exp;
branches;
next	1.4;

1.4
date	2002.03.18.06.32.20;	author kris;	state Exp;
branches;
next	1.3;

1.3
date	2002.01.23.18.14.52;	author sf;	state Exp;
branches;
next	1.2;

1.2
date	2001.12.22.06.21.45;	author ijliao;	state Exp;
branches;
next	1.1;

1.1
date	2001.12.21.20.23.40;	author ijliao;	state Exp;
branches;
next	;


desc
@@


1.35
log
@Switch exporter over
@
text
@# New ports collection makefile for:	nhc98
# Date created:				04 October 2001
# Whom:					Oliver Braun <obraun@@informatik.unibw-muenchen.de>
#
# $FreeBSD: head/lang/nhc98/Makefile 301932 2012-08-03 03:44:20Z pgj $

PORTNAME=	nhc98
PORTVERSION=	1.18
PORTREVISION=	2
CATEGORIES=	lang haskell
MASTER_SITES=	ftp://ftp.cs.york.ac.uk/pub/haskell/${PORTNAME}/
DISTFILES=	${PORTNAME}src-${PORTVERSION}${EXTRACT_SUFX} ${PORTNAME}-${PORTVERSION}-library-interfaces${EXTRACT_SUFX}
DIST_SUBDIR=	nhc98
PATCH_SITES=	${MASTER_SITES}
PATCHFILES=	patch-1.18-newtype

MAINTAINER=	haskell@@FreeBSD.org
COMMENT=	A fully-fledged compiler for Haskell 98

ONLY_FOR_ARCHS=	i386

WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}

USE_GMAKE=	yes
HAS_CONFIGURE=	yes
CONFIGURE_ARGS+=--prefix=${PREFIX} --buildwith=gcc

OPTIONS_DEFINE=		DOCS
OPTIONS_DEFAULT=	DOCS

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MDOCS}
CONFIGURE_ARGS+=	--docdir=${DOCSDIR} +docs
.else
CONFIGURE_ARGS+=	-docs
.endif

MAN1=		harch.1 hmake.1 hp2graph.1 nhc98.1 hi.1

CONFLICTS=	hs-hmake-[0-9]* hs-cpphs-[0-9]*

post-patch:
	@@${REINPLACE_CMD} -e 's|-O3|${CFLAGS}|' ${WRKSRC}/Makefile.inc
	@@${REINPLACE_CMD} -e 's|$$(CC)|gcc|g' ${WRKSRC}/Makefile

post-configure:
	@@${ECHO} "LIBDIR=${PREFIX}/lib/nhc98" \
		>> ${WRKSRC}/targets/ix86-FreeBSD/config.cache

post-install:
	${SED} -e "s#/usr/doc/nhc98#${PREFIX}/share/doc/nhc98#" \
	       < ${WRKSRC}/man/nhc98.1 > ${WRKSRC}/man/nhc98.1.fix
	${INSTALL_MAN} ${WRKSRC}/man/nhc98.1.fix ${PREFIX}/man/man1/nhc98.1
	${RM} ${WRKSRC}/man/nhc98.1.fix
.if ${PORT_OPTIONS:MDOCS}
.for directory in . bugs examples hmake implementation-notes libs
	${RM} -r ${DOCSDIR}/${directory}/CVS
.endfor
.endif

.include <bsd.port.mk>
@


1.34
log
@SVN rev 301932 on 2012-08-03 03:44:20Z by pgj

- Use the new options framework

Obtained from:	FreeBSD Haskell
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.33
log
@Remove USE_REINPLACE from the categories starting with L
@
text
@d9 1
a9 1
PORTREVISION=	1
d28 6
a33 1
.if !defined(NOPORTDOCS)
d35 2
d56 1
a56 1
.if !defined(NOPORTDOCS)
@


1.32
log
@Make PREFIX-aware

Noticed by: krisbot
@
text
@a21 2
USE_REINPLACE=	yes

@


1.31
log
@Update with vendor-patches:
- 'newtype'-bugfix
- install interface files for hierarchical libraries
- use generic URL in pkg-descr
@
text
@d28 1
a28 1
CONFIGURE_ARGS+=	--buildwith=gcc
@


1.30
log
@* Upgrade to 1.18.
* Remove BROKEN.
@
text
@d9 1
d12 1
a12 1
DISTNAME=	${PORTNAME}src-${PORTVERSION}
d14 2
@


1.29
log
@deUSE_SIZEify.
@
text
@d8 1
a8 2
PORTVERSION=	1.16
PORTREVISION=	2
a13 4
PATCH_SITES=	${MASTER_SITES}
PATCHFILES=	patch-1.16-typesyn \
		patch-1.16-ghc6

a20 10
.include <bsd.port.pre.mk>

.if ${OSVERSION} >= 502102
BROKEN=		"Does not compile"
.endif

.if ${OSVERSION} >= 500000
BUILD_DEPENDS+=	ghc-5.04.3:${PORTSDIR}/lang/ghc5
.endif

d25 1
a25 4

.if ${OSVERSION} >= 500000
CONFIGURE_ARGS+=	--buildwith=ghc
.endif
d31 1
a31 1
MAN1=		harch.1 hmake.1 hp2graph.1 nhc98.1
d33 1
a33 1
CONFLICTS=	hs-hmake-*
d37 1
a37 4
.for file in Decl FillIn Process
	@@${REINPLACE_CMD} -e '/^import PrelBase/d' \
		${WRKSRC}/src/greencard/${file}.lhs
.endfor
d54 1
a54 1
.include <bsd.port.post.mk>
@


1.28
log
@Set maintainer to the new created haskell@@ mail alias.
@
text
@a37 1
USE_SIZE=	yes
@


1.27
log
@BROKEN on 5.x: does not compile
@
text
@d19 1
a19 1
MAINTAINER=	obraun@@FreeBSD.org
@


1.26
log
@Bump PORTREVISION on all ports that depend on gettext to aid with upgrading.

(Part 2)
@
text
@d28 4
@


1.25
log
@SIZE-ify
@
text
@d9 1
a9 1
PORTREVISION=	1
@


1.24
log
@build with lang/ghc5 on -current
@
text
@d34 1
@


1.23
log
@* Add upstream patch file.
* Add ONLY_FOR_ARCHS=i386.
* Utilize DOCSDIR.
* Use CONFLICTS instead of checking conflict with hs-hmake in the ports
  Makefile.
@
text
@d29 1
a29 1
BUILD_DEPENDS+=	ghc:${PORTSDIR}/lang/ghc
@


1.22
log
@* Add PATCHFILE.
* Bump PORTREVISION.
@
text
@d16 2
a17 1
PATCHFILES=	patch-1.16-typesyn
d22 2
d42 1
a42 1
CONFIGURE_ARGS+=	--docdir=${PREFIX}/share/doc/nhc98 +docs
d47 2
a59 10
pre-install:
.if exists(${PREFIX}/bin/hmake) && !defined(OVERRIDE_HMAKE)
	@@${ECHO} ""
	@@${ECHO} "It seems that there is already a version of hmake installed on"
	@@${ECHO} "this system. Since hmake is part of nhc98, please deinstall it,"
	@@${ECHO} "or define OVERRIDE_HMAKE to override the installed version."
	@@${ECHO} ""
	@@${FALSE}
.endif

d67 1
a67 1
	${RM} -r ${PREFIX}/share/doc/nhc98/${directory}/CVS
@


1.21
log
@Tarball has been rerolled. Developer added one tiny extra fix for Cygwin
configuration, and removed lots of files that belonged to the Hat project,
which are no longer relevant to building nhc98.

No functional change, so no need to bump PORTREVISION.

Noticed by:	Matthew Donadio <m.p.donadio@@ieee.org>
@
text
@d9 1
d14 3
@


1.20
log
@Upgrade to 1.16.
@
text
@d67 1
a67 4
.for ending in aux log out toc
	${RM} ${PREFIX}/share/doc/nhc98/hat/hatuser.${ending}
.endfor
.for directory in . bugs examples hat hmake implementation-notes libs
@


1.19
log
@De-pkg-comment and make portlint a little bit happier.
@
text
@d8 1
a8 2
PORTVERSION=	1.14a
PORTREVISION=	1
a13 3
PATCH_SITES=	${MASTER_SITES}
PATCHFILES=	patch-1.14-Time

a66 3
.for ending in aux log
	${RM} ${PREFIX}/share/doc/nhc98/hat/tutorial1.${ending}
.endfor
@


1.18
log
@Add the new virtual category haskell.
@
text
@d19 1
@


1.17
log
@o Rollback PORTCOMMENT modifications while this feature's implementation
  is better studied
o Turn PORTCOMMENT variable in Makefile back into pkg-comment files

Approved by:	kris (portmgr hat),
		portmgr, re (silence)
@
text
@d10 1
a10 1
CATEGORIES=	lang
@


1.16
log
@Use PORTCOMMENT variable instead of pkg-comment file.
@
text
@a9 1
PORTCOMMENT=	A fully-fledged compiler for Haskell 98
@


1.15
log
@* Add PATCHFILE.
* Bump PORTREVISION.
@
text
@d10 1
@


1.14
log
@Update to 1.14a.
Change MAINTAINER to my FreeBSD address.

PR:		ports/41629
Submitted by:	obraun
Approved by:	dwcjr (mentor)
@
text
@d9 1
d14 3
@


1.13
log
@Make buildable with ghc again

PR:		ports/40890
Submitted by:	maintainer
@
text
@d8 1
a8 1
PORTVERSION=	1.14
d14 1
a14 1
MAINTAINER=	obraun@@informatik.unibw-muenchen.de
@


1.12
log
@USE_REINPLACE has to be defined before including bsd.port.pre.mk
@
text
@d41 4
@


1.11
log
@Add USE_REINPLACE where appropriate.
@
text
@d16 2
a26 1
USE_REINPLACE=	yes
@


1.10
log
@Do not install hat-replated manpages.

PR:		39480
Submitted by:	maintainer
@
text
@d25 1
@


1.9
log
@upgrade to 1.14

PR:		39368
Submitted by:	maintainer
@
text
@d19 1
a19 1
BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
d35 1
a35 2
MAN1=		harch.1 hmake.1	hp2graph.1 nhc98.1 \
		hat-detect.1 hat-observe.1 hat-stack.1 hat-trail.1
@


1.8
log
@Fix dependencies to be in sync with the recent JDK ports renaming.

Forgotten by:	znerd
@
text
@d8 1
a8 1
PORTVERSION=	1.12
a13 5
PATCH_SITES=	${MASTER_SITES}
PATCHFILES=	patch-1.12-ranlib \
		patch-1.12-hmake-config \
		patch-1.12-getEnv

a15 5
.if defined(WITH_TRACER)
RUN_DEPENDS=	${LOCALBASE}/jdk1.1.8/bin/java:${PORTSDIR}/java/jdk11
BUILD_DEPENDS=	${LOCALBASE}/jdk1.1.8/bin/javac:${PORTSDIR}/java/jdk11
.endif

a22 9
PLIST=		${WRKSRC}/pkg-plist

.if !defined(WITH_TRACER)
ALL_TARGET=	basic
PLIST_SUB+=	TRACER="@@comment "
.else
PLIST_SUB+=	TRACER=""
MAKE_ENV+=	PATH=${PREFIX}/jdk1.1.8/bin:$$PATH
.endif
a37 12
pre-fetch:
.if !defined(WITH_TRACER)
	@@${ECHO} ""
	@@${ECHO} "	To build nhc98 with the tracer (requires JAVA)"
	@@${ECHO} "	define WITH_TRACER"
	@@${ECHO} ""
.else
	@@${ECHO} ""
	@@${ECHO} "	Building nhc98 with the tracer (requires JAVA)"
	@@${ECHO} ""
.endif

d41 4
a53 13
# We need this to ensure that the libs will be installed into
# ${PREFIX}/lib/nhc98. Otherwise the libs will be installed
# into the build directory. The configure option won't work in the
# ports system.
	${RM} -f ${WRKSRC}/include/*.orig
	${SED} -e "s#LIBDIR=.*##" \
	       < ${WRKSRC}/targets/ix86-FreeBSD/config.cache \
	       > ${WRKSRC}/targets/ix86-FreeBSD/config.cache.fix1
	${ECHO} "LIBDIR=${PREFIX}/lib/nhc98" \
	        >> ${WRKSRC}/targets/ix86-FreeBSD/config.cache.fix1
	${RM} ${WRKSRC}/targets/ix86-FreeBSD/config.cache
	${MV} ${WRKSRC}/targets/ix86-FreeBSD/config.cache.fix1 \
	      ${WRKSRC}/targets/ix86-FreeBSD/config.cache
@


1.7
log
@Replace ${PERL} with ${REINPLACE_CMD}.
PR:	39243, 39244, 39245, 39249
Submitted by:	maintainer
@
text
@d22 2
a23 2
RUN_DEPENDS=	${LOCALBASE}/jdk1.1.8/bin/java:${PORTSDIR}/java/jdk
BUILD_DEPENDS=	${LOCALBASE}/jdk1.1.8/bin/javac:${PORTSDIR}/java/jdk
@


1.6
log
@Require use to override if hmake is already installed

PR:		38585
Submitted by:	maintainer
@
text
@d70 1
a70 1
	@@${PERL} -pi.orig -e 's|-O3|${CFLAGS}|' ${WRKSRC}/Makefile.inc
@


1.5
log
@Update to 1.12
Unbreak for -current

PR:		36139
Submitted by:	maintainer
@
text
@d72 9
a84 1
pre-install:
@


1.4
log
@Mark FORBIDDEN: this port loops infinitely during build:

[...]
gmake[1652]: Leaving directory `/x/tmp/a/ports/lang/nhc98/work/nhc98-1.10/src/prelude/Numeric'
cd -FreeBSD; gmake fromC
cd: Illegal option -F
gmake[1652]: Entering directory `/x/tmp/a/ports/lang/nhc98/work/nhc98-1.10/src/prelude
[...]

Noticed by:	bento
@
text
@d8 1
a8 2
PORTVERSION=	1.10
PORTREVISION=	1
d15 3
a17 11
PATCHFILES=	patch-1.10-IO \
		patch-1.10-arrow \
		patch-1.10-blockbuffer \
		patch-1.10-commas \
		patch-1.10-counter \
		patch-1.10-hp2graph \
		patch-1.10-keywords \
		patch-1.10-lhs \
		patch-1.10-patterns \
		patch-1.10-hiding \
		patch-1.10-ghc5.02
a20 2
FORBIDDEN=	"Loops infinitely during build"

d26 6
d33 1
d46 4
d92 11
d104 1
a104 1
.include <bsd.port.mk>
@


1.3
log
@update official patch.
respect CFLAGS.

PR:		34206
Submitted by:	maintainer
@
text
@d30 2
@


1.2
log
@upgrade to 1.10

PR:		31453
Submitted by:	maintainer
@
text
@d9 1
d13 1
a46 1
DIST_SUBDIR=	nhc98
d66 3
@


1.1
log
@add nhc98 1.08
A fully-fledged compiler for Haskell 98

PR:		31039
Submitted by:	Oliver Braun <obraun@@informatik.unibw-muenchen.de>
@
text
@d8 1
a8 1
PORTVERSION=	1.08
d14 11
a24 3
PATCHFILES=	patch-1.08-ghc5.02 \
		patch-1.08-hmake \
		patch-1.08-hat-makefile
d71 1
@

