summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJack Todaro <solpeth@posteo.org>2020-08-01 09:27:27 +1000
committerSergei Trofimovich <slyfox@gentoo.org>2020-08-01 09:03:56 +0100
commit1c62fbe6d856750771a43d9c35b7bae625cb73c3 (patch)
treeab4bd1b6f3d03ed70826a021518c823b51777dca /dev-haskell/cryptohash-md5
parentdev-haskell/graphviz: bump up to 2999.20.0.4 (diff)
downloadgentoo-1c62fbe6d856750771a43d9c35b7bae625cb73c3.tar.gz
gentoo-1c62fbe6d856750771a43d9c35b7bae625cb73c3.tar.bz2
gentoo-1c62fbe6d856750771a43d9c35b7bae625cb73c3.zip
dev-haskell/cryptohash-md5: add package
Package-Manager: Portage-3.0.1, Repoman-2.3.23 Signed-off-by: Jack Todaro <solpeth@posteo.org> Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to 'dev-haskell/cryptohash-md5')
-rw-r--r--dev-haskell/cryptohash-md5/Manifest1
-rw-r--r--dev-haskell/cryptohash-md5/cryptohash-md5-0.11.100.1.ebuild38
-rw-r--r--dev-haskell/cryptohash-md5/metadata.xml24
3 files changed, 63 insertions, 0 deletions
diff --git a/dev-haskell/cryptohash-md5/Manifest b/dev-haskell/cryptohash-md5/Manifest
new file mode 100644
index 000000000000..125b0c8915bf
--- /dev/null
+++ b/dev-haskell/cryptohash-md5/Manifest
@@ -0,0 +1 @@
+DIST cryptohash-md5-0.11.100.1.tar.gz 10472 BLAKE2B cc7c99922b05c8df11a7253e6c0dd3ab1399ff739548280fa762b01c507e6d620ab51ccf6c6e791572ae432448118356d1b8879767f4ca245ae59e0daaed2058 SHA512 f2efb197005ed5f12a7c2be490a64a83186cacb34eaedec6cbd76e52c30221733da1d31201c5209538226508db760fd9eed0afc8d72643e1509b32c7287cb12e
diff --git a/dev-haskell/cryptohash-md5/cryptohash-md5-0.11.100.1.ebuild b/dev-haskell/cryptohash-md5/cryptohash-md5-0.11.100.1.ebuild
new file mode 100644
index 000000000000..0da3dff2e031
--- /dev/null
+++ b/dev-haskell/cryptohash-md5/cryptohash-md5-0.11.100.1.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+# ebuild generated by hackport 0.5.1.9999
+
+CABAL_FEATURES="lib profile haddock hoogle hscolour test-suite"
+inherit haskell-cabal
+
+DESCRIPTION="Fast, pure and practical MD5 implementation"
+HOMEPAGE="https://github.com/hvr/cryptohash-md5"
+SRC_URI="https://hackage.haskell.org/package/${P}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0/${PV}"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND=">=dev-lang/ghc-7.4.1:=
+"
+DEPEND="${RDEPEND}
+ >=dev-haskell/cabal-1.10
+ test? ( >=dev-haskell/base16-bytestring-0.1.1 <dev-haskell/base16-bytestring-0.2
+ >=dev-haskell/puremd5-2.1.3 <dev-haskell/puremd5-2.2
+ >=dev-haskell/tasty-0.11
+ >=dev-haskell/tasty-hunit-0.9
+ >=dev-haskell/tasty-quickcheck-0.8 )
+"
+
+src_prepare() {
+ cabal_chdeps \
+ 'base >= 4.5 && < 4.10' 'base >= 4.5' \
+ 'tasty == 0.11.*' 'tasty >= 0.11' \
+ 'tasty-quickcheck == 0.8.*' 'tasty-quickcheck >= 0.8' \
+ 'tasty-hunit == 0.9.*' 'tasty-hunit >= 0.9'
+ default
+}
diff --git a/dev-haskell/cryptohash-md5/metadata.xml b/dev-haskell/cryptohash-md5/metadata.xml
new file mode 100644
index 000000000000..fc0f69d6e24b
--- /dev/null
+++ b/dev-haskell/cryptohash-md5/metadata.xml
@@ -0,0 +1,24 @@
+<?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>
+ <longdescription>
+ A practical incremental and one-pass, pure API to the
+ &lt;https://en.wikipedia.org/wiki/MD5 MD5 hash algorithm&gt;
+ (including &lt;https://en.wikipedia.org/wiki/HMAC HMAC&gt; support)
+ with performance close to the fastest implementations available in other languages.
+
+ The implementation is made in C with a haskell FFI wrapper that hides the C implementation.
+
+ NOTE: This package has been forked off @cryptohash-0.11.7@ because the @cryptohash@ package
+ has been deprecated and so this package continues to satisfy the need for a lightweight package
+ providing the MD5 hash algorithm without any dependencies on packages other than
+ @base@ and @bytestring@.
+
+ Consequently, this package can be used as a drop-in replacement for @cryptohash@&#39;s
+ &quot;Crypto.Hash.MD5&quot; module, though with a clearly smaller footprint.
+ </longdescription>
+</pkgmetadata>