diff options
3 files changed, 64 insertions, 0 deletions
diff --git a/dev-haskell/email-validate/Manifest b/dev-haskell/email-validate/Manifest index b5bc8cca6768..bba44ced8100 100644 --- a/dev-haskell/email-validate/Manifest +++ b/dev-haskell/email-validate/Manifest @@ -1 +1,2 @@ DIST email-validate-2.3.2.13.tar.gz 9635 BLAKE2B fecdc9017dcb00847662043774920b09e65a24876efdc1248f24b942bbd79b9d6b79640b479bbbf44c2d80349cfc3511b63884f4e3947949346773dbca9c8a06 SHA512 22cf7517ae38aa264198288449946cc7da6bda7f799a652050de9544c9e07c5bbe6bf8c8b53526be227288214bf3144055effd858fb993704942eeda3410ba3d +DIST email-validate-2.3.2.15.tar.gz 9568 BLAKE2B 1ff8c3e5ce71f3ff39dec02e0cbc211ffea3386646a77b2c176cc0af47a61d13996b2bb68d36e77ccf3114c53facc9b121202cc5d70916a4aa2992fa3956a60e SHA512 0b852771cdf0851bc7024fbb612488bd7721cbce25b551f52932b234e57bc70ded2e5904853f2ca0f68cfb9da02057d4a1903d081ce81a382cf90d0d3ba25001 diff --git a/dev-haskell/email-validate/email-validate-2.3.2.15.ebuild b/dev-haskell/email-validate/email-validate-2.3.2.15.ebuild new file mode 100644 index 000000000000..df433182c88b --- /dev/null +++ b/dev-haskell/email-validate/email-validate-2.3.2.15.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +# ebuild generated by hackport 0.7.9999 + +CABAL_FEATURES="lib profile haddock hoogle hscolour test-suite" +inherit haskell-cabal + +DESCRIPTION="Email address validation" +HOMEPAGE="https://github.com/Porges/email-validate-hs" +SRC_URI="https://hackage.haskell.org/package/${P}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0/${PV}" +KEYWORDS="~amd64 ~x86" + +PATCHES=( "${FILESDIR}/${PN}-2.3.2.15-fix-doctest.patch" ) + +RDEPEND=">=dev-haskell/attoparsec-0.10.0:=[profile?] <dev-haskell/attoparsec-0.15:=[profile?] + >=dev-lang/ghc-8.4.3:= +" +DEPEND="${RDEPEND} + >=dev-haskell/cabal-2.2.0.1 + test? ( >=dev-haskell/doctest-0.8 + >=dev-haskell/hspec-2.2.3 + >=dev-haskell/quickcheck-2.4 <dev-haskell/quickcheck-2.15 ) +" + +src_prepare() { + default + + cabal_chdeps \ + 'hspec >= 2.2.3 && < 2.9' 'hspec >= 2.2.3' \ + 'doctest >= 0.8 && < 0.19' 'doctest >=0.8' +} diff --git a/dev-haskell/email-validate/files/email-validate-2.3.2.15-fix-doctest.patch b/dev-haskell/email-validate/files/email-validate-2.3.2.15-fix-doctest.patch new file mode 100644 index 000000000000..d60b0c6a7844 --- /dev/null +++ b/dev-haskell/email-validate/files/email-validate-2.3.2.15-fix-doctest.patch @@ -0,0 +1,26 @@ +From: hololeap <hololeap@protonmail.com> +Signed-off-by: hololeap <hololeap@protonmail.com> +Bug: https://github.com/gentoo-haskell/gentoo-haskell/issues/1231 + +Small fix to get doctest working + +diff -urN email-validate-2.3.2.15/src/Text/Email/QuasiQuotation.hs email-validate-2.3.2.15-r1/src/Text/Email/QuasiQuotation.hs +--- email-validate-2.3.2.15/src/Text/Email/QuasiQuotation.hs 2021-07-04 14:50:48.000000000 -0600 ++++ email-validate-2.3.2.15-r1/src/Text/Email/QuasiQuotation.hs 2022-03-17 17:33:15.666925125 -0600 +@@ -4,6 +4,7 @@ + #else + {-# LANGUAGE TemplateHaskell #-} + #endif ++{-# LANGUAGE PackageImports #-} + + module Text.Email.QuasiQuotation + ( email +@@ -11,7 +12,7 @@ + + import qualified Data.ByteString.Char8 as BS8 + +-import Language.Haskell.TH.Quote (QuasiQuoter(..)) ++import "template-haskell" Language.Haskell.TH.Quote (QuasiQuoter(..)) + + import Text.Email.Validate (validate, localPart, domainPart, unsafeEmailAddress) + |