--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>haskell@gentoo.org</email>
+ <name>Gentoo Haskell</name>
+ </maintainer>
+ <longdescription>
+ Due to the design of POSIX, it is possible to temporarily overload the
+ file descriptors corresponding to stdout and stderr to point to an
+ arbitrary pipe. It is, however, tricky to get right. This module gets
+ it right, as far as such a terrible hack can be made right. It can be
+ used to make misbehaving third-party C libraries stop spewing to
+ standard output. Warning: the module author has concluded that due to
+ lack of portability, this module should not be used in any serious
+ sytem. But, for those who like living dangerously...
+ </longdescription>
+</pkgmetadata>
--- /dev/null
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+# ebuild generated by hackport 0.4.9999
+
+CABAL_FEATURES="lib profile haddock hoogle hscolour"
+inherit haskell-cabal
+
+DESCRIPTION="A toy module to temporarily redirect a program's stdout"
+HOMEPAGE="http://hackage.haskell.org/package/system-posix-redirect"
+SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0/${PV}"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND=">=dev-lang/ghc-7.4.1:=
+"
+DEPEND="${RDEPEND}
+ >=dev-haskell/cabal-1.6
+"