summaryrefslogtreecommitdiff
path: root/dev-haskell/email-validate
diff options
context:
space:
mode:
Diffstat (limited to 'dev-haskell/email-validate')
-rw-r--r--dev-haskell/email-validate/Manifest3
-rw-r--r--dev-haskell/email-validate/email-validate-2.3.2.15.ebuild37
-rw-r--r--dev-haskell/email-validate/files/email-validate-2.3.2.15-fix-doctest.patch26
3 files changed, 66 insertions, 0 deletions
diff --git a/dev-haskell/email-validate/Manifest b/dev-haskell/email-validate/Manifest
index c2b786eaf17b..4da95eafd96c 100644
--- a/dev-haskell/email-validate/Manifest
+++ b/dev-haskell/email-validate/Manifest
@@ -1,3 +1,6 @@
+AUX email-validate-2.3.2.15-fix-doctest.patch 941 BLAKE2B 2ec4d7a23f9217ed536f7e709d63fd36b3e3abab8d4841fa4e54dcc69ff912a95094511bf9c4182c4cc2a22f5f83911449189ad5bb5eb3b30fa97563ca2c807c SHA512 c37cba04a1d12a1a3f071554d76bd6cee678a0dd5f7fd5ba7a01a17ff587ac0f29a6e51b5c4d3a39de47916f0bfb1dd222411d590eea06665fca13c9f6134a8c
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
EBUILD email-validate-2.3.2.13.ebuild 808 BLAKE2B 0c37d4673b97dc3073d480ccccb38ec786c271ad09278a0f2ff5cc29ea2833124b1b25c337cc6ead3beaffa6f928127c210381370b9eda4714b4cbe742aa6767 SHA512 4dbec3801632ab71e54b85078987e0d29c73800e6bd50788bae731d1d3965fe3f655fdd44ed0504dbce421cd2d6d10ae45bd1a5ae745f1de82ec2970a487144f
+EBUILD email-validate-2.3.2.15.ebuild 944 BLAKE2B b1822838f6a091a11f8a1c4cafb5bd2d61488b74d966ed673771974f07f23fd97199fd293a4a6cc224b80b7bd17da734cc3bc9cb8d053f3804c598d5e9bd3476 SHA512 1d13d8e8c9c030469bc05c94c94b2bcca5d2fc4b9ea16a26d8fd6d413703882220b8c462db548d58b871765a7cf856de4c996a98e7dd07f9c5c4820287cb8e4f
MISC metadata.xml 250 BLAKE2B 3adf9597d5114c480b4cc9fb5c3e231d8475b795cd6dce77986e13583ab6e59b43857cf2328570490abef0062a8b8a6b73d231867f9b62124855515cdc044d6d SHA512 5ef2c1d34a3438b39a38c041d45bb06bd0f1ae8a3f8b971bd5aaf36dee560f380e9abefab0c2a4cd7b518e151f5c6a0d0c7cd53caee9a384818f1bdc7deeadc4
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)
+