summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndres Loeh <kosmikus@gentoo.org>2004-02-18 14:23:30 +0000
committerAndres Loeh <kosmikus@gentoo.org>2004-02-18 14:23:30 +0000
commit9e64c76d7ef46268f2f9e6e35d5d05eed1c0594e (patch)
tree44bb77e02c3b5efbd504a8b132bdd8b448702e2d /dev-lang/helium
parentNew release (Manifest recommit) (diff)
downloadgentoo-2-9e64c76d7ef46268f2f9e6e35d5d05eed1c0594e.tar.gz
gentoo-2-9e64c76d7ef46268f2f9e6e35d5d05eed1c0594e.tar.bz2
gentoo-2-9e64c76d7ef46268f2f9e6e35d5d05eed1c0594e.zip
ebuild for new version (#40365)
Diffstat (limited to 'dev-lang/helium')
-rw-r--r--dev-lang/helium/ChangeLog7
-rw-r--r--dev-lang/helium/Manifest4
-rw-r--r--dev-lang/helium/files/digest-helium-1.22
-rw-r--r--dev-lang/helium/files/helium-1.2-readline.patch46
-rw-r--r--dev-lang/helium/helium-1.2.ebuild61
5 files changed, 118 insertions, 2 deletions
diff --git a/dev-lang/helium/ChangeLog b/dev-lang/helium/ChangeLog
index a2fc5c3ae9ee..58e1270d8144 100644
--- a/dev-lang/helium/ChangeLog
+++ b/dev-lang/helium/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for dev-lang/helium
-# Copyright 2000-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/helium/ChangeLog,v 1.3 2003/12/02 14:49:30 kosmikus Exp $
+# Copyright 2000-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/helium/ChangeLog,v 1.4 2004/02/18 14:23:30 kosmikus Exp $
+
+ 18 Feb 2004; Andres Loeh <kosmikus@gentoo.org> :
+ New version (#40365).
02 Dec 2003; Andres Loeh <kosmikus@gentoo.org> helium-1.1.ebuild:
Corrected source URI's according to bug #34849.
diff --git a/dev-lang/helium/Manifest b/dev-lang/helium/Manifest
index cf559e208b5a..aaf72c01301c 100644
--- a/dev-lang/helium/Manifest
+++ b/dev-lang/helium/Manifest
@@ -1,6 +1,10 @@
+MD5 fb5297fcec509225bf10c21ff3f15105 helium-1.2.ebuild 1478
MD5 def54f9270288ca2624eaa053f35c3ce helium-1.1.ebuild 1818
MD5 432ec1330405f82dd732d5b0b588ade0 ChangeLog 772
MD5 a769ecfcd1cdd2d40986627df7dfb249 metadata.xml 224
+MD5 fb82aad0fbf3d3cb5071c5fef803a7ec files/helium-1.2-readline.patch 1661
MD5 3991ed4891d6455e980008f704211a97 files/helium-wrapper 558
MD5 538379c81a9dfdc87a15ce0e6a504c8a files/helium-1.1-readline.patch 1710
MD5 9383829eb1e80fc6be12c53d3162d58b files/digest-helium-1.1 119
+MD5 62f20b4dc3f4e34dd748b64d19dbb6c8 files/digest-helium-1.2 120
+MD5 38076828bcb7ba3b968388f191f1d2ed files/helium-1.2-readline.patch.old 1164
diff --git a/dev-lang/helium/files/digest-helium-1.2 b/dev-lang/helium/files/digest-helium-1.2
new file mode 100644
index 000000000000..c3cf03e43437
--- /dev/null
+++ b/dev-lang/helium/files/digest-helium-1.2
@@ -0,0 +1,2 @@
+MD5 6ea1d6e4436e137d75f5354b4758f299 helium-1.2-src.tar.gz 1200565
+MD5 d9caae2afdbd60a4a1f58174d318464a Hint.jar 120170
diff --git a/dev-lang/helium/files/helium-1.2-readline.patch b/dev-lang/helium/files/helium-1.2-readline.patch
new file mode 100644
index 000000000000..c382ffb177ef
--- /dev/null
+++ b/dev-lang/helium/files/helium-1.2-readline.patch
@@ -0,0 +1,46 @@
+--- helium-1.2/heliumNT/src/Makefile.in.orig 2004-01-22 08:04:57.000000000 -0200
++++ helium-1.2/heliumNT/src/Makefile.in 2004-02-05 18:33:35.000000000 -0200
+@@ -256,7 +256,7 @@
+ @echo "****************************************************"
+ @echo " TextHint: the textual Helium interpreter"
+ @echo "****************************************************"
+- $(HC) $(HC_OPTS) --make -iutils -o $(HELIUMBINDIR)/texthint$(EXE) texthint/Main.hs
++ $(HC) $(HC_OPTS) --make -package util -iutils -o $(HELIUMBINDIR)/texthint$(EXE) texthint/Main.hs
+ $(STRIP) $(HELIUMBINDIR)/texthint$(EXE)
+
+ # AG sources
+--- helium-1.2/heliumNT/src/texthint/Main.hs.orig 2003-03-06 11:45:13.000000000 -0300
++++ helium-1.2/heliumNT/src/texthint/Main.hs 2004-02-05 18:40:08.000000000 -0200
+@@ -2,6 +2,7 @@
+
+ import Char
+ import List(isPrefixOf, isSuffixOf)
++import Readline
+ import Monad(when)
+ import IO(stdout, hFlush)
+ import System(system, getEnv, getArgs, exitWith, ExitCode(..))
+@@ -64,6 +65,11 @@
+ cmdLoadModule (head args) initialState
+ else
+ return initialState
++
++ -- Initialize readline
++ initialize
++ -- Deactivate filename completion
++ setCompletionEntryFunction (Just (const $ return []))
+
+ -- Enter read-eval-print loop
+ loop stateAfterLoad
+@@ -79,9 +85,9 @@
+
+ loop :: State -> IO State
+ loop state = do
+- putStr (prompt state)
+- hFlush stdout
+- command' <- getLine
++ command'' <- readline (prompt state)
++ let command' = maybe ":q" id command''
++ addHistory command'
+ let command = trim command'
+ newState <- case command of
+ (':':cmd:rest) ->
diff --git a/dev-lang/helium/helium-1.2.ebuild b/dev-lang/helium/helium-1.2.ebuild
new file mode 100644
index 000000000000..79a97a404d11
--- /dev/null
+++ b/dev-lang/helium/helium-1.2.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2004 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/helium/helium-1.2.ebuild,v 1.1 2004/02/18 14:23:30 kosmikus Exp $
+
+DESCRIPTION="Helium (for learning Haskell)"
+HOMEPAGE="http://www.cs.uu.nl/helium"
+SRC_URI="http://www.cs.uu.nl/helium/distr/${P}-src.tar.gz
+ http://www.cs.uu.nl/helium/distr/Hint.jar"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE="readline"
+
+DEPEND="virtual/glibc
+ virtual/ghc
+ readline? ( sys-libs/readline )"
+RDEPEND="virtual/glibc
+ virtual/jdk
+ dev-libs/gmp
+ readline? ( sys-libs/readline )"
+
+src_unpack() {
+ unpack ${P}-src.tar.gz
+
+ # patch for readline support if requested
+ if [ "`use readline`" ]; then
+ patch -p0 -i ${FILESDIR}/${P}-readline.patch || die
+ fi
+}
+
+src_compile() {
+ pushd lvm || die
+ pushd src || die
+ ./configure
+ popd
+ popd
+ pushd heliumNT || die
+ econf --without-upx
+ pushd src || die
+ make depend || die
+ make || die # emake doesn't work safely
+}
+
+src_install() {
+ cd heliumNT/src || die
+ make prefix=${D}/usr \
+ bindir=${D}/usr/lib/helium/bin \
+ libdir=${D}/usr/lib/helium/lib \
+ demodir=${D}/usr/lib/helium/demo \
+ install || die
+ # install hint
+ dojar ${DISTDIR}/Hint.jar
+ # create wrappers
+ dobin ${FILESDIR}/helium-wrapper
+ dosym /usr/bin/helium-wrapper /usr/bin/helium
+ dosym /usr/bin/helium-wrapper /usr/bin/lvmrun
+ dosym /usr/bin/helium-wrapper /usr/bin/texthint
+ dosym /usr/bin/helium-wrapper /usr/bin/hint
+}
+