Description: Add test-doctests flag
 Add flag to enable/disable the doctest suite. This is needed because doctests
 fail on armel because of #839840.
Author: Ilias Tsitsimpis <iliastsi@debian.org>
---

--- a/email-validate.cabal
+++ b/email-validate.cabal
@@ -21,6 +21,10 @@
     location: git://github.com/Porges/email-validate-hs.git
     tag: v2.3.2.11
 
+flag test-doctests
+    description: Enable/Disable the doctest suite
+    default: True
+
 library
     build-depends:
         base >= 4.4 && < 5,
@@ -50,6 +54,8 @@
 
 test-suite doctests
     type: exitcode-stdio-1.0
+    if !flag(test-doctests)
+        buildable: False
     ghc-options: -threaded
     default-language: Haskell2010
     hs-source-dirs: tests
