ChangeLog

# ChangeLog for dev-ml/cryptokit
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/dev-ml/cryptokit/ChangeLog,v 1.2 2008/01/02 20:07:27 aballier Exp $

02 Jan 2008; Alexis Ballier cryptokit-1.3.ebuild:
Add support to not build with ocamlopt

*cryptokit-1.3 (10 Nov 2007)

10 Nov 2007; Alexis Ballier +files/META,
+files/cryptokit-gentoo.patch, +metadata.xml, +cryptokit-1.3.ebuild:
initial import, bug #151633, thanks to people having contributed there

Manifest

AUX META 171 RMD160 444446770c63f3ddf094ada4e1eab9edbc9041ca SHA1 1d4094ccc76a2c613eb69a235b1fdd4ac21618c7 SHA256 02b2b484eae47ab49344aace31b4ae9218ed8b96607ba216b9a9fa00a2b8323b
AUX cryptokit-gentoo.patch 995 RMD160 0005ac1c75cdc148c3c0e2dc1af5e7c25285940d SHA1 ccb606b76949b9ff7217925db0dec17c17f3a309 SHA256 fb027f66325cd1d77ff916e3b3252f9ae6d4b8bf1f1d24c05dc9c04372842666
DIST cryptokit-1.3.tar.gz 112689 RMD160 bdf1ec365562b534b7995d0f2c3fc06ec203111f SHA1 aebb0b2ed7c89320006de63b73ab639051888a9c SHA256 9ef339ed4cb15f0c458d0093b90dd249d8d1dfb1b01a1fedc542e67f67a7194f
EBUILD cryptokit-1.3.ebuild 1963 RMD160 9080e829c84e37076d262ac9df9437814332e836 SHA1 49697ad6d280e4fe981f2a800079caefd86e03b4 SHA256 875c6fb221be961d6daf2c08353095182f5834dada283fbdb4ab6280396cf357
MISC ChangeLog 563 RMD160 c15e97ed3fb0e39035e1f75bf377877f9c4763cd SHA1 288f0181ae7b3f2f5181e51c18278613f93b5edf SHA256 142e1520dea1544f576f1043a0cd8e9d9283bffa0c7a140034fa2718300b7a45
MISC metadata.xml 155 RMD160 dfaa057e679b01302a807c75a32a910098b26809 SHA1 94024f83dcacbb53e92be090dd0f994ec93dc90d SHA256 118048376ebb76f57628b0819f3de4856e73959c2578c88715d37ea2d1e0af81

cryptokit-1.3.ebuild

# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-ml/cryptokit/cryptokit-1.3.ebuild,v 1.3 2008/01/02 20:07:27 aballier Exp $

inherit eutils findlib

EAPI="1"

DESCRIPTION="Cryptographic primitives library for Objective Caml"
HOMEPAGE="http://cristal.inria.fr/~xleroy/software.html"
SRC_URI="http://caml.inria.fr/distrib/bazar-ocaml/${P}.tar.gz"
LICENSE="LGPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="doc +ocamlopt"

DEPEND=">=dev-lang/ocaml-3.09
>=sys-libs/zlib-1.1"

pkg_setup() {
if use ocamlopt && ! built_with_use --missing true dev-lang/ocaml ocamlopt; then
eerror "In order to build ${PN} with native code support from ocaml"
eerror "You first need to have a native code ocaml compiler."
eerror "You need to install dev-lang/ocaml with ocamlopt useflag on."
die "Please install ocaml with ocamlopt useflag"
fi
}

src_unpack() {
unpack ${A}
cd "${S}"
sed -e "s/VERSION/${PV}/" "${FILESDIR}/META" >> META
epatch "${FILESDIR}/${PN}-gentoo.patch"
}

src_compile() {
emake all || die "emake all failed"
if use ocamlopt; then
emake allopt || die "emake allopt failed, is ocamlopt missing ?"
fi
}

src_install() {
findlib_src_install
dodoc Changes README
use doc && dohtml doc/*.html doc/*.css
}

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 ""

emake test || die "emake test failed"
}

files

metadata.xml




ml