summaryrefslogtreecommitdiff
path: root/dev-haskell/haskeline
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /dev-haskell/haskeline
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.xz
proj/gentoo: Initial commit
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'dev-haskell/haskeline')
-rw-r--r--dev-haskell/haskeline/Manifest4
-rw-r--r--dev-haskell/haskeline/files/haskeline-0.6.4.7-ghc-6.12.patch22
-rw-r--r--dev-haskell/haskeline/files/haskeline-0.6.4.7-ghc-7.5.patch45
-rw-r--r--dev-haskell/haskeline/files/haskeline-0.6.4.7-ghc-7.6.patch22
-rw-r--r--dev-haskell/haskeline/haskeline-0.6.4.6-r1.ebuild31
-rw-r--r--dev-haskell/haskeline/haskeline-0.6.4.7-r1.ebuild36
-rw-r--r--dev-haskell/haskeline/haskeline-0.7.1.3.ebuild35
-rw-r--r--dev-haskell/haskeline/haskeline-0.7.2.1.ebuild42
-rw-r--r--dev-haskell/haskeline/metadata.xml18
9 files changed, 255 insertions, 0 deletions
diff --git a/dev-haskell/haskeline/Manifest b/dev-haskell/haskeline/Manifest
new file mode 100644
index 00000000000..e466e159e7c
--- /dev/null
+++ b/dev-haskell/haskeline/Manifest
@@ -0,0 +1,4 @@
+DIST haskeline-0.6.4.6.tar.gz 62349 SHA256 b2f2d275bd1f24370f13bd7607891ffdbbc7564d044dbbdabc5e83b27238d08c SHA512 86acc677e6c202ad311e343b1a58e4195b62ef78ca28b441a4203546c0d7e44a150eca50686b8ef1ef52bfd0eb1662db6d03c58b35c0d2da2a08ef501bd3a3b8 WHIRLPOOL 6a01921a7d3297f61bb3c4a0575580d42485aec59581314d7ba093f95288769b65a3c912bbed1a73903a6069388f368676994899be865a93c4d54c62e2666902
+DIST haskeline-0.6.4.7.tar.gz 62258 SHA256 301a7c21c73f52efe56763cf25d807d22dac3faea70538175ca843134524aaa2 SHA512 e31c186a93fd06318ea9b6998c0fa2eea64bc9f7c054cbd3704cdfdebcfede4e6acae966f5233b78eebaaa3c308310954197282103680790c308fb2b61338ba9 WHIRLPOOL 51f0bdadb7396a4ff3b7eef2d0b9a9bb2312d5a10a0612f5438cdae0d03e1694b21ca5cef4657e5863b0459b28e21d67261c0386a872386333d7fca6efc40345
+DIST haskeline-0.7.1.3.tar.gz 68291 SHA256 b10e439b13f5dad8705cfdfabe1cfd2a9446a7ec1cfdfecf4321d6e48f759eaf SHA512 eed183edd1af5b9d77c61278c40f07599900793e47858771810b48cbd178c34a06264910dd5484f76e5a03e53551e1035e1d291d8e3577ec6f4f5a9ba8d61d5d WHIRLPOOL db91df0b3da4ef833412831a5b4324cba0da35f07526c3d7b327d5b0d7ce6030a954ef08659a4d296847028ef22eaff5b96b2dad34a3fbb6da739fb34231635c
+DIST haskeline-0.7.2.1.tar.gz 68409 SHA256 ae56a3c8ead8e33492e01921452db441568236c70df2a4f9086b08678ddf6427 SHA512 a2f790b9bb27cc8681567c3c0c3476231976d08a0e2d1e9fb69301f55511edd0221034ae8af27ec4c9db4b15f2d72b8b716d013518d0b8d15d98e859dbf0321b WHIRLPOOL ae40dced4b1c307312d673676e237845ab5ca66ce3701d961ca290778c1cf127592669de6d7421885f04683852c1e4b478e8aab1b0160996dcaafb8158282187
diff --git a/dev-haskell/haskeline/files/haskeline-0.6.4.7-ghc-6.12.patch b/dev-haskell/haskeline/files/haskeline-0.6.4.7-ghc-6.12.patch
new file mode 100644
index 00000000000..3e9adc61f61
--- /dev/null
+++ b/dev-haskell/haskeline/files/haskeline-0.6.4.7-ghc-6.12.patch
@@ -0,0 +1,22 @@
+Workarounds build failure for ghc-6.12
+
+[18 of 27] Compiling System.Console.Haskeline.Backend.Terminfo ( System/Console/Haskeline/Backend/Terminfo.hs, dist/build/System/Console/Haskeline/Backend/Terminfo.o )
+
+System/Console/Haskeline/Backend/Terminfo.hs:200:9:
+ Inferred type is less polymorphic than expected
+ Quantified type variable `m' escapes
+ In the expression: Writer.tell
+ In the definition of `output': output = Writer.tell
+diff --git a/System/Console/Haskeline/Backend/Terminfo.hs b/System/Console/Haskeline/Backend/Terminfo.hs
+index 1bd0373..d01e9ba 100644
+--- a/System/Console/Haskeline/Backend/Terminfo.hs
++++ b/System/Console/Haskeline/Backend/Terminfo.hs
+@@ -197,7 +197,7 @@ runActionT m = do
+ return x
+
+ output :: TermAction -> ActionM ()
+-output = Writer.tell
++output = \x -> Writer.tell x
+
+ outputText :: String -> ActionM ()
+ outputText str = posixEncode str >>= output . const . termText . B.unpack
diff --git a/dev-haskell/haskeline/files/haskeline-0.6.4.7-ghc-7.5.patch b/dev-haskell/haskeline/files/haskeline-0.6.4.7-ghc-7.5.patch
new file mode 100644
index 00000000000..086f05ba833
--- /dev/null
+++ b/dev-haskell/haskeline/files/haskeline-0.6.4.7-ghc-7.5.patch
@@ -0,0 +1,45 @@
+--- haskeline-0.6.4.7-orig/haskeline.cabal 2012-05-14 04:29:12.000000000 +1000
++++ haskeline-0.6.4.7/haskeline.cabal 2012-06-30 22:20:29.154377863 +1000
+@@ -50,7 +50,7 @@
+ }
+ else {
+ if impl(ghc>=6.11) {
+- Build-depends: base >=4.1 && < 4.6, containers>=0.1 && < 0.6, directory>=1.0 && < 1.2,
++ Build-depends: base >=4.1 && < 4.7, containers>=0.1 && < 0.6, directory>=1.0 && < 1.2,
+ bytestring>=0.9 && < 0.11
+ }
+ else {
+--- haskeline-0.6.4.7-orig/System/Console/Haskeline/Monads.hs 2012-05-14 04:29:12.000000000 +1000
++++ haskeline-0.6.4.7/System/Console/Haskeline/Monads.hs 2012-06-30 22:21:34.478861860 +1000
+@@ -1,3 +1,4 @@
++{-# LANGUAGE CPP #-}
+ module System.Console.Haskeline.Monads(
+ module Control.Monad.Trans,
+ module System.Console.Haskeline.MonadException,
+@@ -18,7 +19,9 @@
+
+ import Control.Monad.Trans
+ import System.Console.Haskeline.MonadException
++#if !MIN_VERSION_base(4,6,0)
+ import Prelude hiding (catch)
++#endif
+
+ import Control.Monad.Reader hiding (MonadReader,ask,asks,local)
+ import qualified Control.Monad.Reader as Reader
+--- haskeline-0.6.4.7-orig/System/Console/Haskeline/MonadException.hs 2012-05-14 04:29:12.000000000 +1000
++++ haskeline-0.6.4.7/System/Console/Haskeline/MonadException.hs 2012-06-30 22:21:29.657752340 +1000
+@@ -1,3 +1,4 @@
++{-# LANGUAGE CPP #-}
+ {- | This module redefines some of the functions in "Control.Exception.Extensible" to
+ work for more general monads than only 'IO'.
+ -}
+@@ -18,7 +19,9 @@
+
+ import qualified Control.Exception.Extensible as E
+ import Control.Exception.Extensible(Exception,SomeException)
++#if !MIN_VERSION_base(4,6,0)
+ import Prelude hiding (catch)
++#endif
+ import Control.Monad.Reader
+ import Control.Monad.State
+ import Control.Concurrent(ThreadId)
diff --git a/dev-haskell/haskeline/files/haskeline-0.6.4.7-ghc-7.6.patch b/dev-haskell/haskeline/files/haskeline-0.6.4.7-ghc-7.6.patch
new file mode 100644
index 00000000000..f09a30ad5f5
--- /dev/null
+++ b/dev-haskell/haskeline/files/haskeline-0.6.4.7-ghc-7.6.patch
@@ -0,0 +1,22 @@
+diff --git a/haskeline.cabal b/haskeline.cabal
+index 2fa8d2e..0f43bfe 100644
+--- a/haskeline.cabal
++++ b/haskeline.cabal
+@@ -50,7 +50,7 @@ Library
+ }
+ else {
+ if impl(ghc>=6.11) {
+- Build-depends: base >=4.1 && < 4.7, containers>=0.1 && < 0.6, directory>=1.0 && < 1.2,
++ Build-depends: base >=4.1 && < 4.7, containers>=0.1 && < 0.6, directory>=1.0 && < 1.3,
+ bytestring>=0.9 && < 0.11
+ }
+ else {
+@@ -102,7 +102,7 @@ Library
+ install-includes: win_console.h
+ cpp-options: -DMINGW
+ } else {
+- Build-depends: unix>=2.0 && < 2.6
++ Build-depends: unix>=2.0 && < 2.7
+ -- unix-2.3 doesn't build on ghc-6.8.1 or earlier
+ c-sources: cbits/h_iconv.c
+ cbits/h_wcwidth.c
diff --git a/dev-haskell/haskeline/haskeline-0.6.4.6-r1.ebuild b/dev-haskell/haskeline/haskeline-0.6.4.6-r1.ebuild
new file mode 100644
index 00000000000..6983a792ce0
--- /dev/null
+++ b/dev-haskell/haskeline/haskeline-0.6.4.6-r1.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+# ebuild generated by hackport 0.2.14
+
+EAPI="4"
+
+CABAL_FEATURES="lib profile haddock hoogle hscolour"
+inherit haskell-cabal
+
+DESCRIPTION="A command-line interface for user input, written in Haskell"
+HOMEPAGE="http://trac.haskell.org/haskeline"
+SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="alpha amd64 ia64 ppc ppc64 sparc x86 ~x86-fbsd ~ppc-macos ~x86-macos"
+IUSE=""
+
+RDEPEND="<dev-haskell/mtl-2.2[profile?]
+ >=dev-haskell/terminfo-0.3.1.3[profile?]
+ <dev-haskell/utf8-string-0.4[profile?]
+ >=dev-lang/ghc-6.10.4"
+DEPEND="${RDEPEND}
+ >=dev-haskell/cabal-1.6"
+
+src_prepare() {
+ sed -e 's@mtl >= 1.1 && < 2.1@mtl >= 1.1 \&\& < 2.2@' \
+ -i "${S}/${PN}.cabal" || die "Could not loosen dependencies"
+}
diff --git a/dev-haskell/haskeline/haskeline-0.6.4.7-r1.ebuild b/dev-haskell/haskeline/haskeline-0.6.4.7-r1.ebuild
new file mode 100644
index 00000000000..20bf5d1cdd2
--- /dev/null
+++ b/dev-haskell/haskeline/haskeline-0.6.4.7-r1.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+# ebuild generated by hackport 0.3.9999
+
+CABAL_FEATURES="lib profile haddock hoogle hscolour"
+inherit base haskell-cabal
+
+DESCRIPTION="A command-line interface for user input, written in Haskell"
+HOMEPAGE="http://trac.haskell.org/haskeline"
+SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0/${PV}"
+KEYWORDS="alpha amd64 ia64 ppc ppc64 sparc x86 ~x86-fbsd ~ppc-macos ~x86-macos"
+IUSE=""
+
+RDEPEND=">=dev-haskell/extensible-exceptions-0.1.1.0:=[profile?]
+ <dev-haskell/extensible-exceptions-0.2:=[profile?]
+ >=dev-haskell/mtl-1.1:=[profile?]
+ <dev-haskell/mtl-2.2:=[profile?]
+ >=dev-haskell/terminfo-0.3.1.3:=[profile?]
+ <dev-haskell/terminfo-0.4:=[profile?]
+ >=dev-haskell/utf8-string-0.3.6:=[profile?]
+ <dev-haskell/utf8-string-0.4:=[profile?]
+ >=dev-lang/ghc-6.10.4:="
+DEPEND="${RDEPEND}
+ >=dev-haskell/cabal-1.6"
+
+PATCHES=("${FILESDIR}/${PN}-0.6.4.7-ghc-7.5.patch"
+ "${FILESDIR}/${PN}-0.6.4.7-ghc-7.6.patch"
+ "${FILESDIR}/${PN}-0.6.4.7-ghc-6.12.patch"
+ )
diff --git a/dev-haskell/haskeline/haskeline-0.7.1.3.ebuild b/dev-haskell/haskeline/haskeline-0.7.1.3.ebuild
new file mode 100644
index 00000000000..f45d0b4b0e4
--- /dev/null
+++ b/dev-haskell/haskeline/haskeline-0.7.1.3.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+# ebuild generated by hackport 0.4.2.9999
+
+CABAL_FEATURES="lib profile haddock hoogle hscolour"
+inherit haskell-cabal
+
+DESCRIPTION="A command-line interface for user input, written in Haskell"
+HOMEPAGE="http://trac.haskell.org/haskeline"
+SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0/${PV}"
+KEYWORDS="alpha amd64 ia64 ppc ~ppc64 sparc x86 ~x86-fbsd ~ppc-macos ~x86-macos"
+IUSE="legacy-encoding libiconv +terminfo"
+
+RDEPEND=">=dev-haskell/transformers-0.2:=[profile?] <dev-haskell/transformers-0.5:=[profile?]
+ >=dev-lang/ghc-7.4.1:=
+ legacy-encoding? ( >=dev-haskell/utf8-string-0.3.6:=[profile?] <dev-haskell/utf8-string-0.4:=[profile?] )
+ terminfo? ( >=dev-haskell/terminfo-0.3.1.3:=[profile?] <dev-haskell/terminfo-0.5:=[profile?] )
+"
+DEPEND="${RDEPEND}
+ >=dev-haskell/cabal-1.16
+"
+
+src_configure() {
+ haskell-cabal_src_configure \
+ $(cabal_flag legacy-encoding legacy-encoding) \
+ $(cabal_flag libiconv libiconv) \
+ $(cabal_flag terminfo terminfo)
+}
diff --git a/dev-haskell/haskeline/haskeline-0.7.2.1.ebuild b/dev-haskell/haskeline/haskeline-0.7.2.1.ebuild
new file mode 100644
index 00000000000..4a1147f4b2b
--- /dev/null
+++ b/dev-haskell/haskeline/haskeline-0.7.2.1.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+# ebuild generated by hackport 0.4.3
+
+CABAL_FEATURES="lib profile haddock hoogle hscolour"
+inherit haskell-cabal
+
+DESCRIPTION="A command-line interface for user input, written in Haskell"
+HOMEPAGE="http://trac.haskell.org/haskeline"
+SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0/${PV}"
+KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~ppc-macos ~x86-macos"
+IUSE="legacy-encoding libiconv +terminfo"
+
+RDEPEND=">=dev-haskell/transformers-0.2:=[profile?] <dev-haskell/transformers-0.5:=[profile?]
+ >=dev-lang/ghc-7.4.1:=
+ legacy-encoding? ( >=dev-haskell/utf8-string-0.3.6:=[profile?] )
+ terminfo? ( >=dev-haskell/terminfo-0.3.1.3:=[profile?] <dev-haskell/terminfo-0.5:=[profile?] )
+"
+DEPEND="${RDEPEND}
+ >=dev-haskell/cabal-1.10
+"
+
+CABAL_CORE_LIB_GHC_PV="PM:7.10.1 PM:7.10.2_rc2 PM:7.10.2"
+
+src_prepare() {
+ cabal_chdeps \
+ 'utf8-string==0.3.* && >=0.3.6' 'utf8-string >=0.3.6'
+}
+
+src_configure() {
+ haskell-cabal_src_configure \
+ $(cabal_flag legacy-encoding legacy-encoding) \
+ $(cabal_flag libiconv libiconv) \
+ $(cabal_flag terminfo terminfo)
+}
diff --git a/dev-haskell/haskeline/metadata.xml b/dev-haskell/haskeline/metadata.xml
new file mode 100644
index 00000000000..24b9af7494c
--- /dev/null
+++ b/dev-haskell/haskeline/metadata.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>haskell</herd>
+ <longdescription>
+ Haskeline provides a user interface for line input in command-line
+ programs. This library is similar in purpose to readline, but since
+ it is written in Haskell it is (hopefully) more easily used in other
+ Haskell programs.
+
+ Haskeline runs both on POSIX-compatible systems and on Windows.
+ </longdescription>
+ <use>
+ <flag name="terminfo">Use the terminfo package for POSIX consoles.</flag>
+ <flag name="libiconv">Explicitly link against the libiconv library.</flag>
+ <flag name="legacy-encoding">Use legacy iconv encoding for POSIX. This is only intended for testing.</flag>
+ </use>
+</pkgmetadata>