summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Shapovalov <george@gentoo.org>2002-06-09 07:38:07 +0000
committerGeorge Shapovalov <george@gentoo.org>2002-06-09 07:38:07 +0000
commit0fee9dc44c72db4cb343e9e1a8379b8a328f25c6 (patch)
tree1efe47562b4fd42deeb9635a5d74423b8043d92a /dev-lang/nhc98
parentUpdated w3m so a it would honor gpm use variable (diff)
downloadgentoo-2-0fee9dc44c72db4cb343e9e1a8379b8a328f25c6.tar.gz
gentoo-2-0fee9dc44c72db4cb343e9e1a8379b8a328f25c6.tar.bz2
gentoo-2-0fee9dc44c72db4cb343e9e1a8379b8a328f25c6.zip
added ebuild for nhc98 - haskell compiler
Diffstat (limited to 'dev-lang/nhc98')
-rw-r--r--dev-lang/nhc98/ChangeLog17
-rw-r--r--dev-lang/nhc98/files/digest-nhc98-1.121
-rw-r--r--dev-lang/nhc98/files/nhc98-1.12-getenv.patch16
-rw-r--r--dev-lang/nhc98/nhc98-1.12.ebuild56
4 files changed, 90 insertions, 0 deletions
diff --git a/dev-lang/nhc98/ChangeLog b/dev-lang/nhc98/ChangeLog
new file mode 100644
index 000000000000..3fac1785d100
--- /dev/null
+++ b/dev-lang/nhc98/ChangeLog
@@ -0,0 +1,17 @@
+# ChangeLog for dev-lang/nhc98
+# Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/nhc98/ChangeLog,v 1.1 2002/06/09 07:38:07 george Exp $
+
+*nhc98-1.12.ebuild (08 Jun 2002)
+
+ 08 Jun 2002; George Shapovalov <george@gentoo.org> all :
+
+ First submission
+ From the home page:
+
+ nhc98 is a fully-fledged compiler for Haskell 98, the standard lazy functional
+ programming language. Written in Haskell, it is small and very portable,
+ and aims to produce small executables that run in small amounts of memory.
+ Is a pattern becoming obvious here? :-) It also comes with extensive tool
+ support for automatic compilation, foreign language interfacing,
+ heap and time profiling, tracing, and debugging.
diff --git a/dev-lang/nhc98/files/digest-nhc98-1.12 b/dev-lang/nhc98/files/digest-nhc98-1.12
new file mode 100644
index 000000000000..ae32e8a0a6d7
--- /dev/null
+++ b/dev-lang/nhc98/files/digest-nhc98-1.12
@@ -0,0 +1 @@
+MD5 cd10466ba0f06a19c55a67d3b9afd95c nhc98src-1.12.tar.gz 8218509
diff --git a/dev-lang/nhc98/files/nhc98-1.12-getenv.patch b/dev-lang/nhc98/files/nhc98-1.12-getenv.patch
new file mode 100644
index 000000000000..774c3105dcc8
--- /dev/null
+++ b/dev-lang/nhc98/files/nhc98-1.12-getenv.patch
@@ -0,0 +1,16 @@
+Index: src/hat/runtime/getconstr.c
+===================================================================
+RCS file: /usr/src/master/nhc/src/hat/runtime/getconstr.c,v
+retrieving revision 1.13
+diff -u -r1.13 getconstr.c
+--- src/hat/runtime/getconstr.c 2001/11/02 14:59:08 1.13
++++ src/hat/runtime/getconstr.c 2002/04/17 15:04:07
+@@ -16,7 +16,7 @@
+ NodePtr np;
+ char *sp;
+
+- for (sp = s; *sp != '\0'; sp++);
++ for (sp = s; *sp++ != '\0';);
+ np = mkNil();
+ for (; --sp >= s;)
+ np = mkCons(mkChar(*sp), np);
diff --git a/dev-lang/nhc98/nhc98-1.12.ebuild b/dev-lang/nhc98/nhc98-1.12.ebuild
new file mode 100644
index 000000000000..48f0f886a845
--- /dev/null
+++ b/dev-lang/nhc98/nhc98-1.12.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2002 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/nhc98/nhc98-1.12.ebuild,v 1.1 2002/06/09 07:38:07 george Exp $
+
+TARBALL=nhc98src-${PV}.tar.gz
+
+DESCRIPTION="Haskell 98 compiler"
+SRC_URI="ftp://ftp.cs.york.ac.uk/pub/haskell/nhc98/${TARBALL}"
+HOMEPAGE="http://www.cs.york.ac.uk/fp/nhc98/"
+
+DEPEND="readline? ( >=readline-4.1 )"
+
+src_unpack() {
+ # unpack the source
+ unpack "${TARBALL}"
+ # patch to fix the getenv bug when tracing
+ cd ${P}
+ patch -p0 < ${FILESDIR}/nhc98-1.12-getenv.patch
+}
+
+src_compile() {
+
+ ./configure --buildwith=gcc \
+ --prefix=/usr \
+ -man -docs \
+ --buildopts="${CFLAGS} --host=${CHOST}" || die "./configure failed"
+ # the build does not seem to work all that
+ # well with parallel make
+ make || die
+}
+
+src_install () {
+ # The install location is taken care of by the
+ # configure script.
+ make DESTDIR=${D} install || die
+
+ #install docs and man pages manually
+ cd ${S}
+ dodoc README INSTALL COPYRIGHT
+ doman man/*
+
+ cd docs
+ dohtml *
+ docinto html/bugs
+ dodoc bugs/*
+ docinto html/examples
+ dodoc examples/*
+ docinto html/hat
+ dohtml hat/*
+ docinto html/hmake
+ dodoc hmake
+ docinto html/implementation-notes
+ dohtml implementation-notes/*
+ docinto html/libs
+ dohtml libs/*
+}