commit: 994cb47f30c9d7cf1e05bf428fd36fd0c658fcb4 Author: Michael Orlitzky <mjo <AT> gentoo <DOT> org> AuthorDate: Thu Apr 25 11:53:43 2024 +0000 Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org> CommitDate: Thu Apr 25 12:01:03 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=994cb47f
net-misc/email-validator: new package, add 1.1.0 Signed-off-by: Michael Orlitzky <mjo <AT> gentoo.org> net-misc/email-validator/Manifest | 1 + .../email-validator/email-validator-1.1.0.ebuild | 37 ++++++++++++++++++++++ net-misc/email-validator/metadata.xml | 19 +++++++++++ 3 files changed, 57 insertions(+) diff --git a/net-misc/email-validator/Manifest b/net-misc/email-validator/Manifest new file mode 100644 index 000000000000..0b9fbb98d60d --- /dev/null +++ b/net-misc/email-validator/Manifest @@ -0,0 +1 @@ +DIST email-validator-1.1.0.tar.gz 17544 BLAKE2B a738c0828881fc65b4fd9a6ec0d660f39ed8337338afd8def452871149907f871b5938f03dd94bd7469be544eb3281dcd82f89fd6f80dcaaf9c5ee402194baa4 SHA512 c6714db0fbaf7aa03e5171347c4efe2485a367345a8a9d50f9143f73c18a0ab609aed62816868826d180370d5020f626fd8e31c08d4524cf5157227d0b200c31 diff --git a/net-misc/email-validator/email-validator-1.1.0.ebuild b/net-misc/email-validator/email-validator-1.1.0.ebuild new file mode 100644 index 000000000000..6157158555f4 --- /dev/null +++ b/net-misc/email-validator/email-validator-1.1.0.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +CABAL_FEATURES="test-suite" +inherit haskell-cabal + +DESCRIPTION="Basic syntax and deliverability checks on email addresses" +HOMEPAGE="https://michael.orlitzky.com/code/email-validator.xhtml" +SRC_URI="https://michael.orlitzky.com/code/releases/${P}.tar.gz" + +LICENSE="AGPL-3+" +SLOT="0" +KEYWORDS="~amd64" + +RESTRICT=test # Ambiguous module name ‘Network.DNS’: dns-4.0.1 resolv-0.1.2.0 + +RDEPEND=">=dev-haskell/cmdargs-0.10:= + >=dev-haskell/dns-2:= + >=dev-haskell/email-validate-2:= + >=dev-haskell/hunit-1.2:= + >=dev-haskell/parallel-io-0.3:= + >=dev-haskell/pcre-light-0.4:= + >=dev-haskell/tasty-0.8:= + >=dev-haskell/tasty-hunit-0.8:= + >=dev-lang/ghc-7.6.1:= +" +DEPEND="${RDEPEND} + >=dev-haskell/cabal-1.16.0 + test? ( >=dev-haskell/doctest-0.9 ) +" + +src_install() { + haskell-cabal_src_install + doman "${S}/doc/man1/${PN}.1" +} diff --git a/net-misc/email-validator/metadata.xml b/net-misc/email-validator/metadata.xml new file mode 100644 index 000000000000..ffea1c02a1d2 --- /dev/null +++ b/net-misc/email-validator/metadata.xml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>m...@gentoo.org</email> + </maintainer> + <longdescription> + Validate an email address using three techniques: + + * Ensuring that the length of local and domain parts is within the + RFC-specified limits. + + * A syntax check using a regular expression, or the full RFC 5322 + grammar. + + * Confirmation of valid MX records (or, optionally, 'A' + records) for the domain. + </longdescription> +</pkgmetadata>