Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Sep 1999 13:53:27 +0100 (BST)
From:      Simon Marlow <simonmar@microsoft.com>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/13786: New port for GHC-4.04
Message-ID:  <199909171253.NAA25431@solander.dcs.gla.ac.uk>

next in thread | raw e-mail | index | archive | help

>Number:         13786
>Category:       ports
>Synopsis:       New port for GHC-4.04
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Sep 17 06:00:01 PDT 1999
>Closed-Date:
>Last-Modified:
>Originator:     Simon Marlow
>Release:        FreeBSD 3.2-STABLE
>Organization:
>Environment:
>Description:
>How-To-Repeat:
>Fix:

Shar file follows.  You might need to update the MD5's, but everything
else should work --Simon.

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	/usr/ports/lang/ghc
#	/usr/ports/lang/ghc/files
#	/usr/ports/lang/ghc/files/md5
#	/usr/ports/lang/ghc/files/build.mk
#	/usr/ports/lang/ghc/Makefile
#	/usr/ports/lang/ghc/pkg
#	/usr/ports/lang/ghc/pkg/COMMENT
#	/usr/ports/lang/ghc/pkg/DESCR
#	/usr/ports/lang/ghc/pkg/PLIST
#
echo c - /usr/ports/lang/ghc
mkdir -p /usr/ports/lang/ghc > /dev/null 2>&1
echo c - /usr/ports/lang/ghc/files
mkdir -p /usr/ports/lang/ghc/files > /dev/null 2>&1
echo x - /usr/ports/lang/ghc/files/md5
sed 's/^X//' >/usr/ports/lang/ghc/files/md5 << 'END-of-/usr/ports/lang/ghc/files/md5'
XMD5 (ghc-4.04-src.tar.gz) = 77ff6c9b9f6ac383e6a1118c1b3cf37e
XMD5 (ghc-4.04-x86-hc.tar.gz) = e2c393d361648604d6d5dd590a58a0dc
END-of-/usr/ports/lang/ghc/files/md5
echo x - /usr/ports/lang/ghc/files/build.mk
sed 's/^X//' >/usr/ports/lang/ghc/files/build.mk << 'END-of-/usr/ports/lang/ghc/files/build.mk'
XGhcLibHcOpts = -O -split-objs -odir $*
XSRC_HAPPY_OPTS += -c
XGhcLibWays=
XGhcLibsWithReadline = YES
END-of-/usr/ports/lang/ghc/files/build.mk
echo x - /usr/ports/lang/ghc/Makefile
sed 's/^X//' >/usr/ports/lang/ghc/Makefile << 'END-of-/usr/ports/lang/ghc/Makefile'
X# New ports collection makefile for:   ghc
X# Version required:    4.04
X# Date created:        28 August 1999
X# Whom:                Simon Marlow <simonmar@microsoft.com>
X#
X# $FreeBSD$
X#
X# Note:
X# 	- This port will bootstrap from pre-compiled C files.
X# 	- ToDo: bootstrap using existing compiler, if one is installed.
X
XDISTNAME=	ghc-4.04
XCATEGORIES=	lang
XMASTER_SITES=	http://www.haskell.org/ghc/dist/4.04/
XDISTFILES=	ghc-4.04-src${EXTRACT_SUFX} ghc-4.04-x86-hc${EXTRACT_SUFX}
X
XMAINTAINER=	simonmar@microsoft.com
X
XUSE_PERL5=	yes
XUSE_GMAKE=	yes
XGNU_CONFIGURE=	yes
X
XCONFIGURE_ARGS= --enable-hc-boot --libdir=${PREFIX}/lib/ghc
X
XWRKSRC=		${WRKDIR}/fptools
X
X# XXX: we touch the happy-generated files to ensure that when we
X# switch to non-bootstrapping mode for installation, the build system
X# won't try to create them.
X#
Xpre-build:
X	@${CP} ${FILESDIR}/build.mk ${WRKSRC}/mk
X	@${TOUCH} ${TOUCH_FLAGS} ${WRKSRC}/ghc/compiler/rename/ParseIface.hs
X	@${TOUCH} ${TOUCH_FLAGS} ${WRKSRC}/ghc/compiler/parser/Parser.hs
X	@(cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} boot)
X
Xpost-build:
X	@echo "GhcWithHscBuiltViaC=NO" >>${WRKSRC}/mk/build.mk
X	@(cd ${WRKSRC}/ghc/lib; ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} clean boot all)
X
X.include <bsd.port.mk>
END-of-/usr/ports/lang/ghc/Makefile
echo c - /usr/ports/lang/ghc/pkg
mkdir -p /usr/ports/lang/ghc/pkg > /dev/null 2>&1
echo x - /usr/ports/lang/ghc/pkg/COMMENT
sed 's/^X//' >/usr/ports/lang/ghc/pkg/COMMENT << 'END-of-/usr/ports/lang/ghc/pkg/COMMENT'
XA Compiler for the functional language Haskell
END-of-/usr/ports/lang/ghc/pkg/COMMENT
echo x - /usr/ports/lang/ghc/pkg/DESCR
sed 's/^X//' >/usr/ports/lang/ghc/pkg/DESCR << 'END-of-/usr/ports/lang/ghc/pkg/DESCR'
XGHC: The Glasgow Haskell Compiler.
X
XThe Glasgow Haskell Compiler is a robust, fully-featured, optimising
Xcompiler for the functional programming language Haskell 98
X(http://www.haskell.org). GHC compiles Haskell to either native code
Xor C. It implements numerous experimental language extensions to
XHaskell, including concurrency, a foreign language interface, several
Xtype-system extensions, exceptions, and so on. GHC comes with a
Xgenerational garbage collector, a space and time profiler, and a
Xcomprehensive set of libraries.
X
XDocumentation can be found hanging off GHC's homepage, below.
X
XWWW: http://www.haskell.org/ghc/
END-of-/usr/ports/lang/ghc/pkg/DESCR
echo x - /usr/ports/lang/ghc/pkg/PLIST
sed 's/^X//' >/usr/ports/lang/ghc/pkg/PLIST << 'END-of-/usr/ports/lang/ghc/pkg/PLIST'
Xbin/hp2ps
Xbin/hstags
Xbin/stat2resid
Xbin/ghc
Xbin/ghc-4.04
Xlib/ghc/hscpp
Xlib/ghc/hstags-help
Xlib/ghc/mkdependHS
Xlib/ghc/parse-gcstats.prl
Xlib/ghc/process-gcstats.prl
Xlib/ghc/unlit
Xlib/ghc/ghc-asm.prl
Xlib/ghc/ghc-iface.prl
Xlib/ghc/ghc-consist.prl
Xlib/ghc/ghc-split.prl
Xlib/ghc/hsc
Xlib/ghc/libHSrts.a
Xlib/ghc/libHS.a
Xlib/ghc/libHS_cbits.a
Xlib/ghc/libHSexts.a
Xlib/ghc/libHSmisc.a
Xlib/ghc/libHSmisc_cbits.a
Xlib/ghc/libHSposix.a
Xlib/ghc/libHSposix_cbits.a
Xlib/ghc/libHSconcurrent.a
Xlib/ghc/includes
Xlib/ghc/includes/Assembler.h
Xlib/ghc/includes/Block.h
Xlib/ghc/includes/CCall.h
Xlib/ghc/includes/ClosureMacros.h
Xlib/ghc/includes/ClosureTypes.h
Xlib/ghc/includes/Closures.h
Xlib/ghc/includes/Constants.h
Xlib/ghc/includes/Hooks.h
Xlib/ghc/includes/InfoMacros.h
Xlib/ghc/includes/InfoTables.h
Xlib/ghc/includes/MachDeps.h
Xlib/ghc/includes/MachRegs.h
Xlib/ghc/includes/NativeDefs.h
Xlib/ghc/includes/Prelude.h
Xlib/ghc/includes/PrimOps.h
Xlib/ghc/includes/Profiling.h
Xlib/ghc/includes/Regs.h
Xlib/ghc/includes/Rts.h
Xlib/ghc/includes/RtsAPI.h
Xlib/ghc/includes/SchedAPI.h
Xlib/ghc/includes/Stable.h
Xlib/ghc/includes/Stg.h
Xlib/ghc/includes/StgDLL.h
Xlib/ghc/includes/StgMacros.h
Xlib/ghc/includes/StgMiscClosures.h
Xlib/ghc/includes/StgProf.h
Xlib/ghc/includes/StgStorage.h
Xlib/ghc/includes/StgTicky.h
Xlib/ghc/includes/StgTypes.h
Xlib/ghc/includes/TSO.h
Xlib/ghc/includes/TailCalls.h
Xlib/ghc/includes/Updates.h
Xlib/ghc/includes/config.h
Xlib/ghc/includes/gmp.h
Xlib/ghc/includes/ieee-flpt.h
Xlib/ghc/includes/options.h
Xlib/ghc/includes/sainteger.h
Xlib/ghc/imports
Xlib/ghc/imports/std
Xlib/ghc/imports/std/Array.hi
Xlib/ghc/imports/std/CPUTime.hi
Xlib/ghc/imports/std/Char.hi
Xlib/ghc/imports/std/Complex.hi
Xlib/ghc/imports/std/Directory.hi
Xlib/ghc/imports/std/IO.hi
Xlib/ghc/imports/std/Ix.hi
Xlib/ghc/imports/std/List.hi
Xlib/ghc/imports/std/Locale.hi
Xlib/ghc/imports/std/Maybe.hi
Xlib/ghc/imports/std/Monad.hi
Xlib/ghc/imports/std/Numeric.hi
Xlib/ghc/imports/std/PrelAddr.hi
Xlib/ghc/imports/std/PrelArr.hi
Xlib/ghc/imports/std/PrelArrExtra.hi
Xlib/ghc/imports/std/PrelBase.hi
Xlib/ghc/imports/std/PrelCCall.hi
Xlib/ghc/imports/std/PrelConc.hi
Xlib/ghc/imports/std/PrelDynamic.hi
Xlib/ghc/imports/std/PrelEnum.hi
Xlib/ghc/imports/std/PrelErr.hi
Xlib/ghc/imports/std/PrelException.hi
Xlib/ghc/imports/std/PrelForeign.hi
Xlib/ghc/imports/std/Time.hi
Xlib/ghc/imports/std/PrelHandle.hi
Xlib/ghc/imports/std/PrelIOBase.hi
Xlib/ghc/imports/std/PrelList.hi
Xlib/ghc/imports/std/PrelMain.hi
Xlib/ghc/imports/std/PrelMaybe.hi
Xlib/ghc/imports/std/PrelNum.hi
Xlib/ghc/imports/std/PrelNumExtra.hi
Xlib/ghc/imports/std/PrelPack.hi
Xlib/ghc/imports/std/PrelRead.hi
Xlib/ghc/imports/std/PrelST.hi
Xlib/ghc/imports/std/PrelShow.hi
Xlib/ghc/imports/std/PrelStable.hi
Xlib/ghc/imports/std/PrelTup.hi
Xlib/ghc/imports/std/PrelWeak.hi
Xlib/ghc/imports/std/Prelude.hi
Xlib/ghc/imports/std/Random.hi
Xlib/ghc/imports/std/Ratio.hi
Xlib/ghc/imports/std/System.hi
Xlib/ghc/imports/std/PrelGHC.hi
Xlib/ghc/imports/exts
Xlib/ghc/imports/exts/Addr.hi
Xlib/ghc/imports/exts/Bits.hi
Xlib/ghc/imports/exts/ByteArray.hi
Xlib/ghc/imports/exts/CCall.hi
Xlib/ghc/imports/exts/Dynamic.hi
Xlib/ghc/imports/exts/Exception.hi
Xlib/ghc/imports/exts/Foreign.hi
Xlib/ghc/imports/exts/GetOpt.hi
Xlib/ghc/imports/exts/GlaExts.hi
Xlib/ghc/imports/exts/IOExts.hi
Xlib/ghc/imports/exts/Int.hi
Xlib/ghc/imports/exts/LazyST.hi
Xlib/ghc/imports/exts/MutableArray.hi
Xlib/ghc/imports/exts/NativeInfo.hi
Xlib/ghc/imports/exts/NumExts.hi
Xlib/ghc/imports/exts/ST.hi
Xlib/ghc/imports/exts/Stable.hi
Xlib/ghc/imports/exts/Weak.hi
Xlib/ghc/imports/exts/Word.hi
X@dirrm lib/ghc/imports
X@dirrm lib/ghc/includes
X@dirrm lib/ghc
END-of-/usr/ports/lang/ghc/pkg/PLIST
exit



>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199909171253.NAA25431>