forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dev-haskell/cryptohash-md5: add package
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
Showing
3 changed files
with
63 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
38
dev-haskell/cryptohash-md5/cryptohash-md5-0.11.100.1.ebuild
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
<https://en.wikipedia.org/wiki/MD5 MD5 hash algorithm> | ||
(including <https://en.wikipedia.org/wiki/HMAC HMAC> 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@'s | ||
"Crypto.Hash.MD5" module, though with a clearly smaller footprint. | ||
</longdescription> | ||
</pkgmetadata> |