diff options
author | 2011-06-05 11:45:18 +0000 | |
---|---|---|
committer | 2011-06-05 11:45:18 +0000 | |
commit | 7dfb85fedcce383fb758548468a0e6314f2f0b30 (patch) | |
tree | 870845398a9a616b3dddcb1a2792dea4e45225df /dev-lang/helium | |
parent | alpha/ia64/s390/sh/sparc stable wrt #367271 (diff) | |
download | gentoo-2-7dfb85fedcce383fb758548468a0e6314f2f0b30.tar.gz gentoo-2-7dfb85fedcce383fb758548468a0e6314f2f0b30.tar.bz2 gentoo-2-7dfb85fedcce383fb758548468a0e6314f2f0b30.zip |
Removed old (requires ancient ghc).
(Portage version: 2.1.9.50/cvs/Linux x86_64)
Diffstat (limited to 'dev-lang/helium')
-rw-r--r-- | dev-lang/helium/ChangeLog | 9 | ||||
-rw-r--r-- | dev-lang/helium/files/helium-1.2-libraries.patch | 42 | ||||
-rw-r--r-- | dev-lang/helium/files/helium-1.2-readline.patch | 46 | ||||
-rw-r--r-- | dev-lang/helium/files/helium-wrapper | 40 | ||||
-rw-r--r-- | dev-lang/helium/helium-1.2-r1.ebuild | 73 |
5 files changed, 7 insertions, 203 deletions
diff --git a/dev-lang/helium/ChangeLog b/dev-lang/helium/ChangeLog index b7cefc60ebc9..b75a239dd17e 100644 --- a/dev-lang/helium/ChangeLog +++ b/dev-lang/helium/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for dev-lang/helium -# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/helium/ChangeLog,v 1.26 2010/08/29 19:18:34 slyfox Exp $ +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/helium/ChangeLog,v 1.27 2011/06/05 11:45:18 slyfox Exp $ + + 05 Jun 2011; Sergei Trofimovich <slyfox@gentoo.org> -helium-1.2-r1.ebuild, + -files/helium-1.2-libraries.patch, -files/helium-1.2-readline.patch, + -files/helium-wrapper: + Removed old (requires ancient ghc). 29 Aug 2010; Sergei Trofimovich <slyfox@gentoo.org> -helium-1.1.ebuild, -files/helium-1.1-readline.patch: diff --git a/dev-lang/helium/files/helium-1.2-libraries.patch b/dev-lang/helium/files/helium-1.2-libraries.patch deleted file mode 100644 index 8ee4aee6cf7a..000000000000 --- a/dev-lang/helium/files/helium-1.2-libraries.patch +++ /dev/null @@ -1,42 +0,0 @@ -diff -Naur helium-1.2.orig/heliumNT/src/Makefile.in helium-1.2/heliumNT/src/Makefile.in ---- helium-1.2.orig/heliumNT/src/Makefile.in 2004-11-18 12:37:28.025725408 +0100 -+++ helium-1.2/heliumNT/src/Makefile.in 2004-11-18 12:39:54.000000000 +0100 -@@ -32,6 +32,7 @@ - exec_prefix = @exec_prefix@
- bindir = @bindir@
- libdir = @prefix@/helium/lib
-+tclibdir = @prefix@/helium/tclib
- demodir = @prefix@/helium/demo
-
- status :
-@@ -40,6 +41,8 @@ - @echo "Type \"make install\" to install."
- @echo " Binaries will go into $(bindir)"
- @echo " Libraries will go into $(libdir)"
-+ @echo " Libraries supporting type classes will go into"
-+ @echo " $(tclibdir)"
- @echo " Demos will go into $(demodir)"
- @echo "*******************************************************************"
-
-@@ -432,15 +435,18 @@ - install : smaller
- # *** Copy sources to library directory
-- $(MKDIR) $(bindir) $(libdir) $(demodir)
-- $(INSTALL) -m 644 ../lib/Prelude.hs ../lib/List.hs ../lib/Maybe.hs $(libdir)
-+ $(MKDIR) $(bindir) $(libdir) $(tclibdir) $(demodir)
-+ $(INSTALL) -m 644 ../lib/simple/Prelude.hs ../lib/simple/List.hs ../lib/simple/Maybe.hs $(libdir)
-+ $(INSTALL) -m 644 ../lib/Prelude.hs ../lib/List.hs ../lib/Maybe.hs $(tclibdir)
- $(INSTALL) -m 755 $(HELIUMBINDIR)/$(MAIN)$(EXE) $(bindir)
- $(INSTALL) -m 755 $(LVMRUNTIMEDIR)/lvmrun$(EXE) $(bindir)
- $(INSTALL) -m 755 $(HELIUMBINDIR)/texthint$(EXE) $(bindir)
- # *** Copying demos to demo directory
- $(INSTALL) -m 644 ../demo/Calendar.hs ../demo/ParserLibrary.hs ../demo/ParserDemo.hs ../demo/TicTacToe.hs $(demodir)
- # *** Copy generated lvms and touch them
-- $(INSTALL) -m 644 ../lib/*.lvm $(libdir)
-+ $(INSTALL) -m 644 ../lib/simple/*.lvm $(libdir)
-+ $(INSTALL) -m 644 ../lib/*.lvm $(tclibdir)
- touch $(libdir)/*.lvm
-+ touch $(tclibdir)/*.lvm
-
- movetohome: smaller
- # *** Copying library sources to projects directory
diff --git a/dev-lang/helium/files/helium-1.2-readline.patch b/dev-lang/helium/files/helium-1.2-readline.patch deleted file mode 100644 index c382ffb177ef..000000000000 --- a/dev-lang/helium/files/helium-1.2-readline.patch +++ /dev/null @@ -1,46 +0,0 @@ ---- 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/files/helium-wrapper b/dev-lang/helium/files/helium-wrapper deleted file mode 100644 index 7bcd820e0b59..000000000000 --- a/dev-lang/helium/files/helium-wrapper +++ /dev/null @@ -1,40 +0,0 @@ -#! /bin/sh - -BINNAME_LONG="$(basename $0)" -BINNAME="${BINNAME_LONG%-tc}" - -if [ -n "${HELIUM_TEMP}" ]; then - TEMP="${HELIUM_TEMP}"; -else - TEMP="/tmp/helium-${USER}" - if ! [ -d "${TEMP}" ]; then - mkdir ${TEMP}; - fi; -fi - -if [ "${BINNAME_LONG}" = "${BINNAME}" ]; then - HELIUM_LIBS="/usr/lib/helium/lib"; -else - HELIUM_LIBS="/usr/lib/helium/tclib"; -fi - -if [ -z "${LVMPATH}" ]; then - LVMPATH=".:${HELIUM_LIBS}"; -else - LVMPATH="${LVMPATH}:${HELIUM_LIBS}"; -fi -export LVMPATH -export TEMP - -if [ "${BINNAME}" = "hint" ]; then - - JAVA="$(java-config --java)" - PROGCALL="${JAVA} -jar -DPATH=${PATH} -DLVMPATH=${LVMPATH} /usr/share/helium/lib/Hint.jar" - -else - - PROGCALL="/usr/lib/helium/bin/${BINNAME}" - -fi - -${PROGCALL} $* diff --git a/dev-lang/helium/helium-1.2-r1.ebuild b/dev-lang/helium/helium-1.2-r1.ebuild deleted file mode 100644 index 809cfa7b3cba..000000000000 --- a/dev-lang/helium/helium-1.2-r1.ebuild +++ /dev/null @@ -1,73 +0,0 @@ -# Copyright 1999-2010 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/helium/helium-1.2-r1.ebuild,v 1.11 2010/08/29 19:45:58 slyfox Exp $ - -inherit eutils java-pkg-2 - -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 -sparc ~ppc" -IUSE="readline" - -DEPEND="<dev-lang/ghc-6.4 - !>=dev-lang/ghc-6.4 - readline? ( sys-libs/readline )" -RDEPEND=">=virtual/jre-1.4 - dev-libs/gmp - readline? ( sys-libs/readline )" - -src_unpack() { - unpack ${P}-src.tar.gz - - # patch to use simple libraries by default - epatch "${FILESDIR}/${P}-libraries.patch" - # patch for readline support if requested - if use readline; then - epatch "${FILESDIR}/${P}-readline.patch" - fi - - cp "${DISTDIR}/Hint.jar" "${WORKDIR}" -} - -src_compile() { - pushd lvm || die "cannot cd to lvm" - pushd src || die "cannot cd to src" - ./configure || die "lvm configure failed" - # for gcc 3.4 compatibility, patch file created by configure - sed -i 's/#define strncpy(dest,src,size) strcpy(dest,src)/#define HAS_SNPRINTF\n#define HAS_VSNPRINTF\n/' config/s.h \ - || die "patch to config/s.h didn't apply" - popd - popd - pushd heliumNT || die "cannot cd to heliumNT" - econf --without-upx || die "econf failed" - pushd src || die "cannot cd to src" - make depend || die "make depend failed" - make || die "make failed" # emake doesn't work safely -} - -src_install() { - cd heliumNT/src || die "cannot cd to heliumNT/src" - make prefix="${D}/usr" \ - bindir="${D}/usr/lib/helium/bin" \ - libdir="${D}/usr/lib/helium/lib" \ - tclibdir="${D}/usr/lib/helium/tclib" \ - demodir="${D}/usr/lib/helium/demo" \ - install || die "make failed" - # install hint - java-pkg_dojar "${WORKDIR}/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 - dosym /usr/bin/helium-wrapper /usr/bin/helium-tc - dosym /usr/bin/helium-wrapper /usr/bin/lvmrun-tc - dosym /usr/bin/helium-wrapper /usr/bin/texthint-tc - dosym /usr/bin/helium-wrapper /usr/bin/hint-tc -} |