--- /dev/null
+# 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.6.9999
+
+CABAL_FEATURES="bin lib profile haddock hoogle hscolour test-suite"
+inherit haskell-cabal
+
+DESCRIPTION="Simple interface to some of Cabal's configuration state used by ghc-mod"
+HOMEPAGE="http://hackage.haskell.org/package/cabal-helper"
+SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz"
+
+LICENSE="AGPL-3"
+SLOT="0/${PV}"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND=">=dev-haskell/cabal-1.14:=[profile?] <dev-haskell/cabal-1.23:=[profile?]
+ dev-haskell/mtl:=[profile?]
+ dev-haskell/temporary:=[profile?]
+ dev-haskell/transformers:=[profile?]
+ dev-haskell/utf8-string:=[profile?]
+ >=dev-lang/ghc-7.4.1:=
+"
+DEPEND="${RDEPEND}
+ >=dev-haskell/cabal-1.10
+ test? ( dev-haskell/extra:2 )
+"
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>haskell</herd>
+ <longdescription>
+ @cabal-helper@ provides a library which wraps the internal use of executables
+ to lift the restrictions imposed by linking against versions of GHC before
+ @7.10@.
+
+ @cabal-helper@ uses a wrapper executable to compile the actual cabal-helper
+ executable at runtime while linking against an arbitrary version of
+ Cabal. This runtime-compiled helper executable is then used to extract
+ various bits and peices from Cabal\'s on disk state (dist/setup-config)
+ written by it's configure command.
+
+ In addition to this the wrapper executable also supports installing any
+ version of Cabal from hackage in case it cannot be found in any available
+ package database. The wrapper installs these instances of the Cabal library
+ into a private package database so as to not interfere with the user's
+ packages.
+
+ Furthermore the wrapper supports one special case namely reading a state
+ file for Cabal itself. This is needed as Cabal compiles it's Setup.hs using
+ itself and not using any version of Cabal installed in any package database.
+
+ @cabal-helper@ can compile with @Cabal >= 1.14@ but requires @Cabal >= 1.16@
+ at runtime.
+ </longdescription>
+</pkgmetadata>