blob: f089878a960b4ad8b4db2d6865f8cc1691ba02e7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-ml/cryptokit/cryptokit-1.6.ebuild,v 1.4 2012/08/21 18:35:59 johu Exp $
EAPI="3"
OASIS_BUILD_DOCS=1
inherit oasis
DESCRIPTION="Cryptographic primitives library for Objective Caml"
HOMEPAGE="http://forge.ocamlcore.org/projects/cryptokit/"
SRC_URI="http://forge.ocamlcore.org/frs/download.php/891/${P}.tar.gz"
LICENSE="LGPL-2"
SLOT="0"
KEYWORDS="amd64 ppc x86 ~x86-fbsd"
IUSE="zlib"
DEPEND="zlib? ( >=sys-libs/zlib-1.1 )"
RDEPEND="${DEPEND}"
DOCS=( "Changes" "README.txt" "AUTHORS.txt" )
src_configure() {
oasis_configure_opts="$(use_enable zlib)" \
oasis_src_configure
}
pkg_postinst() {
elog ""
elog "This library uses the /dev/random device to generate "
elog "random data and RSA keys. The device should either be"
elog "built into the kernel or provided as a module. An"
elog "alternative is to use the Entropy Gathering Daemon"
elog "(http://egd.sourceforge.net). Please note that the"
elog "remainder of the library will still work even in the"
elog "absence of a one of these sources of randomness."
elog ""
}
src_test() {
echo ""
einfo "You must have either /dev/random or the Entropy Gathering"
einfo "Daemon (EGD) for this test to succeed!"
echo ""
oasis_src_test
}
|