summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Vershilov <qnikst@gentoo.org>2013-08-26 08:38:21 +0000
committerAlexander Vershilov <qnikst@gentoo.org>2013-08-26 08:38:21 +0000
commit1bd5f0c8f5eb941c58f921b443ad0bd646a8f663 (patch)
tree529b28d1eb4bbc59ef89035c338cddd0dc7d1063 /dev-haskell/wai
parentrevbump -> EAPI 5 (diff)
downloadgentoo-2-1bd5f0c8f5eb941c58f921b443ad0bd646a8f663.tar.gz
gentoo-2-1bd5f0c8f5eb941c58f921b443ad0bd646a8f663.tar.bz2
gentoo-2-1bd5f0c8f5eb941c58f921b443ad0bd646a8f663.zip
dev-haskell/wai: layout
(Portage version: 2.2.1/cvs/Linux x86_64, signed Manifest commit with key 0xEAD50D64D8D3571A!)
Diffstat (limited to 'dev-haskell/wai')
-rw-r--r--dev-haskell/wai/ChangeLog10
-rw-r--r--dev-haskell/wai/files/wai-1.4.0.1-support-vault-3.0.patch24
-rw-r--r--dev-haskell/wai/metadata.xml11
-rw-r--r--dev-haskell/wai/wai-1.4.0.1-r1.ebuild40
4 files changed, 85 insertions, 0 deletions
diff --git a/dev-haskell/wai/ChangeLog b/dev-haskell/wai/ChangeLog
new file mode 100644
index 000000000000..14f1e94bd826
--- /dev/null
+++ b/dev-haskell/wai/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for dev-haskell/wai
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-haskell/wai/ChangeLog,v 1.1 2013/08/26 08:38:21 qnikst Exp $
+
+*wai-1.4.0.1-r1 (26 Aug 2013)
+
+ 26 Aug 2013; Alexander Vershilov <qnikst@gentoo.org>
+ +files/wai-1.4.0.1-support-vault-3.0.patch, +metadata.xml,
+ +wai-1.4.0.1-r1.ebuild:
+ dev-haskell/wai: layout
diff --git a/dev-haskell/wai/files/wai-1.4.0.1-support-vault-3.0.patch b/dev-haskell/wai/files/wai-1.4.0.1-support-vault-3.0.patch
new file mode 100644
index 000000000000..4fef50a3f79a
--- /dev/null
+++ b/dev-haskell/wai/files/wai-1.4.0.1-support-vault-3.0.patch
@@ -0,0 +1,24 @@
+diff --git a/Network/Wai.hs b/Network/Wai.hs
+index 626b30d..8189592 100644
+--- a/Network/Wai.hs
++++ b/Network/Wai.hs
+@@ -1,6 +1,7 @@
+ {-# LANGUAGE Rank2Types #-}
+ {-# LANGUAGE ExistentialQuantification #-}
+ {-# LANGUAGE DeriveDataTypeable #-}
++{-# LANGUAGE CPP #-}
+ {-|
+
+ This module defines a generic web application interface. It is a common
+@@ -61,7 +62,11 @@ import qualified Network.HTTP.Types as H
+ import Data.Text (Text)
+ import Data.ByteString.Lazy.Char8 () -- makes it easier to use responseLBS
+ import Blaze.ByteString.Builder (fromByteString)
++#if MIN_VERSION_vault(0,3,0)
++import Data.Vault.Lazy (Vault)
++#else
+ import Data.Vault (Vault)
++#endif
+ import Data.Word (Word64)
+
+ -- | Information on the request sent by the client. This abstracts away the
diff --git a/dev-haskell/wai/metadata.xml b/dev-haskell/wai/metadata.xml
new file mode 100644
index 000000000000..82725adf9f4e
--- /dev/null
+++ b/dev-haskell/wai/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>haskell</herd>
+ <maintainer>
+ <email>haskell@gentoo.org</email>
+ </maintainer>
+ <longdescription>
+ Provides a common protocol for communication between web applications and web servers.
+ </longdescription>
+</pkgmetadata>
diff --git a/dev-haskell/wai/wai-1.4.0.1-r1.ebuild b/dev-haskell/wai/wai-1.4.0.1-r1.ebuild
new file mode 100644
index 000000000000..7e246b0fa0d1
--- /dev/null
+++ b/dev-haskell/wai/wai-1.4.0.1-r1.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-haskell/wai/wai-1.4.0.1-r1.ebuild,v 1.1 2013/08/26 08:38:21 qnikst Exp $
+
+EAPI=5
+
+# ebuild generated by hackport 0.3.2.9999
+
+CABAL_FEATURES="lib profile haddock hoogle hscolour"
+inherit haskell-cabal
+
+DESCRIPTION="Web Application Interface."
+HOMEPAGE="https://github.com/yesodweb/wai"
+SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0/${PV}"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND=">=dev-haskell/blaze-builder-0.2.1.4:=[profile?]
+ <dev-haskell/blaze-builder-0.4:=[profile?]
+ >=dev-haskell/conduit-0.5:=[profile?]
+ <dev-haskell/conduit-1.1:=[profile?]
+ >=dev-haskell/http-types-0.7:=[profile?]
+ >=dev-haskell/network-2.2.1.5:=[profile?]
+ >=dev-haskell/text-0.7:=[profile?]
+ >=dev-haskell/transformers-0.2.2:=[profile?]
+ >=dev-haskell/vault-0.1:=[profile?]
+ <dev-haskell/vault-0.4:=[profile?]
+ >=dev-lang/ghc-6.10.4:="
+DEPEND="${RDEPEND}
+ >=dev-haskell/cabal-1.6"
+
+src_prepare() {
+ cabal_chdeps \
+ 'vault >= 0.1 && < 0.3' \
+ 'vault >= 0.1 && < 0.4'
+ epatch "${FILESDIR}"/${P}-support-vault-3.0.patch
+}