summaryrefslogtreecommitdiff
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/hashed-storage
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip
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/hashed-storage')
-rw-r--r--dev-haskell/hashed-storage/Manifest3
-rw-r--r--dev-haskell/hashed-storage/files/hashed-storage-0.5.11-ghc-7.10.patch8
-rw-r--r--dev-haskell/hashed-storage/files/hashed-storage-0.5.9-ghc-7.6.patch57
-rw-r--r--dev-haskell/hashed-storage/hashed-storage-0.5.10.ebuild46
-rw-r--r--dev-haskell/hashed-storage/hashed-storage-0.5.11.ebuild55
-rw-r--r--dev-haskell/hashed-storage/hashed-storage-0.5.9.ebuild48
-rw-r--r--dev-haskell/hashed-storage/metadata.xml19
7 files changed, 236 insertions, 0 deletions
diff --git a/dev-haskell/hashed-storage/Manifest b/dev-haskell/hashed-storage/Manifest
new file mode 100644
index 000000000000..613481b711e5
--- /dev/null
+++ b/dev-haskell/hashed-storage/Manifest
@@ -0,0 +1,3 @@
+DIST hashed-storage-0.5.10.tar.gz 57658 SHA256 05824a4cedd2be03444fd0bc664f5c94f6edc50005f1a8f99657150fa6cdedcc SHA512 dfb9cecdfe44e311020ccb79c437d2bb326f18d4022a0386aacd5c23a7c93b6a4f70baa7c2724b796785257a1733407975682fd3b949eda80bee9824df9b7001 WHIRLPOOL f97a546b651e2a9f3e905203d9ff5db56c2edc472eec9edf2c133749e025f890118dd723a1c6eba61a18b5ab1116af888a256bac94f4557b8d18e726ec3b97b3
+DIST hashed-storage-0.5.11.tar.gz 57315 SHA256 734b5e91081e355384f86fdd67f242e095e8c5196b182a62cc996fdabdb21569 SHA512 11bfc05ecb2de5adc5a46116d15d969207a310583e7183e2a21ef767a23eabc55622c84ef351ace81a29800a544358c604b4a255800a713af01266331bf321ba WHIRLPOOL 689cfda0dfc46d7b33762140aeff61bc9fa5a66bad3af264ab290e8d28be71ca1611f57615b07adf51ede8a97cc9a2f053f60acd26dad27b613e0045e80ad9f2
+DIST hashed-storage-0.5.9.tar.gz 56719 SHA256 62c2394d0a127222920211152022e8bc40775ebbdd22fd383715cb32f90796f9 SHA512 4d2463b04fa2d00690267ea88336e02465a5f2166ac2060db04c9ce53e83099cdb46b8f788be4b81c66d018563a2648de2ce810abb6fed8f39c7de104ada6655 WHIRLPOOL 8a3522efdce063cd2348732b2d13b1072ec415dbfdadcdc0f7c6dbb832a519647fdce0981d8ce73927fcd128e0dc8afaeeb25492d684971b7db49998048b75ea
diff --git a/dev-haskell/hashed-storage/files/hashed-storage-0.5.11-ghc-7.10.patch b/dev-haskell/hashed-storage/files/hashed-storage-0.5.11-ghc-7.10.patch
new file mode 100644
index 000000000000..f071cab314fb
--- /dev/null
+++ b/dev-haskell/hashed-storage/files/hashed-storage-0.5.11-ghc-7.10.patch
@@ -0,0 +1,8 @@
+diff --git a/Storage/Hashed/Monad.hs b/Storage/Hashed/Monad.hs
+index 67287b4..bf8ad38 100644
+--- a/Storage/Hashed/Monad.hs
++++ b/Storage/Hashed/Monad.hs
+@@ -1,2 +1,3 @@
+ {-# LANGUAGE ScopedTypeVariables, BangPatterns, TypeSynonymInstances, UndecidableInstances, FlexibleInstances #-}
++{-# LANGUAGE FlexibleContexts #-}
+
diff --git a/dev-haskell/hashed-storage/files/hashed-storage-0.5.9-ghc-7.6.patch b/dev-haskell/hashed-storage/files/hashed-storage-0.5.9-ghc-7.6.patch
new file mode 100644
index 000000000000..21baf9605d9c
--- /dev/null
+++ b/dev-haskell/hashed-storage/files/hashed-storage-0.5.9-ghc-7.6.patch
@@ -0,0 +1,57 @@
+--- hashed-storage-0.5.9-orig/Storage/Hashed/Tree.hs 2011-10-09 07:47:55.000000000 +1100
++++ hashed-storage-0.5.9/Storage/Hashed/Tree.hs 2012-09-15 00:38:24.233669282 +1000
+@@ -41,6 +41,7 @@
+ import Data.List( union, sort )
+ import Control.Monad( filterM, liftM )
+ import Control.Applicative( (<$>) )
++import qualified Control.Exception ( catch, IOException )
+
+ --------------------------------
+ -- Tree, Blob and friends
+@@ -195,7 +196,7 @@
+ let
+ subtree (name, sub) =
+ do let here = path `appendPath` name
+- sub' <- (Just <$> unstub sub) `catch` \_ -> return Nothing
++ sub' <- (Just <$> unstub sub) `Control.Exception.catch` \(_ :: Control.Exception.IOException) -> return Nothing
+ case sub' of
+ Nothing -> return $ Left [(here, treeHash t_, Nothing)]
+ Just sub -> do
+@@ -204,10 +205,10 @@
+ Left problems -> Left problems
+ Right tree -> Right (name, SubTree tree)
+ badBlob (_, f@(File (Blob s h))) =
+- fmap (/= h) (hashFunc f `catch` (\_ -> return NoHash))
++ fmap (/= h) (hashFunc f `Control.Exception.catch` (\(_ :: Control.Exception.IOException) -> return NoHash))
+ badBlob _ = return False
+ render (name, f@(File (Blob _ h))) = do
+- h' <- (Just <$> hashFunc f) `catch` \_ -> return Nothing
++ h' <- (Just <$> hashFunc f) `Control.Exception.catch` \(_ :: Control.Exception.IOException) -> return Nothing
+ return (path `appendPath` name, h, h')
+ subs <- mapM subtree [ x | x@(_, item) <- listImmediate t_, isSub item ]
+ badBlobs <- filterM badBlob (listImmediate t) >>= mapM render
+--- hashed-storage-0.5.9-orig/Storage/Hashed/Darcs.hs 2011-10-09 07:47:55.000000000 +1100
++++ hashed-storage-0.5.9/Storage/Hashed/Darcs.hs 2012-09-15 00:40:02.693038029 +1000
+@@ -1,4 +1,4 @@
+-{-# LANGUAGE BangPatterns #-}
++{-# LANGUAGE BangPatterns, ScopedTypeVariables #-}
+
+ -- | A few darcs-specific utility functions. These are used for reading and
+ -- writing darcs and darcs-compatible hashed trees.
+@@ -10,6 +10,7 @@
+ import System.Directory( doesFileExist )
+ import Codec.Compression.GZip( decompress, compress )
+ import Control.Applicative( (<$>) )
++import qualified Control.Exception ( catch, IOException )
+
+ import qualified Data.ByteString.Char8 as BS8
+ import qualified Data.ByteString.Lazy.Char8 as BL8
+@@ -290,7 +291,7 @@
+
+ darcsPristineRefs :: FileSegment -> IO [Hash]
+ darcsPristineRefs fs = do
+- con <- (darcsParseDir <$> readSegment fs) `catch` \_ -> return []
++ con <- (darcsParseDir <$> readSegment fs) `Control.Exception.catch` \(_ :: Control.Exception.IOException) -> return []
+ return $! [ hash | (_, _, _, hash) <- con, valid hash ]
+ where valid NoHash = False
+ valid _ = True
diff --git a/dev-haskell/hashed-storage/hashed-storage-0.5.10.ebuild b/dev-haskell/hashed-storage/hashed-storage-0.5.10.ebuild
new file mode 100644
index 000000000000..5831b8fb092f
--- /dev/null
+++ b/dev-haskell/hashed-storage/hashed-storage-0.5.10.ebuild
@@ -0,0 +1,46 @@
+# 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="bin lib profile haddock hoogle hscolour"
+inherit haskell-cabal
+
+DESCRIPTION="Hashed file storage support code"
+HOMEPAGE="http://hackage.haskell.org/package/hashed-storage"
+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="test"
+
+RDEPEND="dev-haskell/binary:=[profile?]
+ dev-haskell/dataenc:=[profile?]
+ dev-haskell/extensible-exceptions:=[profile?]
+ =dev-haskell/mmap-0.5*:=[profile?]
+ dev-haskell/mtl:=[profile?]
+ dev-haskell/zlib:=[profile?]
+ >=dev-lang/ghc-6.10.4:="
+DEPEND=">=dev-haskell/cabal-1.6
+ test? (
+ >=dev-haskell/quickcheck-2.3
+ dev-haskell/test-framework[profile?]
+ dev-haskell/test-framework-hunit[profile?]
+ dev-haskell/test-framework-quickcheck2[profile?]
+ dev-haskell/zip-archive[profile?]
+ )
+ ${RDEPEND}"
+
+src_configure() {
+ cabal_src_configure $(cabal_flag test)
+}
+
+src_install() {
+ haskell-cabal_src_install
+
+ use test && rm "${ED}/usr/bin/hashed-storage-test"
+}
diff --git a/dev-haskell/hashed-storage/hashed-storage-0.5.11.ebuild b/dev-haskell/hashed-storage/hashed-storage-0.5.11.ebuild
new file mode 100644
index 000000000000..6bd3b8916a5f
--- /dev/null
+++ b/dev-haskell/hashed-storage/hashed-storage-0.5.11.ebuild
@@ -0,0 +1,55 @@
+# 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.9999
+
+CABAL_FEATURES="bin lib profile haddock hoogle hscolour"
+inherit haskell-cabal
+
+DESCRIPTION="Hashed file storage support code"
+HOMEPAGE="http://hackage.haskell.org/package/hashed-storage"
+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="diff hpc test"
+
+RDEPEND="dev-haskell/binary:=[profile?]
+ dev-haskell/dataenc:=[profile?]
+ dev-haskell/extensible-exceptions:=[profile?]
+ >=dev-haskell/mmap-0.5:=[profile?] <dev-haskell/mmap-0.6:=[profile?]
+ dev-haskell/mtl:=[profile?]
+ dev-haskell/zlib:=[profile?]
+ >=dev-lang/ghc-7.4.1:=
+ diff? ( dev-haskell/lcs:=[profile?] )
+"
+DEPEND="${RDEPEND}
+ >=dev-haskell/cabal-1.6
+ test? ( dev-haskell/hunit:=[profile?]
+ >=dev-haskell/quickcheck-2.3:2=[profile?]
+ dev-haskell/test-framework:=[profile?]
+ dev-haskell/test-framework-hunit:=[profile?]
+ dev-haskell/test-framework-quickcheck2:=[profile?]
+ dev-haskell/zip-archive:=[profile?] )
+"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-ghc-7.10.patch
+}
+
+src_configure() {
+ haskell-cabal_src_configure \
+ $(cabal_flag diff diff) \
+ $(cabal_flag hpc hpc) \
+ $(cabal_flag test test)
+}
+
+src_install() {
+ haskell-cabal_src_install
+
+ use test && rm "${ED}/usr/bin/hashed-storage-test"
+}
diff --git a/dev-haskell/hashed-storage/hashed-storage-0.5.9.ebuild b/dev-haskell/hashed-storage/hashed-storage-0.5.9.ebuild
new file mode 100644
index 000000000000..562d401bd6bd
--- /dev/null
+++ b/dev-haskell/hashed-storage/hashed-storage-0.5.9.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+# ebuild generated by hackport 0.2.13
+
+EAPI=4
+
+CABAL_FEATURES="bin lib profile haddock hoogle hscolour"
+inherit base haskell-cabal
+
+DESCRIPTION="Hashed file storage support code"
+HOMEPAGE="http://hackage.haskell.org/package/hashed-storage"
+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="test"
+RESTRICT="test"
+
+RDEPEND="dev-haskell/binary[profile?]
+ dev-haskell/dataenc[profile?]
+ =dev-haskell/mmap-0.5*[profile?]
+ dev-haskell/mtl[profile?]
+ dev-haskell/zlib[profile?]
+ >=dev-lang/ghc-6.12"
+DEPEND=">=dev-haskell/cabal-1.6
+ test? (
+ >=dev-haskell/quickcheck-2.3
+ dev-haskell/test-framework[profile?]
+ dev-haskell/test-framework-hunit[profile?]
+ dev-haskell/test-framework-quickcheck2[profile?]
+ dev-haskell/zip-archive[profile?]
+ )
+ ${RDEPEND}"
+
+PATCHES=("${FILESDIR}/${PN}-0.5.9-ghc-7.6.patch")
+
+src_configure() {
+ cabal_src_configure $(cabal_flag test)
+}
+
+src_install() {
+ haskell-cabal_src_install
+
+ use test && rm "${D}/usr/bin/hashed-storage-test"
+}
diff --git a/dev-haskell/hashed-storage/metadata.xml b/dev-haskell/hashed-storage/metadata.xml
new file mode 100644
index 000000000000..20421897c38c
--- /dev/null
+++ b/dev-haskell/hashed-storage/metadata.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>haskell</herd>
+ <longdescription>
+ Support code for reading and manipulating hashed file storage
+ (where each file and directory is associated with a
+ cryptographic hash, for corruption-resistant storage and fast
+ comparisons).
+
+ The supported storage formats include darcs hashed pristine, a
+ plain filesystem tree and an indexed plain tree (where the index
+ maintains hashes of the plain files and directories).
+ </longdescription>
+ <use>
+ <flag name="diff">Provide the Storage.Hashed.Diff module.</flag>
+ <flag name="hpc">Compile with the profiling ghc flag -fhpc.</flag>
+ </use>
+</pkgmetadata>