# ChangeLog for dev-haskell/hashed-storage
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-haskell/hashed-storage/ChangeLog,v 1.12 2011/08/04 13:17:35 slyfox Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-haskell/hashed-storage/ChangeLog,v 1.13 2011/08/04 21:03:16 slyfox Exp $
+
+*hashed-storage-0.5.7 (04 Aug 2011)
+
+ 04 Aug 2011; Sergei Trofimovich <slyfox@gentoo.org>
+ +hashed-storage-0.5.7.ebuild, +files/hashed-storage-0.5.7-ghc-7.2.patch:
+ Version bump.
04 Aug 2011; Sergei Trofimovich <slyfox@gentoo.org>
-hashed-storage-0.4.10.ebuild:
--- /dev/null
+diff --git a/Storage/Hashed/Monad.hs b/Storage/Hashed/Monad.hs
+index b86a702..5d96d4d 100644
+--- a/Storage/Hashed/Monad.hs
++++ b/Storage/Hashed/Monad.hs
+@@ -1,4 +1,5 @@
+ {-# LANGUAGE ScopedTypeVariables, BangPatterns, TypeSynonymInstances, UndecidableInstances #-}
++{-# LANGUAGE FlexibleInstances #-}
+
+ -- | An experimental monadic interface to Tree mutation. The main idea is to
+ -- simulate IO-ish manipulation of real filesystem (that's the state part of
+diff --git a/Storage/Hashed/Tree.hs b/Storage/Hashed/Tree.hs
+index 0bef0e6..c4bb669 100644
+--- a/Storage/Hashed/Tree.hs
++++ b/Storage/Hashed/Tree.hs
+@@ -1,4 +1,5 @@
+ {-# LANGUAGE ScopedTypeVariables, MultiParamTypeClasses, FlexibleInstances #-}
++{-# LANGUAGE BangPatterns #-}
+
+ -- | The abstract representation of a Tree and useful abstract utilities to
+ -- handle those.
--- /dev/null
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-haskell/hashed-storage/hashed-storage-0.5.7.ebuild,v 1.1 2011/08/04 21:03:16 slyfox Exp $
+
+# ebuild generated by hackport 0.2.13
+
+EAPI="3"
+
+CABAL_FEATURES="bin lib profile haddock hscolour"
+inherit base haskell-cabal
+
+DESCRIPTION="Hashed file storage support code."
+HOMEPAGE="http://hackage.haskell.org/package/hashed-storage"
+SRC_URI="http://hackage.haskell.org/packages/archive/${PN}/${PV}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
+IUSE="test"
+
+RDEPEND="dev-haskell/binary
+ dev-haskell/dataenc
+ =dev-haskell/mmap-0.5*
+ dev-haskell/mtl
+ dev-haskell/zlib
+ >=dev-lang/ghc-6.12"
+DEPEND=">=dev-haskell/cabal-1.6
+ test? (
+ dev-haskell/test-framework
+ dev-haskell/test-framework-hunit
+ dev-haskell/test-framework-quickcheck2
+ dev-haskell/zip-archive
+ )
+ ${RDEPEND}"
+
+PATCHES=("${FILESDIR}/${PN}-0.5.7-ghc-7.2.patch")
+
+src_configure() {
+ cabal_src_configure $(cabal_flag test)
+}
+
+src_install() {
+ haskell-cabal_src_install
+
+ use test && rm "${D}/usr/bin/hashed-storage-test"
+}
# ChangeLog for dev-haskell/mmap
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-haskell/mmap/ChangeLog,v 1.12 2011/04/10 18:56:58 grobian Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-haskell/mmap/ChangeLog,v 1.13 2011/08/04 21:03:16 slyfox Exp $
+
+*mmap-0.5.7 (04 Aug 2011)
+
+ 04 Aug 2011; Sergei Trofimovich <slyfox@gentoo.org> +mmap-0.5.7.ebuild:
+ Version bump.
10 Apr 2011; Fabian Groffen <grobian@gentoo.org> mmap-0.4.1.ebuild:
Marked ~x86-macos
--- /dev/null
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-haskell/mmap/mmap-0.5.7.ebuild,v 1.1 2011/08/04 21:03:16 slyfox Exp $
+
+# ebuild generated by hackport 0.2.9
+EAPI="3"
+
+CABAL_FEATURES="lib profile haddock hscolour"
+inherit haskell-cabal
+
+DESCRIPTION="Memory mapped files for POSIX and Windows"
+HOMEPAGE="http://hackage.haskell.org/package/mmap"
+SRC_URI="http://hackage.haskell.org/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="test"
+IUSE=""
+
+RESTRICT="test" # the test suit isn't included in this release! :(
+
+RDEPEND=">=dev-lang/ghc-6.8.2"
+DEPEND="${RDEPEND}
+ >=dev-haskell/cabal-1.2
+ test? ( dev-haskell/hunit )"
+
+src_configure() {
+ cabal_src_configure # $(cabal_flag test mmaptest)
+}
+
+src_test() {
+ # breaking the abstraction a bit, we're not supposed to know about ./setup
+ # and how it works...
+ ./dist/build/mmaptest/mmaptest || die "tests failed"
+}
+
+src_install() {
+ cabal_src_install
+
+ rm "${D}/usr/bin/mmaptest"
+ rmdir "${D}/usr/bin" 2> /dev/null # only if empty
+}