Skip to content

Commit

Permalink
dev-haskell/cryptohash-md5: add package
Browse files Browse the repository at this point in the history
Package-Manager: Portage-3.0.1, Repoman-2.3.23
Signed-off-by: Jack Todaro <[email protected]>
Signed-off-by: Sergei Trofimovich <[email protected]>
  • Loading branch information
solpeth authored and Sergei Trofimovich committed Aug 1, 2020
1 parent 302d3df commit 1c62fbe
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 0 deletions.
1 change: 1 addition & 0 deletions dev-haskell/cryptohash-md5/Manifest
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DIST cryptohash-md5-0.11.100.1.tar.gz 10472 BLAKE2B cc7c99922b05c8df11a7253e6c0dd3ab1399ff739548280fa762b01c507e6d620ab51ccf6c6e791572ae432448118356d1b8879767f4ca245ae59e0daaed2058 SHA512 f2efb197005ed5f12a7c2be490a64a83186cacb34eaedec6cbd76e52c30221733da1d31201c5209538226508db760fd9eed0afc8d72643e1509b32c7287cb12e
38 changes: 38 additions & 0 deletions dev-haskell/cryptohash-md5/cryptohash-md5-0.11.100.1.ebuild
Original file line number Diff line number Diff line change
@@ -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
}
24 changes: 24 additions & 0 deletions dev-haskell/cryptohash-md5/metadata.xml
Original file line number Diff line number Diff line change
@@ -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>[email protected]</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>

0 comments on commit 1c62fbe

Please sign in to comment.