summaryrefslogtreecommitdiff
path: root/dev-haskell/http2
diff options
context:
space:
mode:
Diffstat (limited to 'dev-haskell/http2')
-rw-r--r--dev-haskell/http2/Manifest1
-rw-r--r--dev-haskell/http2/files/http2-1.6.0-even-less-deps.patch18
-rw-r--r--dev-haskell/http2/files/http2-1.6.0-less-deps.patch52
-rw-r--r--dev-haskell/http2/http2-3.0.1.ebuild2
-rw-r--r--dev-haskell/http2/http2-4.1.2.ebuild52
5 files changed, 124 insertions, 1 deletions
diff --git a/dev-haskell/http2/Manifest b/dev-haskell/http2/Manifest
index 6648bbe0a355..4c18f5b4a652 100644
--- a/dev-haskell/http2/Manifest
+++ b/dev-haskell/http2/Manifest
@@ -1 +1,2 @@
DIST http2-3.0.1.tar.gz 5556373 BLAKE2B 40daf73f0460ce649d6bed41b9df961b7388f7ac2e67a11aae56be2f31209183e68cef558b7880b87d1a752f96f989779e5ecbf1a86df5bd4ac8443cd476c41b SHA512 aaa32209fb9945cc33c557866acb053df403bbe37c2bd024ac52e7fc6a3e816d0249e48b83e8846017fe0df0998327cf3498f1bc96b57b0fa81ce9c4d35589c6
+DIST http2-4.1.2.tar.gz 5496723 BLAKE2B 1939a137ce0ef3fad476721fe9059963de7b96e9e09c49735d33de3bb4382ec5536c17965677df3482edb09b93e83edee485503d989b07bff8cf7d0c76f48b3e SHA512 85fb0025854c059d186dd4cefffb1065f0c87d494740afba6a3f785c7d579bc11e2ba881eeeae8f682e55902e70a8ba8bc571f84aa27fcaf341110fb70e1b43d
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
index 000000000000..07be024ee5e1
--- /dev/null
+++ b/dev-haskell/http2/files/http2-1.6.0-even-less-deps.patch
@@ -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
index 000000000000..1ee62446d328
--- /dev/null
+++ b/dev-haskell/http2/files/http2-1.6.0-less-deps.patch
@@ -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-3.0.1.ebuild b/dev-haskell/http2/http2-3.0.1.ebuild
index fecaeb80aff2..26de4836f1dd 100644
--- a/dev-haskell/http2/http2-3.0.1.ebuild
+++ b/dev-haskell/http2/http2-3.0.1.ebuild
@@ -1,7 +1,7 @@
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=7
+EAPI=8
# ebuild generated by hackport 0.6.7.9999
#hackport: flags: -devel,-doc,-h2spec
diff --git a/dev-haskell/http2/http2-4.1.2.ebuild b/dev-haskell/http2/http2-4.1.2.ebuild
new file mode 100644
index 000000000000..3c47800475b9
--- /dev/null
+++ b/dev-haskell/http2/http2-4.1.2.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+# ebuild generated by hackport 0.8.2.0.9999
+#hackport: flags: -devel,-doc,-h2spec
+
+CABAL_FEATURES="lib profile haddock hoogle hscolour test-suite"
+inherit haskell-cabal
+
+DESCRIPTION="HTTP/2 library"
+HOMEPAGE="https://github.com/kazu-yamamoto/http2"
+
+LICENSE="BSD"
+SLOT="0/${PV}"
+KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv ~x86"
+
+RESTRICT=test # requires network to run one of the test suites
+
+RDEPEND="dev-haskell/async:=[profile?]
+ dev-haskell/case-insensitive:=[profile?]
+ dev-haskell/http-types:=[profile?]
+ dev-haskell/network:=[profile?]
+ >=dev-haskell/network-byte-order-0.1.5:=[profile?]
+ dev-haskell/psqueues:=[profile?]
+ dev-haskell/time-manager:=[profile?]
+ dev-haskell/unix-time:=[profile?]
+ dev-haskell/unliftio:=[profile?]
+ >=dev-lang/ghc-8.8.1:=
+"
+DEPEND="${RDEPEND}
+ >=dev-haskell/cabal-3.0.0.0
+ test? ( >=dev-haskell/aeson-2
+ dev-haskell/aeson-pretty
+ >=dev-haskell/base16-bytestring-1.0
+ dev-haskell/cryptonite
+ >=dev-haskell/glob-0.9
+ >=dev-haskell/hspec-1.3
+ >=dev-haskell/network-run-0.1.0
+ dev-haskell/text
+ dev-haskell/typed-process
+ dev-haskell/unordered-containers
+ dev-haskell/vector )
+"
+
+src_configure() {
+ haskell-cabal_src_configure \
+ --flag=-devel \
+ --flag=-doc \
+ --flag=-h2spec
+}