diff options
author | matoro <matoro@users.noreply.github.com> | 2022-07-12 17:43:17 -0400 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-07-22 22:15:40 +0000 |
commit | 43b74899c865b08b5df200037b6b4581b49e06f1 (patch) | |
tree | dcfd3aa1519d213d5ee0242f559bda14603fccbe /dev-haskell/servant-server | |
parent | dev-haskell/servant: new package, add 0.19 (diff) | |
download | gentoo-43b74899c865b08b5df200037b6b4581b49e06f1.tar.gz gentoo-43b74899c865b08b5df200037b6b4581b49e06f1.tar.bz2 gentoo-43b74899c865b08b5df200037b6b4581b49e06f1.zip |
dev-haskell/servant-server: new package, add 0.19.1
Signed-off-by: matoro <matoro@users.noreply.github.com>
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-haskell/servant-server')
4 files changed, 113 insertions, 0 deletions
diff --git a/dev-haskell/servant-server/Manifest b/dev-haskell/servant-server/Manifest new file mode 100644 index 000000000000..e3fbf243d81c --- /dev/null +++ b/dev-haskell/servant-server/Manifest @@ -0,0 +1,2 @@ +DIST servant-server-0.19.1-rev1.cabal 5695 BLAKE2B 949da62888d2d0a5e98e4b6c874ab3f6e0278e010e7ec22c355d7b01f53aa20f8020502e219f289cefb0f57ced891ac4a0cc9ae04ebd0f4c96468cb1bbf0675c SHA512 14d16cc02a765cfdbe28c024c07b857a40b91379c48a4418a24a4d0b8e23ffa563bbd14a794a5594a86288bf14d039152ade3783a572d8314a32a13bf7e17e9f +DIST servant-server-0.19.1.tar.gz 53170 BLAKE2B 1e93a208995e78550b01a3cd417d427ac759e436b881a1ce38e3f171635798a9f24fb3ddfd94f3300ad79b6301cfbbf2a42df8f7e7a2928a5bcf8b85fa40e174 SHA512 1489455605b73b3ed40f4fd73c7891bf5af71cad39c36948ddef8aaf7f91c76d6d371e96cd2492923ca10ec6c0b5ace8c4d3538abef46be2fb491962e8fb8a04 diff --git a/dev-haskell/servant-server/files/servant-server-0.18.3-add-examples-flag.patch b/dev-haskell/servant-server/files/servant-server-0.18.3-add-examples-flag.patch new file mode 100644 index 000000000000..4c85484dd6bc --- /dev/null +++ b/dev-haskell/servant-server/files/servant-server-0.18.3-add-examples-flag.patch @@ -0,0 +1,31 @@ +From: hololeap <hololeap@protonmail.com> +Signed-off-by: hololeap <hololeap@protonmail.com> + +Add 'examples' USE flag and rename the example executable from 'greet' to +'servant-server-example'. + +diff -urN servant-server-0.18.3/servant-server.cabal servant-server-0.18.3-r1/servant-server.cabal +--- servant-server-0.18.3/servant-server.cabal 2022-02-11 02:33:28.463223367 -0700 ++++ servant-server-0.18.3-r1/servant-server.cabal 2022-02-11 02:35:38.242984376 -0700 +@@ -33,6 +33,10 @@ + type: git + location: http://github.com/haskell-servant/servant.git + ++flag examples ++ description: Build the servant-server-example executable ++ default: False ++ + library + exposed-modules: + Servant +@@ -99,7 +103,9 @@ + + ghc-options: -Wall -Wno-redundant-constraints + +-executable greet ++executable servant-server-example ++ if !flag(examples) ++ buildable: False + main-is: greet.hs + hs-source-dirs: example + ghc-options: -Wall diff --git a/dev-haskell/servant-server/metadata.xml b/dev-haskell/servant-server/metadata.xml new file mode 100644 index 000000000000..b7878815d80d --- /dev/null +++ b/dev-haskell/servant-server/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>haskell@gentoo.org</email> + <name>Gentoo Haskell</name> + </maintainer> +</pkgmetadata> diff --git a/dev-haskell/servant-server/servant-server-0.19.1.ebuild b/dev-haskell/servant-server/servant-server-0.19.1.ebuild new file mode 100644 index 000000000000..c3e703dbde3d --- /dev/null +++ b/dev-haskell/servant-server/servant-server-0.19.1.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +# ebuild generated by hackport 0.7.1.1.9999 + +CABAL_FEATURES="lib profile haddock hoogle hscolour test-suite" +CABAL_HACKAGE_REVISION="1" +inherit haskell-cabal + +CABAL_FILE="${S}/${PN}.cabal" +CABAL_DISTFILE="${P}-rev${CABAL_HACKAGE_REVISION}.cabal" + +DESCRIPTION="A family of combinators for defining webservices APIs and serving them" +HOMEPAGE="https://docs.servant.dev/" +SRC_URI="https://hackage.haskell.org/package/${P}/${P}.tar.gz + https://hackage.haskell.org/package/${P}/revision/${CABAL_HACKAGE_REVISION}.cabal + -> ${CABAL_DISTFILE}" + +LICENSE="BSD" +SLOT="0/${PV}" +KEYWORDS="~amd64 ~ppc64 ~x86" +IUSE="examples" + +PATCHES=( "${FILESDIR}/${PN}-0.18.3-add-examples-flag.patch" ) + +RDEPEND=">=dev-haskell/aeson-1.4.1.0:=[profile?] <dev-haskell/aeson-3:=[profile?] + >=dev-haskell/base-compat-0.10.5:=[profile?] <dev-haskell/base-compat-0.13:=[profile?] + >=dev-haskell/base64-bytestring-1.0.0.1:=[profile?] <dev-haskell/base64-bytestring-1.3:=[profile?] + >=dev-haskell/constraints-0.2:=[profile?] <dev-haskell/constraints-0.14:=[profile?] + >=dev-haskell/http-api-data-0.4.1:=[profile?] <dev-haskell/http-api-data-0.4.4:=[profile?] + >=dev-haskell/http-media-0.7.1.3:=[profile?] <dev-haskell/http-media-0.9:=[profile?] + >=dev-haskell/http-types-0.12.2:=[profile?] <dev-haskell/http-types-0.13:=[profile?] + >=dev-haskell/monad-control-1.0.2.3:=[profile?] <dev-haskell/monad-control-1.1:=[profile?] + >=dev-haskell/network-2.8:=[profile?] <dev-haskell/network-3.2:=[profile?] + >=dev-haskell/network-uri-2.6.1.0:=[profile?] <dev-haskell/network-uri-2.8:=[profile?] + >=dev-haskell/resourcet-1.2.2:=[profile?] <dev-haskell/resourcet-1.3:=[profile?] + >=dev-haskell/servant-0.19:=[profile?] + >=dev-haskell/sop-core-0.4.0.0:=[profile?] <dev-haskell/sop-core-0.6:=[profile?] + >=dev-haskell/string-conversions-0.4.0.1:=[profile?] <dev-haskell/string-conversions-0.5:=[profile?] + >=dev-haskell/tagged-0.8.6:=[profile?] <dev-haskell/tagged-0.9:=[profile?] + >=dev-haskell/transformers-base-0.4.5.2:=[profile?] <dev-haskell/transformers-base-0.5:=[profile?] + >=dev-haskell/wai-3.2.1.2:=[profile?] <dev-haskell/wai-3.3:=[profile?] + >=dev-haskell/wai-app-static-3.1.6.2:=[profile?] <dev-haskell/wai-app-static-3.2:=[profile?] + >=dev-haskell/word8-0.1.3:=[profile?] <dev-haskell/word8-0.2:=[profile?] + >=dev-lang/ghc-8.10.1:= + examples? ( >=dev-haskell/warp-3.2.25:=[profile?] <dev-haskell/warp-3.4:=[profile?] ) +" +DEPEND="${RDEPEND} + >=dev-haskell/cabal-3.2.0.0 + test? ( >=dev-haskell/hspec-2.6.0 <dev-haskell/hspec-2.10 + >=dev-haskell/hspec-wai-0.10.1 <dev-haskell/hspec-wai-0.12 + >=dev-haskell/quickcheck-2.12.6.1 <dev-haskell/quickcheck-2.15 + dev-haskell/safe + >=dev-haskell/should-not-typecheck-2.1.0 <dev-haskell/should-not-typecheck-2.2 + >=dev-haskell/temporary-1.3 <dev-haskell/temporary-1.4 + dev-haskell/transformers-compat + >=dev-haskell/wai-extra-3.0.24.3 <dev-haskell/wai-extra-3.2 ) +" +BDEPEND="app-text/dos2unix" + +src_prepare() { + # pull revised cabal from upstream + cp "${DISTDIR}/${CABAL_DISTFILE}" "${CABAL_FILE}" || die + + # Convert to unix line endings + dos2unix "${CABAL_FILE}" || die + + # Apply patches *after* pulling the revised cabal + default +} |