dev-haskell/http2: bump up to 1.6.2
authorSergei Trofimovich <slyfox@gentoo.org>
Wed, 15 Feb 2017 22:28:54 +0000 (22:28 +0000)
committerSergei Trofimovich <slyfox@gentoo.org>
Thu, 16 Feb 2017 10:21:28 +0000 (10:21 +0000)
Package-Manager: Portage-2.3.3, Repoman-2.3.1

dev-haskell/http2/Manifest
dev-haskell/http2/files/http2-1.6.0-even-less-deps.patch [new file with mode: 0644]
dev-haskell/http2/files/http2-1.6.0-less-deps.patch [new file with mode: 0644]
dev-haskell/http2/http2-1.6.2.ebuild [new file with mode: 0644]

index 3d1cecf8a9da2d2d2ced53207c1d9d315b521301..d7f5a2ebd26b317eb29c3b9a704eded007274d07 100644 (file)
@@ -1 +1,2 @@
 DIST http2-1.3.1.tar.gz 39493 SHA256 547aa0826373711e4ec8d271f767cd8db74ac3cb822cdf58d305c18babd22f96 SHA512 7d47cb35ce55743ecdc19ea52a1e230c8c3d608348f658ed7b3eb4f86a93ad4aa16eb23e4294dc1752bd99da8027e61a0b575ee9b89fe182d6582f6b5b402cee WHIRLPOOL d0852b262b44bb9b9e306f8e2d605dc8646a3568a52553cdb50d5bef792d929967c48f79aa429906098ac78017ec6a202afa41cb533bafd6d5bb7d810a4347c7
+DIST http2-1.6.2.tar.gz 5138047 SHA256 99e75ac0fa19276d276ec63bb94eefb2e952b0a374aea8f3d2c2408a634b6fe7 SHA512 c9df89cb073b57bc379857aedfba82097b805f8c9452b5a2b9cfff2ff096f185f9b8aa2dfaa5b0be7909a214a67d8ba8fb93ddc8a19f8afb43f9f5d5bf67f0da WHIRLPOOL b7705ad28bd6348a444b9dfee5d6026d6d0b63fc0be67655c6a775127840868787c2613fccae2c34391b99c31841b3792fab2be302e5574c2e0e539a9ea2186f
diff --git a/dev-haskell/http2/files/http2-1.6.0-even-less-deps.patch b/dev-haskell/http2/files/http2-1.6.0-even-less-deps.patch
new file mode 100644 (file)
index 0000000..07be024
--- /dev/null
@@ -0,0 +1,18 @@
+diff --git a/http2.cabal b/http2.cabal
+index fe57a48..b28ad06 100644
+--- a/http2.cabal
++++ b/http2.cabal
+@@ -204,6 +204,3 @@ Executable hpack-debug
+     Buildable:          True
+-  else
+-    Buildable:          False
+-  Main-Is:              hpack-debug.hs
+-  Build-Depends:        base >= 4 && < 5
++    Build-Depends:      base >= 4 && < 5
+                       , aeson
+@@ -219,2 +216,5 @@ Executable hpack-debug
+                       , word8
++  else
++    Buildable:          False
++  Main-Is:              hpack-debug.hs
diff --git a/dev-haskell/http2/files/http2-1.6.0-less-deps.patch b/dev-haskell/http2/files/http2-1.6.0-less-deps.patch
new file mode 100644 (file)
index 0000000..1ee6244
--- /dev/null
@@ -0,0 +1,52 @@
+diff --git a/http2.cabal b/http2.cabal
+index 7986d1c..fe57a48 100644
+--- a/http2.cabal
++++ b/http2.cabal
+@@ -180,7 +180,3 @@ Executable hpack-encode
+     Buildable:          True
+-  else
+-    Buildable:          False
+-  Main-Is:              hpack-encode.hs
+-  Other-Modules:        HPACKEncode
+-  Build-Depends:        base >= 4 && < 5
++    Build-Depends:      base >= 4 && < 5
+                       , aeson
+@@ -197,2 +193,6 @@ Executable hpack-encode
+                       , word8
++  else
++    Buildable:          False
++  Main-Is:              hpack-encode.hs
++  Other-Modules:        HPACKEncode
+@@ -226,6 +226,3 @@ Executable hpack-stat
+     Buildable:          True
+-  else
+-    Buildable:          False
+-  Main-Is:              hpack-stat.hs
+-  Build-Depends:        base >= 4 && < 5
++    Build-Depends:      base >= 4 && < 5
+                       , aeson
+@@ -243,2 +240,5 @@ Executable hpack-stat
+                       , word8
++  else
++    Buildable:          False
++  Main-Is:              hpack-stat.hs
+@@ -250,8 +250,3 @@ Executable frame-encode
+     Buildable:          True
+-  else
+-    Buildable:          False
+-  Main-Is:              frame-encode.hs
+-  Other-Modules:        Case
+-                        JSON
+-  Build-Depends:        base >= 4 && < 5
++    Build-Depends:      base >= 4 && < 5
+                       , aeson
+@@ -263,2 +258,7 @@ Executable frame-encode
+                       , unordered-containers
++  else
++    Buildable:          False
++  Main-Is:              frame-encode.hs
++  Other-Modules:        Case
++                        JSON
diff --git a/dev-haskell/http2/http2-1.6.2.ebuild b/dev-haskell/http2/http2-1.6.2.ebuild
new file mode 100644 (file)
index 0000000..5fc5f6a
--- /dev/null
@@ -0,0 +1,52 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+# ebuild generated by hackport 0.4.7.9999
+#hackport: flags: -devel
+
+CABAL_FEATURES="lib profile haddock hoogle hscolour test-suite"
+inherit haskell-cabal
+
+DESCRIPTION="HTTP/2.0 library including frames and HPACK"
+HOMEPAGE="http://hackage.haskell.org/package/http2"
+SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0/${PV}"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="dev-haskell/bytestring-builder:=[profile?]
+       dev-haskell/case-insensitive:=[profile?]
+       dev-haskell/psqueues:=[profile?]
+       dev-haskell/stm:=[profile?]
+       >=dev-lang/ghc-7.6.1:=
+"
+DEPEND="${RDEPEND}
+       >=dev-haskell/cabal-1.16.0
+       test? ( dev-haskell/aeson
+               dev-haskell/aeson-pretty
+               >=dev-haskell/doctest-0.9.3
+               dev-haskell/glob
+               dev-haskell/hex
+               >=dev-haskell/hspec-1.3
+               dev-haskell/text
+               dev-haskell/unordered-containers
+               dev-haskell/vector
+               dev-haskell/word8 )
+"
+
+src_prepare() {
+       # workaround Cabal bug at picking unused deps
+       eapply "${FILESDIR}"/${PN}-1.6.0-less-deps.patch
+       eapply "${FILESDIR}"/${PN}-1.6.0-even-less-deps.patch
+       eapply_user
+}
+
+src_configure() {
+       haskell-cabal_src_configure \
+               --flag=-devel
+}